1 |
Author: codeman |
2 |
Date: 2008-05-26 02:32:19 +0000 (Mon, 26 May 2008) |
3 |
New Revision: 1907 |
4 |
|
5 |
Modified: |
6 |
trunk/src/fe/gtk/ExtraPackages.py |
7 |
Log: |
8 |
committing changes to gtkfe in stages. |
9 |
adding internalization support written by |
10 |
Jesus Rivero (Neurogeek) |
11 |
basically sets everything in gettext. |
12 |
last file in this dir. |
13 |
|
14 |
|
15 |
Modified: trunk/src/fe/gtk/ExtraPackages.py |
16 |
=================================================================== |
17 |
--- trunk/src/fe/gtk/ExtraPackages.py 2008-05-26 02:30:37 UTC (rev 1906) |
18 |
+++ trunk/src/fe/gtk/ExtraPackages.py 2008-05-26 02:32:19 UTC (rev 1907) |
19 |
@@ -16,8 +16,8 @@ |
20 |
@license: GPL |
21 |
""" |
22 |
# Attributes: |
23 |
- title="Do you need any extra packages?" |
24 |
- _helptext = """ |
25 |
+ title = _("Do you need any extra packages?") |
26 |
+ _helptext = _(""" |
27 |
<b><u>Extra Packages</u></b> |
28 |
|
29 |
All of the packages listed on the right are available for the installer to \ |
30 |
@@ -27,7 +27,7 @@ |
31 |
If you choose a graphical desktop such as gnome, kde, or fluxbox, be sure to \ |
32 |
also select xorg-x11 from the list. Otherwise, you will not have a fully \ |
33 |
functioning graphical environment. |
34 |
-""" |
35 |
+""") |
36 |
|
37 |
# list of packages to emerge from the checked off items. |
38 |
checked_items = [] |
39 |
@@ -39,12 +39,12 @@ |
40 |
self.vert2 = gtk.VBox(False, 10) |
41 |
|
42 |
def draw_screen(self): |
43 |
- content_str = """ |
44 |
+ content_str = _(""" |
45 |
This is where you emerge extra packages that your system may need. Packages that |
46 |
are fetch-restricted or require you to accept licenses (e.g. many |
47 |
big games) will cause your install to fail. Add additional packages with |
48 |
caution. These trouble packages can be installed manually after you reboot. |
49 |
-""" |
50 |
+""") |
51 |
|
52 |
# pack the description |
53 |
self.vert.pack_start(gtk.Label(content_str), expand=False, fill=False, padding=5) |
54 |
@@ -86,7 +86,7 @@ |
55 |
self.vert2.pack_start(hbox,expand=False,fill=False,padding=0) |
56 |
|
57 |
# add the custom space-separated list bar |
58 |
- entry_description = gtk.Label("Enter a space separated list of extra packages to install on the system ( in addition to those checked above ):") |
59 |
+ entry_description = gtk.Label(_("Enter a space separated list of extra packages to install on the system ( in addition to those checked above ):")) |
60 |
self.entry=gtk.Entry() |
61 |
if self.controller.install_type == "networkless": |
62 |
self.entry.set_sensitive(False) |
63 |
@@ -152,7 +152,7 @@ |
64 |
self.controller.install_profile.set_install_packages(None, packages_to_emerge, None) |
65 |
#print packages_to_emerge |
66 |
except: |
67 |
- 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?") |
68 |
+ 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?")) |
69 |
box.show() |
70 |
return |
71 |
progress = ProgressDialog(self.controller, ('install_mta','install_packages'), self.progress_callback) |
72 |
|
73 |
-- |
74 |
gentoo-commits@l.g.o mailing list |