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
Original issue reported on code.google.com by
mbouz...@gmail.com
on 14 Feb 2010 at 11:01Attachments: