[gcr] Created branch gnome-3-38

2020-09-27 Thread Niels De Graef
The branch 'gnome-3-38' was created pointing to:

 34802ea... Release stable version 3.38

___
gnome-i18n mailing list
gnome-i18n@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Making my application international

2020-09-27 Thread Rafael Fontenelle
Hello Gustavo,

Consider setting the "gettext.bindtextdomain()" (in src/main.py, I
think) as mentioned in
https://docs.python.org/pt-br/3/library/gettext.html

If the domain name is not set, the software will look for
"messages.mo" (the translation file in machine language) instead of
the proper e.g. "font-downloader.mo".

You can verify if that's the case by searching for "messages.mo":

$ strace -o file.log   (replace if the proper executable name/path)
$ grep messages.mo file.log

Best regards,
Rafael Fontenelle

On Sat, Sep 26, 2020 at 7:29 PM Gustavo Peredo via gnome-i18n
 wrote:
>
> Thank you for your answer!
>
> After reading xgettext documentation I was able to generate my .po files, I 
> created and edited two of them: en_GB and pt_BR. I added them to my /po 
> directory and added en_GB and pt_BR to my LINGUAS file, no errors were shown 
> during compilation nor when exporting the package. I installed the app on my 
> machine but no translations were applied (My system locale is pt_BR)!
>
> Any clues on what I should do?
>
> Do you know somewhere else I can ask this question?
>
> PS: Also, you were right, many pages were outdated (were talking about GTK 2)
> Gustavo
>
> Em sáb., 26 de set. de 2020 às 13:02, Andre Klapper  escreveu:
>>
>> Hi,
>>
>> On Sat, 2020-09-26 at 09:05 -0300, Gustavo Peredo via gnome-i18n wrote:
>> > TL; DR: How to begin translating a GTK Application using po?
>>
>> In theory: https://wiki.gnome.org/TranslationProject/DevGuidelines
>>
>> In practice I'm not sure how heavily outdated some of those wiki pages
>> might be (meson etc). So this email might be useless in the end. :)
>>
>> andre
>> --
>> Andre Klapper  |  ak...@gmx.net
>> https://blogs.gnome.org/aklapper/
>>
>>
> ___
> gnome-i18n mailing list
> gnome-i18n@gnome.org
> https://mail.gnome.org/mailman/listinfo/gnome-i18n
___
gnome-i18n mailing list
gnome-i18n@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-i18n