Re: Damned Lies vs git statistic



2017-03-21 14:29 GMT+01:00 Danylo Korostil <ted korostiled gmail com>:
On 21.03.17 15:12, Piotr Drąg wrote:

Hi Danylo,

gnome-shell is indeed one of the modules that don’t use intltool
anymore. You should download the .po file from damned-lies and don’t
run intltool-update on it, otherwise some parts may end up
untranslated. One unscientific method to check if a module is
gettext-exclusive is looking at the file paths in the .po file.
Intltool uses relative paths, so file names start with “../”, while
gettext uses absolute paths.

Hope this helps,


Hey Piotr,

Thanks for your explanation!

I'm wondering what DL uses to retrieve these strings? Is it possible to get
them without DL?


You could adapt https://git.gnome.org/browse/gtk+/tree/make-pot (all
you need is set GETTEXT_PACKAGE in line 39 to e.g. gnome-shell) to
generate a .pot file locally or even deal with make and friends, but I
would advise against it. Some modules use the ITS feature of gettext
to extract, among many others, polkit’s .policy files, and the rules
for that are not yet in any released version of polkit. Using
damned-lies avoids this problem and ensures that you have every string
in your translation.

If you’re interested in how damned-lies works in this regard, take a
look at <https://git.gnome.org/browse/damned-lies/log/?qt=grep&q=gettext>,
specifically commits from 2015 onwards.

Best regards,

-- 
Piotr Drąg
https://piotrdrag.fedorapeople.org


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]