summaryrefslogtreecommitdiffstats
path: root/pyanaconda/product.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2012-11-29 17:05:15 -0500
committerChris Lumens <clumens@redhat.com>2012-12-04 10:18:58 -0500
commita5e66f33718a6f10e1b581ec62a2cd7cede7912d (patch)
treeafbb23c7e1cb44157777142035911c429a9581e9 /pyanaconda/product.py
parent700647eab0a52d0d242d398b536773832e4783d9 (diff)
downloadanaconda-a5e66f33718a6f10e1b581ec62a2cd7cede7912d.tar.gz
anaconda-a5e66f33718a6f10e1b581ec62a2cd7cede7912d.tar.xz
anaconda-a5e66f33718a6f10e1b581ec62a2cd7cede7912d.zip
Make sure product info and spoke titles are translated throughout.
Except on the hub, which is special and is going to need special work done for it.
Diffstat (limited to 'pyanaconda/product.py')
-rw-r--r--pyanaconda/product.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/pyanaconda/product.py b/pyanaconda/product.py
index c269b3ef8..0edab7dad 100644
--- a/pyanaconda/product.py
+++ b/pyanaconda/product.py
@@ -20,6 +20,9 @@
import ConfigParser
import os
+import gettext
+_ = lambda x: gettext.ldgettext("anaconda", x)
+
# First, load in the defaults. In order of precedence: contents of
# .buildstamp, environment, stupid last ditch hardcoded defaults.
config = ConfigParser.ConfigParser()
@@ -46,3 +49,7 @@ if not productArch and productStamp.index(".") != -1:
productArch = productStamp[productStamp.index(".")+1:]
if productVersion == "development":
productVersion = "rawhide"
+
+def distributionText():
+ return _("%(productName)s %(productVersion)s INSTALLATION") % \
+ {"productName": productName, "productVersion": productVersion}