Update README.i18n
parent
9072db0ae3
commit
75fc0140ae
10
README.i18n
10
README.i18n
|
@ -10,7 +10,7 @@ The pronterface.py now uses gettext for the messages it generates.
|
||||||
The corresponding pronterface.pot file is at locale/pronterface.pot
|
The corresponding pronterface.pot file is at locale/pronterface.pot
|
||||||
and was generated using
|
and was generated using
|
||||||
|
|
||||||
pygettext -o locale/pronterface.pot pronterface.py
|
pygettext -o locale/pronterface.pot pronterface.py printrun/pronterface_widgets.py
|
||||||
|
|
||||||
followed by minor edits to the generated header.
|
followed by minor edits to the generated header.
|
||||||
|
|
||||||
|
@ -20,14 +20,14 @@ now there is only one, for German. New ones can be created:
|
||||||
# Create new pronterface message catalog for a different language
|
# Create new pronterface message catalog for a different language
|
||||||
newlang="es" # use the correct code for your language
|
newlang="es" # use the correct code for your language
|
||||||
mkdir -p locale/${newlang}/LC_MESSAGES
|
mkdir -p locale/${newlang}/LC_MESSAGES
|
||||||
cp locale/pronterface.pot locale/${newlanguage}/LC_MESSAGES/${newlang}.po
|
cp locale/pronterface.pot locale/${newlanguage}/LC_MESSAGES/pronterface.po
|
||||||
cd locale/${newlanguage}/LC_MESSAGES/${newlang}
|
cd locale/${newlanguage}/LC_MESSAGES/
|
||||||
# Edit the .po file to add messages for newlang
|
# Edit the .po file to add messages for newlang
|
||||||
msgfmt -o ${newlang}.mo ${newlang}.po
|
msgfmt -o pronterface.mo pronterface.po
|
||||||
|
|
||||||
To update a previously created message catalog from the template, use :
|
To update a previously created message catalog from the template, use :
|
||||||
|
|
||||||
msgmerge -U locale/fr/LC_MESSAGES/${lang}.po locale/pronterface.pot
|
msgmerge -U locale/fr/LC_MESSAGES/pronterface.po locale/pronterface.pot
|
||||||
|
|
||||||
As currently coded, the default location for these message catalogs is
|
As currently coded, the default location for these message catalogs is
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue