Mercurial > boomslang
diff 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 |
line wrap: on
line diff
--- a/pyntnclick/i18n.py Sat Jun 21 22:04:35 2014 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ -# internationalization - -from gettext import gettext -from pkg_resources import resource_filename - - -def _(s): - return unicode(gettext(s), "utf-8") - - -def get_module_i18n_path(module, path='locale'): - """Get the locale data from within the module.""" - return resource_filename(module, path)