~brian.curtin/ubuntu-sso-client/httpserver-port

« back to all changes in this revision

Viewing changes to ubuntu_sso/utils/ui.py

  • Committer: Brian Curtin
  • Date: 2012-09-19 20:54:46 UTC
  • mfrom: (996.1.6 ubuntu-sso-client)
  • Revision ID: brian.curtin@canonical.com-20120919205446-4tjj074bql4kwe5m
Merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
 
36
36
from ubuntu_sso.logger import setup_logging
37
37
 
38
 
INSTALL_KWARGS = {}
 
38
TRANSLATION = gettext.translation('ubuntu-sso-client', fallback=True)
39
39
if sys.version_info < (3,):
40
 
    INSTALL_KWARGS["unicode"] = True
 
40
    _ = TRANSLATION.ugettext
 
41
else:
 
42
    _ = TRANSLATION.gettext
41
43
 
42
 
gettext.install('ubuntu-sso-client', **INSTALL_KWARGS)
43
44
logger = setup_logging('ubuntu_sso.utils.ui')
44
45
 
45
46