Mercurial > boomslang
comparison pyntnclick/i18n.py @ 854:79b5c1be9a5e default tip
Remove pyntnclick, it's its own library, now
author | Stefano Rivera <stefano@rivera.za.net> |
---|---|
date | Sat, 21 Jun 2014 22:06:09 +0200 |
parents | f95830b58336 |
children |
comparison
equal
deleted
inserted
replaced
852:f95830b58336 | 854:79b5c1be9a5e |
---|---|
1 # internationalization | |
2 | |
3 from gettext import gettext | |
4 from pkg_resources import resource_filename | |
5 | |
6 | |
7 def _(s): | |
8 return unicode(gettext(s), "utf-8") | |
9 | |
10 | |
11 def get_module_i18n_path(module, path='locale'): | |
12 """Get the locale data from within the module.""" | |
13 return resource_filename(module, path) |