diff options
author | Preston Cody <codeman@gentoo.org> | 2008-05-26 02:20:43 +0000 |
---|---|---|
committer | Preston Cody <codeman@gentoo.org> | 2008-05-26 02:20:43 +0000 |
commit | d752b51b201f20547a1054f60442a2596e5c8073 (patch) | |
tree | 9f8690bb772c377b2f50fe493cdc820cd40029f1 /src/fe/gtk/StartupServices.py | |
parent | adding gettext support written by Jesus Rivero (Neurogeek) (diff) | |
download | gli-d752b51b201f20547a1054f60442a2596e5c8073.tar.gz gli-d752b51b201f20547a1054f60442a2596e5c8073.tar.bz2 gli-d752b51b201f20547a1054f60442a2596e5c8073.zip |
committing changes to gtkfe in stages.
adding internalization support written by
Jesus Rivero (Neurogeek)
basically sets everything in gettext.
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/gli/trunk@1904 f8877401-5920-0410-a79b-8e2d7e04ca0d
Diffstat (limited to 'src/fe/gtk/StartupServices.py')
-rw-r--r-- | src/fe/gtk/StartupServices.py | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/src/fe/gtk/StartupServices.py b/src/fe/gtk/StartupServices.py index ba7060a..eb11d7d 100644 --- a/src/fe/gtk/StartupServices.py +++ b/src/fe/gtk/StartupServices.py @@ -7,20 +7,19 @@ import gtk import gobject import os from GLIScreen import * -from gettext import gettext as _ class Panel(GLIScreen): title = _("Startup Services") - _helptext = """ + _helptext = _(""" <b><u>Startup Services</u></b> On this screen, you can select services that you would like to startup at boot. \ -Common choices are sshd (remote access) and xdm (graphical login...choose this \ +Common choices are sshd (remote access) and xdm (graphical login... choose this \ for kdm, gdm, and entrance, as well). Only services that are provided by a \ package you already have installed and are not already in a runlevel are \ displayed. -""" +""") def __init__(self, controller): GLIScreen.__init__(self, controller) @@ -42,16 +41,16 @@ displayed. self.new_services.sort() self.choice_list = { - "alsasound": _(u"Loads ALSA modules and restores mixer levels"), - "apache": _(u"Common web server (version 1.x)"), - "apache2": _(u"Common web server (version 2.x)"), - "distccd": _(u"Allows your system to help other systems compile"), - "hdparm": _(u"Makes it easy to set drive parameters automatically at boot"), - "portmap": _(u"Necessary for mounting NFS shares"), - "proftpd": _(u"Common FTP server"), - "sshd": _(u"OpenSSH server (allows remote logins)"), - "xfs": _(u"X Font Server (available if xorg-x11 compiled with USE=font-server)"), - "xdm": _(u"Gives you a graphical login which then starts X") + "alsasound": _("Loads ALSA modules and restores mixer levels"), + "apache": _("Common web server (version 1.x)"), + "apache2": _("Common web server (version 2.x)"), + "distccd": _("Allows your system to help other systems compile"), + "hdparm": _("Makes it easy to set drive parameters automatically at boot"), + "portmap": _("Necessary for mounting NFS shares"), + "proftpd": _("Common FTP server"), + "sshd": _("OpenSSH server (allows remote logins)"), + "xfs": _("X Font Server (available if xorg-x11 compiled with USE=font-server)"), + "xdm": _("Gives you a graphical login which then starts X") } self.treedata = gtk.ListStore(gobject.TYPE_BOOLEAN, gobject.TYPE_STRING, gobject.TYPE_STRING) @@ -61,8 +60,8 @@ displayed. self.toggle_renderer.connect("toggled", self.flag_toggled) self.columns = [] self.columns.append(gtk.TreeViewColumn("", self.toggle_renderer, active=0)) - self.columns.append(gtk.TreeViewColumn("Service", gtk.CellRendererText(), text=1)) - self.columns.append(gtk.TreeViewColumn("Description", gtk.CellRendererText(), text=2)) + self.columns.append(gtk.TreeViewColumn(_("Service"), gtk.CellRendererText(), text=1)) + self.columns.append(gtk.TreeViewColumn(_("Description"), gtk.CellRendererText(), text=2)) for column in self.columns: # column.set_resizable(True) self.treeview.append_column(column) |