[Phonehome-commits] r25 - in trunk/frontend: po src
pamadio at garage.maemo.org
pamadio at garage.maemo.org
Wed Oct 15 19:44:35 EEST 2008
Author: pamadio
Date: 2008-10-15 19:44:34 +0300 (Wed, 15 Oct 2008)
New Revision: 25
Modified:
trunk/frontend/po/README
trunk/frontend/src/phonehome-gui
Log:
i18n
Modified: trunk/frontend/po/README
===================================================================
--- trunk/frontend/po/README 2008-10-15 16:28:10 UTC (rev 24)
+++ trunk/frontend/po/README 2008-10-15 16:44:34 UTC (rev 25)
@@ -2,15 +2,15 @@
a) Generating a pot file:
- xgettext -L python ../src/sayhoo -o fr.pot --no-location
+ xgettext -L python ../src/phonehome-gui -o fr.pot
Translate strings and save as fr.po
OR
b) Merge information from an exisiting po file.
- xgettext -L python ../src/sayhoo ../src/*.py -o tmp.pot
- xgettext -L glade -j ../data/sayhoo.glade -o tmp.pot
+ xgettext -L python ../src/phonehome-gui ../src/*.py -o tmp.pot
+ xgettext -L glade -j ../data/phonehome-gui.glade -o tmp.pot
msgmerge -v fr.po tmp.pot > fr.pot
Modified: trunk/frontend/src/phonehome-gui
===================================================================
--- trunk/frontend/src/phonehome-gui 2008-10-15 16:28:10 UTC (rev 24)
+++ trunk/frontend/src/phonehome-gui 2008-10-15 16:44:34 UTC (rev 25)
@@ -57,6 +57,11 @@
self.server_entry=self.main_xml.get_widget("server_entry")
self.ok_button.set_label(_("OK"))
+ self.cancel_button.set_label(_("Cancel"))
+ self.login_label.set_label(_("Login"))
+ self.password_label.set_label(_("Password"))
+ self.tid_label.set_label(_("Tablet id"))
+ self.server_label.set_label(_("Server"))
self.hildon_window.show_all()
gtk.main()
@@ -64,6 +69,9 @@
def end_application(self,widget=False):
gtk.main_quit()
+locale.setlocale(locale.LC_ALL, "fr_FR")
+os.environ["LANGUAGE"]="fr_FR"
+
plop=phonehome_frontend()
More information about the Phonehome-commits
mailing list