Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore12
-rw-r--r--configure.ac11
-rw-r--r--shell/PresenceWindow.py6
-rw-r--r--shell/StartPage.py4
4 files changed, 30 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index f09c5c0..4725ff9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -19,4 +19,16 @@ missing
py-compile
stamp-h1
+intltool-extract
+intltool-extract.in
+intltool-merge
+intltool-merge.in
+intltool-update
+intltool-update.in
+mkinstalldirs
+po/Makefile.in.in
+po/POTFILES
+po/stamp-it
+po/sugar.pot
+
sugar/__installed__.py
diff --git a/configure.ac b/configure.ac
index 2d18d4d..b63aa68 100644
--- a/configure.ac
+++ b/configure.ac
@@ -11,6 +11,16 @@ AM_MAINTAINER_MODE
AM_PATH_PYTHON
+#
+# Setup GETTEXT
+#
+ALL_LINGUAS="it"
+GETTEXT_PACKAGE=sugar
+AC_PROG_INTLTOOL([0.33])
+AC_SUBST(GETTEXT_PACKAGE)
+AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Gettext package])
+AM_GLIB_GNU_GETTEXT
+
AC_OUTPUT([
Makefile
activities/Makefile
@@ -27,4 +37,5 @@ sugar/chat/sketchpad/Makefile
sugar/p2p/Makefile
sugar/p2p/model/Makefile
sugar/presence/Makefile
+po/Makefile.in
])
diff --git a/shell/PresenceWindow.py b/shell/PresenceWindow.py
index 60753d1..1f13145 100644
--- a/shell/PresenceWindow.py
+++ b/shell/PresenceWindow.py
@@ -8,6 +8,8 @@ from sugar.presence.PresenceService import PresenceService
from sugar.presence.Service import Service
from sugar.chat.BuddyChat import BuddyChat
+from gettext import gettext as _
+
class PresenceWindow(gtk.Window):
_MODEL_COL_NICK = 0
_MODEL_COL_ICON = 1
@@ -57,7 +59,7 @@ class PresenceWindow(gtk.Window):
vbox = gtk.VBox(False, 6)
vbox.set_border_width(12)
- label = gtk.Label("Who's around:")
+ label = gtk.Label(_("Who's around:"))
label.set_alignment(0.0, 0.5)
vbox.pack_start(label, False)
label.show()
@@ -99,7 +101,7 @@ class PresenceWindow(gtk.Window):
button_box = gtk.HButtonBox()
- self._share_button = gtk.Button('Share')
+ self._share_button = gtk.Button(_('Share'))
self._share_button.connect('clicked', self._share_button_clicked_cb)
button_box.pack_start(self._share_button)
self._share_button.show()
diff --git a/shell/StartPage.py b/shell/StartPage.py
index a43d8e1..b7d5ce3 100644
--- a/shell/StartPage.py
+++ b/shell/StartPage.py
@@ -11,6 +11,8 @@ import socket
from google import google
from sugar.presence.PresenceService import PresenceService
+from gettext import gettext as _
+
_BROWSER_ACTIVITY_TYPE = "_web_olpc._udp"
_COLUMN_TITLE = 0
@@ -196,7 +198,7 @@ class StartPage(gtk.HBox):
search_box.pack_start(self._search_entry)
self._search_entry.show()
- search_button = gtk.Button("Search")
+ search_button = gtk.Button(_("Search"))
search_button.connect('clicked', self._search_button_clicked_cb)
search_box.pack_start(search_button, False)
search_button.show()