diff options
author | Peter Jones <pjones@redhat.com> | 2007-02-06 16:14:43 +0000 |
---|---|---|
committer | Peter Jones <pjones@redhat.com> | 2007-02-06 16:14:43 +0000 |
commit | c517d3411266afcd7e339de5136365bce4b16b6e (patch) | |
tree | 3cbc08ceb26ee34dc06a9280820d73da712c4293 /installclasses | |
parent | 74df4e10f7e26a2777d04c0f735b704379dcbd5a (diff) | |
download | anaconda-c517d3411266afcd7e339de5136365bce4b16b6e.tar.gz anaconda-c517d3411266afcd7e339de5136365bce4b16b6e.tar.xz anaconda-c517d3411266afcd7e339de5136365bce4b16b6e.zip |
- make the product description actually get translated sanely (rhel bz #216067)
Diffstat (limited to 'installclasses')
-rw-r--r-- | installclasses/fedora.py | 5 | ||||
-rw-r--r-- | installclasses/rhel.py | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/installclasses/fedora.py b/installclasses/fedora.py index 26f77159e..d433687b4 100644 --- a/installclasses/fedora.py +++ b/installclasses/fedora.py @@ -17,6 +17,7 @@ class InstallClass(BaseInstallClass): "software applicable for general internet usage. " "What additional tasks would you like your system " "to include support for?") + _descriptionFields = (productName,) sortPriority = 10000 if productName.startswith("Red Hat Enterprise"): hidden = 1 @@ -28,10 +29,6 @@ class InstallClass(BaseInstallClass): # repos = { "Fedora Extras": ("http://download.fedora.redhat.com/pub/fedora/linux/extras/development/%s" %(rpmUtils.arch.getBaseArch() ,), None) } repos = {} - def _get_description(self): - return _(self._description) %(productName,) - description = property(_get_description) - def setInstallData(self, anaconda): BaseInstallClass.setInstallData(self, anaconda) diff --git a/installclasses/rhel.py b/installclasses/rhel.py index 32c7bb88b..75c560e72 100644 --- a/installclasses/rhel.py +++ b/installclasses/rhel.py @@ -14,10 +14,11 @@ class InstallClass(BaseInstallClass): # name has underscore used for mnemonics, strip if you dont need it id = "rhel" name = N_("Red Hat Enterprise Linux") - description = N_("The default installation of %s includes a set of " + _description = N_("The default installation of %s includes a set of " "software applicable for general internet usage. " "What additional tasks would you like your system " - "to include support for?") %(productName,) + "to include support for?") + _descriptionFields = (productName,) sortPriority = 10000 allowExtraRepos = False if not productName.startswith("Red Hat Enterprise"): |