Translation support

This commit is contained in:
Marco Pesenti Gritti
2006-07-05 17:00:11 +02:00
parent 47524d177a
commit 1eba377add
4 changed files with 30 additions and 3 deletions
+4 -2
View File
@@ -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()
+3 -1
View File
@@ -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()