Mercurial > boomslang
annotate pyntnclick/i18n.py @ 786:fb8c146017a9 pyntnclick
Add warnings for 'po file is older than mo file' and 'mo file missing'
author | Neil Muller <neil@dip.sun.ac.za> |
---|---|
date | Sat, 26 Jan 2013 20:01:39 +0200 |
parents | 43b49f1de828 |
children | 5ec7905b2365 |
rev | line source |
---|---|
769
43b49f1de828
Merge i18n for before the pyntnclick split
Stefano Rivera <stefano@rivera.za.net>
parents:
diff
changeset
|
1 # internationalization |
43b49f1de828
Merge i18n for before the pyntnclick split
Stefano Rivera <stefano@rivera.za.net>
parents:
diff
changeset
|
2 |
43b49f1de828
Merge i18n for before the pyntnclick split
Stefano Rivera <stefano@rivera.za.net>
parents:
diff
changeset
|
3 from gettext import gettext |
43b49f1de828
Merge i18n for before the pyntnclick split
Stefano Rivera <stefano@rivera.za.net>
parents:
diff
changeset
|
4 |
43b49f1de828
Merge i18n for before the pyntnclick split
Stefano Rivera <stefano@rivera.za.net>
parents:
diff
changeset
|
5 |
43b49f1de828
Merge i18n for before the pyntnclick split
Stefano Rivera <stefano@rivera.za.net>
parents:
diff
changeset
|
6 def _(s): |
43b49f1de828
Merge i18n for before the pyntnclick split
Stefano Rivera <stefano@rivera.za.net>
parents:
diff
changeset
|
7 return unicode(gettext(s), "utf-8") |