Re: Making my application international
- From: Rafael Fontenelle <rafaelff gnome org>
- To: Gustavo Peredo <gustavomperedo gmail com>
- Cc: GNOME i18n list <gnome-i18n gnome org>
- Subject: Re: Making my application international
- Date: Sun, 27 Sep 2020 18:38:56 -0300
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 <executable> (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
<gnome-i18n gnome org> 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 <ak-47 gmx net> 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-47 gmx net
https://blogs.gnome.org/aklapper/
_______________________________________________
gnome-i18n mailing list
gnome-i18n gnome org
https://mail.gnome.org/mailman/listinfo/gnome-i18n
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]