~jconti/recent-notifications/trunk

« back to all changes in this revision

Viewing changes to unity/Translations.py

  • Committer: Jason Conti
  • Date: 2011-03-26 21:20:00 UTC
  • Revision ID: jason.conti@gmail.com-20110326212000-48rj1zased29tne4
Ported Notification.py to gobject introspection, everything except dbus. Going to attempt that next, but may revert if it doesn't work so well yet.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
"""
 
2
Translations.py
 
3
by Jason Conti
 
4
March 8, 2010
 
5
updated: March 26, 2011
 
6
 
 
7
Code for working with gettext translations.
 
8
"""
 
9
 
 
10
import gettext
 
11
from gettext import lgettext as _
 
12
from gettext import lngettext as ngettext
 
13
if hasattr(gettext, "bind_textdomain_codeset"):
 
14
  gettext.bind_textdomain_codeset("recent-notifications", "UTF-8")
 
15
gettext.textdomain("recent-notifications")