annotate pyntnclick/i18n.py @ 790:032c8c5563b8 pyntnclick

Don't search the same path twice, if language == lang_dialect
author Stefano Rivera <stefano@rivera.za.net>
date Sat, 26 Jan 2013 20:11:40 +0200
parents 43b49f1de828
children 5ec7905b2365
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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")