summaryrefslogtreecommitdiffstats
path: root/pyanaconda/installclass.py
diff options
context:
space:
mode:
authorAles Kozumplik <akozumpl@redhat.com>2011-03-08 18:31:37 +0100
committerAles Kozumplik <akozumpl@redhat.com>2011-03-14 09:23:22 +0100
commit153d7e7c568b76d3f0323d7d1a8601a46f244da4 (patch)
tree82a556776e17864bc8da5ecf90303779bfb03af0 /pyanaconda/installclass.py
parent8c1b4f5f0d290b6353f0ec3a1fbcfa949358ead5 (diff)
downloadanaconda-153d7e7c568b76d3f0323d7d1a8601a46f244da4.tar.gz
anaconda-153d7e7c568b76d3f0323d7d1a8601a46f244da4.tar.xz
anaconda-153d7e7c568b76d3f0323d7d1a8601a46f244da4.zip
Make the "comps" translation domain dynamic.
In Fedora, for instance, there's no comps localization file (there's neither a product.img). This patch should make the installation tasks look translated Related: rhbz#681404
Diffstat (limited to 'pyanaconda/installclass.py')
-rw-r--r--pyanaconda/installclass.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/pyanaconda/installclass.py b/pyanaconda/installclass.py
index 385757e31..8fd20b51d 100644
--- a/pyanaconda/installclass.py
+++ b/pyanaconda/installclass.py
@@ -55,6 +55,7 @@ class BaseInstallClass(object):
showUpgrade = True
bootloaderTimeoutDefault = None
bootloaderExtraArgs = ""
+ _l10n_domain = None
# list of of (txt, grplist) tuples for task selection screen
tasks = []
@@ -70,6 +71,13 @@ class BaseInstallClass(object):
return _(self._description) % self._descriptionFields
description = property(_get_description)
+ @property
+ def l10n_domain(self):
+ if self._l10n_domain is None:
+ raise RuntimeError("Localization domain for '%s' not set." %
+ self.name)
+ return self._l10n_domain
+
def postAction(self, anaconda):
anaconda.backend.postAction(anaconda)