Make missing strings translatable
This commit is contained in:
parent
6f9ae0c769
commit
fbb2621fff
@ -2,6 +2,8 @@ import pygtk
|
||||
pygtk.require('2.0')
|
||||
import gtk
|
||||
|
||||
from gettext import gettext as _
|
||||
|
||||
from AddressItem import AddressItem
|
||||
|
||||
class NavigationToolbar(gtk.Toolbar):
|
||||
@ -12,19 +14,19 @@ class NavigationToolbar(gtk.Toolbar):
|
||||
|
||||
self.set_style(gtk.TOOLBAR_BOTH_HORIZ)
|
||||
|
||||
self.back = gtk.ToolButton(None, 'Back')
|
||||
self.back = gtk.ToolButton(None, _('Back'))
|
||||
self.back.set_icon_name('back')
|
||||
self.back.connect("clicked", self.__go_back_cb)
|
||||
self.insert(self.back, -1)
|
||||
self.back.show()
|
||||
|
||||
self.forward = gtk.ToolButton(None, 'Forward')
|
||||
self.forward = gtk.ToolButton(None, _('Forward'))
|
||||
self.forward.set_icon_name('forward')
|
||||
self.forward.connect("clicked", self.__go_forward_cb)
|
||||
self.insert(self.forward, -1)
|
||||
self.forward.show()
|
||||
|
||||
self.reload = gtk.ToolButton(None, 'Reload')
|
||||
self.reload = gtk.ToolButton(None, _('Reload'))
|
||||
self.reload.set_icon_name('reload')
|
||||
self.reload.connect("clicked", self.__reload_cb)
|
||||
self.insert(self.reload, -1)
|
||||
|
@ -1,2 +1,5 @@
|
||||
shell/PresenceWindow.py
|
||||
shell/StartPage.py
|
||||
activities/browser/NavigationToolbar.py
|
||||
shell/shell.py
|
||||
sugar/chat/ChatEditor.py
|
||||
|
@ -8,6 +8,8 @@ import gtk
|
||||
import pango
|
||||
import gobject
|
||||
|
||||
from gettext import gettext as _
|
||||
|
||||
import sugar.util
|
||||
from sugar.chat.ChatWindow import ChatWindow
|
||||
from sugar.chat.ActivityChat import ActivityChat
|
||||
@ -328,7 +330,7 @@ class ActivityContainer(dbus.service.Object):
|
||||
self.notebook = gtk.Notebook()
|
||||
self.notebook.set_scrollable(True)
|
||||
|
||||
tab_label = gtk.Label("Everyone")
|
||||
tab_label = gtk.Label(_("Everyone"))
|
||||
self._start_page = StartPage(self._signal_helper)
|
||||
self.notebook.append_page(self._start_page, tab_label)
|
||||
self._start_page.show()
|
||||
|
@ -2,6 +2,8 @@ import pygtk
|
||||
pygtk.require('2.0')
|
||||
import gtk
|
||||
|
||||
from gettext import gettext as _
|
||||
|
||||
from sugar.chat.sketchpad.SketchPad import SketchPad
|
||||
import richtext
|
||||
|
||||
@ -38,7 +40,7 @@ class ChatEditor(gtk.HBox):
|
||||
self.pack_start(self._notebook)
|
||||
self._notebook.show()
|
||||
|
||||
send_button = gtk.Button("Send")
|
||||
send_button = gtk.Button(_("Send"))
|
||||
send_button.set_size_request(60, -1)
|
||||
send_button.connect('clicked', self.__send_button_clicked_cb)
|
||||
self.pack_start(send_button, False, True)
|
||||
|
Loading…
Reference in New Issue
Block a user