From a9d7deced7117267103bd6ad96164119b576e1e3 Mon Sep 17 00:00:00 2001 From: Preston Cody Date: Mon, 26 May 2008 02:32:19 +0000 Subject: committing changes to gtkfe in stages. adding internalization support written by Jesus Rivero (Neurogeek) basically sets everything in gettext. last file in this dir. git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/gli/trunk@1907 f8877401-5920-0410-a79b-8e2d7e04ca0d --- src/fe/gtk/ExtraPackages.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/fe') diff --git a/src/fe/gtk/ExtraPackages.py b/src/fe/gtk/ExtraPackages.py index 284859d..1616b7d 100644 --- a/src/fe/gtk/ExtraPackages.py +++ b/src/fe/gtk/ExtraPackages.py @@ -16,8 +16,8 @@ class Panel(GLIScreen): @license: GPL """ # Attributes: - title="Do you need any extra packages?" - _helptext = """ + title = _("Do you need any extra packages?") + _helptext = _(""" Extra Packages All of the packages listed on the right are available for the installer to \ @@ -27,7 +27,7 @@ the internet. If you choose a graphical desktop such as gnome, kde, or fluxbox, be sure to \ also select xorg-x11 from the list. Otherwise, you will not have a fully \ functioning graphical environment. -""" +""") # list of packages to emerge from the checked off items. checked_items = [] @@ -39,12 +39,12 @@ functioning graphical environment. self.vert2 = gtk.VBox(False, 10) def draw_screen(self): - content_str = """ + content_str = _(""" This is where you emerge extra packages that your system may need. Packages that are fetch-restricted or require you to accept licenses (e.g. many big games) will cause your install to fail. Add additional packages with caution. These trouble packages can be installed manually after you reboot. -""" +""") # pack the description self.vert.pack_start(gtk.Label(content_str), expand=False, fill=False, padding=5) @@ -86,7 +86,7 @@ caution. These trouble packages can be installed manually after you reboot. self.vert2.pack_start(hbox,expand=False,fill=False,padding=0) # add the custom space-separated list bar - entry_description = gtk.Label("Enter a space separated list of extra packages to install on the system ( in addition to those checked above ):") + entry_description = gtk.Label(_("Enter a space separated list of extra packages to install on the system ( in addition to those checked above ):")) self.entry=gtk.Entry() if self.controller.install_type == "networkless": self.entry.set_sensitive(False) @@ -152,7 +152,7 @@ caution. These trouble packages can be installed manually after you reboot. self.controller.install_profile.set_install_packages(None, packages_to_emerge, None) #print packages_to_emerge except: - box = Widgets().error_Box("Error saving packages","You need to fix your input! \n Theres a problem, are you sure didn't enter \n funny characters?") + box = Widgets().error_Box(_("Error saving packages","You need to fix your input! \n Theres a problem, are you sure didn't enter \n funny characters?")) box.show() return progress = ProgressDialog(self.controller, ('install_mta','install_packages'), self.progress_callback) -- cgit v1.2.3-65-gdbad