diff options
-rw-r--r-- | pulsecaster/config.py | 1 | ||||
-rw-r--r-- | pulsecaster/ui.py | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/pulsecaster/config.py b/pulsecaster/config.py index 6cc4f43..dba67fe 100644 --- a/pulsecaster/config.py +++ b/pulsecaster/config.py @@ -19,6 +19,7 @@ # Author: Paul W. Frields <stickster@gmail.com> NAME = u'PulseCaster' +LNAME = u'pulsecaster' import gettext _ = lambda x: gettext.ldgettext(NAME, x) 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', |