summaryrefslogtreecommitdiffstats
path: root/pulsecaster/ui.py
diff options
context:
space:
mode:
authorPaul W. Frields <stickster@gmail.com>2012-12-06 14:32:17 -0500
committerPaul W. Frields <stickster@gmail.com>2012-12-06 14:54:04 -0500
commit0ed444d3097e62a1708b539bb63e0167d8f95460 (patch)
treeef6f5569bd509a8d54ae0fc900b74d5c1ff61f56 /pulsecaster/ui.py
parenta096a2f63f7f54470ac1ec9716e94a35b04067a6 (diff)
downloadpulsecaster-0ed444d3097e62a1708b539bb63e0167d8f95460.tar.gz
pulsecaster-0ed444d3097e62a1708b539bb63e0167d8f95460.tar.xz
pulsecaster-0ed444d3097e62a1708b539bb63e0167d8f95460.zip
Fix i18n so translations work
Diffstat (limited to 'pulsecaster/ui.py')
-rw-r--r--pulsecaster/ui.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pulsecaster/ui.py b/pulsecaster/ui.py
index 225b9d5..b7c9b57 100644
--- a/pulsecaster/ui.py
+++ b/pulsecaster/ui.py
@@ -34,7 +34,8 @@ import gst
from datetime import datetime
import gettext
-_ = lambda x: gettext.ldgettext(NAME, x)
+t = gettext.translation(LNAME)
+_ = t.gettext
try:
_debug = os.environ['PULSECASTER_DEBUG']
@@ -48,6 +49,7 @@ def _debugPrint(text):
class PulseCasterUI:
def __init__(self):
self.builder = Gtk.Builder()
+ self.builder.set_translation_domain(NAME)
try:
self.builder.add_from_file(os.path.join(os.getcwd(),
'data',