DrLous / gitso

Automatically exported from code.google.com/p/gitso
0 stars 0 forks source link

Process to i18 #38

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This process reflects the steps for i18n "Gitso" from gitso_0.5_src sources.

Cause its installed at /usr/local, the locale files are located at
/usr/local/share/locale
Add the next snippet on top of Gitso.py and gitso_gtk.py files

import gettext
APP="gitso"
DIR="/usr/local/share/locale/"
gettext.textdomain(APP)
gettext.bindtextdomain(APP, DIR)
_ = gettext.gettext

and, change all the messages to _("message string") for allow python
interpret as a gettext string

created a "po" folder at source root that contains:
- a gitso.pot file created by
$ xgettext *.py -o po/gitso.pot --from-code=utf-8

- and the files"es.po" e "gl.po" created by command:
$ msginit -o po/es.po -i po/gitso.pot
$ msginit -o po/gl.po -i po/gitso.pot

Created a .deb with "makegitso.pl" and copied the binary .mo files manually
sudo cp 
/home/miguel/Escritorio/gitso_0.5_src/po/locale/es/LC_MESSAGES/gitso.mo
 /usr/local/share/locale/es/LC_MESSAGES/

At Debian Lenny and Ubuntu 8,10 is working perfectly
As some messages and dropdowns overflow the window, I increased the
width of window and some button position.

I attach the modified and created files.

Original issue reported on code.google.com by mbouz...@gmail.com on 14 Feb 2010 at 11:01

Attachments:

GoogleCodeExporter commented 9 years ago
We'll include this in the next release as well as hopefully other localizations!

Original comment by gerbe...@gmail.com on 22 Feb 2010 at 12:55