diff options
author | Paul W. Frields <stickster@gmail.com> | 2010-06-06 11:55:04 -0400 |
---|---|---|
committer | Paul W. Frields <stickster@gmail.com> | 2010-06-06 11:55:04 -0400 |
commit | a8077313822f0621f68d7892d6d26273fc2170bc (patch) | |
tree | 725b5929a1e0d40508472718e32f594180a30a5a | |
parent | 7c39d30e2312366d23defa11eeb6f4a0096f96bc (diff) | |
download | pulsecaster-a8077313822f0621f68d7892d6d26273fc2170bc.tar.gz pulsecaster-a8077313822f0621f68d7892d6d26273fc2170bc.tar.xz pulsecaster-a8077313822f0621f68d7892d6d26273fc2170bc.zip |
Use domain for gettext
-rw-r--r-- | pulsecaster/config.py | 6 | ||||
-rw-r--r-- | pulsecaster/ui.py | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/pulsecaster/config.py b/pulsecaster/config.py index aefe3b5..1d28bad 100644 --- a/pulsecaster/config.py +++ b/pulsecaster/config.py @@ -18,9 +18,11 @@ # # Author: Paul W. Frields <stickster@gmail.com> -from gettext import gettext as _ - NAME = u'PulseCaster' + +import gettext +_ = lambda x: gettext.ldgettext(NAME, x) + VERSION = u'0.1.7' AUTHOR = u'Paul W. Frields' AUTHOR_EMAIL = u'stickster@gmail.com' diff --git a/pulsecaster/ui.py b/pulsecaster/ui.py index 731bf83..9d5f2ac 100644 --- a/pulsecaster/ui.py +++ b/pulsecaster/ui.py @@ -30,7 +30,8 @@ import pygst pygst.require('0.10') import gst -from gettext import gettext as _ +import gettext +_ = lambda x: gettext.ldgettext(NAME, x) _debug = True |