Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLionel LASKE <llaske@c2s.fr>2011-12-22 14:59:21 (GMT)
committer Lionel LASKE <llaske@c2s.fr>2011-12-22 14:59:21 (GMT)
commitd9499588456d0447d6fa190555e2454ba0ec88e3 (patch)
tree2165cdd0fe6e0a4af4c99c17c4114d0554f4b6c6
parent0be8bfea3f05a081640772457af903a4beb597bc (diff)
Add localization
-rw-r--r--MANIFEST4
-rw-r--r--activity.py16
-rw-r--r--locale/fr/activity.linfo2
-rw-r--r--po/POTFILES.in2
-rw-r--r--po/Roots.pot89
-rw-r--r--po/fr.po89
6 files changed, 194 insertions, 8 deletions
diff --git a/MANIFEST b/MANIFEST
index 1f71efa..cefe755 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -14,3 +14,7 @@ src/__init__.py
icons/emptytree.svg
icons/sample1.svg
icons/sample2.svg
+locale/fr/activity.linfo
+locale/fr/LC_MESSAGES/org.olpcfrance.Roots.mo
+po/fr.po
+po/Roots.pot
diff --git a/activity.py b/activity.py
index d5c6750..be00017 100644
--- a/activity.py
+++ b/activity.py
@@ -81,24 +81,24 @@ class RootsActivity(activity.Activity):
# Create detail view
self.fixed = gtk.VBox()
self.fixed.set_size_request(200, 300)
- self.fixed.pack_start(gtk.Label("Name:"), False, False, 0)
+ self.fixed.pack_start(gtk.Label(_("Name:")), False, False, 0)
self.detail_name = gtk.TextView()
self.detail_name.set_cursor_visible(True)
self.detail_name.get_buffer().connect("changed", self.detail_changed)
self.fixed.pack_start(self.detail_name, False, False, 0)
- self.detail_chkmale = gtk.RadioButton(None, "Male")
+ self.detail_chkmale = gtk.RadioButton(None, _("Male"))
self.detail_chkmale.connect("toggled", self.sexradio_checked, 'M')
self.fixed.pack_start(self.detail_chkmale, False, False, 0)
- self.detail_chkfemale = gtk.RadioButton(self.detail_chkmale, "Female")
+ self.detail_chkfemale = gtk.RadioButton(self.detail_chkmale, _("Female"))
self.detail_chkfemale.connect("toggled", self.sexradio_checked, 'F')
self.fixed.pack_start(self.detail_chkfemale, False, False, 0)
- self.detail_btnaddparent = gtk.Button("Add parent")
+ self.detail_btnaddparent = gtk.Button(_("Add parent"))
self.detail_btnaddparent.connect("clicked", self.addparent_clicked)
- self.detail_btnaddunion = gtk.Button("Add union")
+ self.detail_btnaddunion = gtk.Button(_("Add union"))
self.detail_btnaddunion.connect("clicked", self.addunion_clicked)
- self.detail_btnaddchild = gtk.Button("Add child")
+ self.detail_btnaddchild = gtk.Button(_("Add child"))
self.detail_btnaddchild.connect("clicked", self.addchild_clicked)
- self.detail_btndelete = gtk.Button("Delete")
+ self.detail_btndelete = gtk.Button(_("Delete"))
self.detail_btndelete.connect("clicked", self.delete_clicked)
self.fixed.pack_start(self.detail_btnaddparent, False, False, 0)
self.fixed.pack_start(self.detail_btnaddunion, False, False, 0)
@@ -144,7 +144,7 @@ class RootsActivity(activity.Activity):
# No selection
if person == None:
self.detail_name.set_sensitive(False)
- self.detail_name.get_buffer().set_text("Click one a node to select it")
+ self.detail_name.get_buffer().set_text(_("Click one a node to select it"))
self.detail_chkmale.set_active(True)
self.detail_chkmale.set_sensitive(False)
self.detail_chkfemale.set_sensitive(False)
diff --git a/locale/fr/activity.linfo b/locale/fr/activity.linfo
new file mode 100644
index 0000000..cf53f45
--- /dev/null
+++ b/locale/fr/activity.linfo
@@ -0,0 +1,2 @@
+[Activity]
+name = Racines
diff --git a/po/POTFILES.in b/po/POTFILES.in
new file mode 100644
index 0000000..cf2abd2
--- /dev/null
+++ b/po/POTFILES.in
@@ -0,0 +1,2 @@
+encoding: UTF-8
+activity.py
diff --git a/po/Roots.pot b/po/Roots.pot
new file mode 100644
index 0000000..ffc77dc
--- /dev/null
+++ b/po/Roots.pot
@@ -0,0 +1,89 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2011-12-21 22:55+0200\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: activity/activity.info:2
+msgid "Roots"
+msgstr ""
+
+#: activity.py:43
+msgid "Zoom out"
+msgstr ""
+
+#: activity.py:44
+msgid "<ctrl>minus"
+msgstr ""
+
+#: activity.py:48
+msgid "Zoom in"
+msgstr ""
+
+#: activity.py:49
+msgid "<ctrl>equal"
+msgstr ""
+
+#: activity.py:52
+msgid "View"
+msgstr ""
+
+#: activity.py:55
+msgid "Empty tree"
+msgstr ""
+
+#: activity.py:59
+msgid "Test"
+msgstr ""
+
+#: activity.py:63
+msgid "Napoleon"
+msgstr ""
+
+#: activity.py:66
+msgid "Samples"
+msgstr ""
+
+#: activity.py:84
+msgid "Name:"
+msgstr ""
+
+#: activity.py:89
+msgid "Male"
+msgstr ""
+
+#: activity.py:92
+msgid "Female"
+msgstr ""
+
+#: activity.py:95
+msgid "Add parent"
+msgstr ""
+
+#: activity.py:97
+msgid "Add union"
+msgstr ""
+
+#: activity.py:99
+msgid "Add child"
+msgstr ""
+
+#: activity.py:101
+msgid "Delete"
+msgstr ""
+
+#: activity.py:147
+msgid "Click one a node to select it"
+msgstr ""
diff --git a/po/fr.po b/po/fr.po
new file mode 100644
index 0000000..b18112d
--- /dev/null
+++ b/po/fr.po
@@ -0,0 +1,89 @@
+# French translations for PACKAGE package.
+# Copyright (C) 2011 THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# user <lionel@olpc-france.org>, 2011.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2011-12-21 22:55+0200\n"
+"PO-Revision-Date: 2011-12-21 23:05+0200\n"
+"Last-Translator: user <lionel@olpc-france.org>\n"
+"Language-Team: French\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n > 1);\n"
+
+#: activity/activity.info:2
+msgid "Roots"
+msgstr "Racines"
+
+#: activity.py:43
+msgid "Zoom out"
+msgstr "Zoom avant"
+
+#: activity.py:44
+msgid "<ctrl>minus"
+msgstr "<ctrl>moins"
+
+#: activity.py:48
+msgid "Zoom in"
+msgstr "Zoom arrière"
+
+#: activity.py:49
+msgid "<ctrl>equal"
+msgstr "<ctrl>égal"
+
+#: activity.py:52
+msgid "View"
+msgstr "Vue"
+
+#: activity.py:55
+msgid "Empty tree"
+msgstr "Arbre vide"
+
+#: activity.py:59
+msgid "Test"
+msgstr "Test"
+
+#: activity.py:63
+msgid "Napoleon"
+msgstr "Napoléon"
+
+#: activity.py:66
+msgid "Samples"
+msgstr "Exemples"
+
+#: activity.py:84
+msgid "Name:"
+msgstr "Nom:"
+
+#: activity.py:89
+msgid "Male"
+msgstr "Mâle"
+
+#: activity.py:92
+msgid "Female"
+msgstr "Femelle"
+
+#: activity.py:95
+msgid "Add parent"
+msgstr "Ajouter parent"
+
+#: activity.py:97
+msgid "Add union"
+msgstr "Ajouter union"
+
+#: activity.py:99
+msgid "Add child"
+msgstr "Ajouter enfant"
+
+#: activity.py:101
+msgid "Delete"
+msgstr "Supprimer"
+
+#: activity.py:147
+msgid "Click one a node to select it"
+msgstr "Cliquer sur un noeud pour le sélectionner"