Mercurial > pyntnclick
annotate pyntnclick/i18n.py @ 799:a04a876ee369 pyntnclick
Update line numbers in po files
author | Neil Muller <neil@dip.sun.ac.za> |
---|---|
date | Sun, 27 Jan 2013 13:38:56 +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") |