Mercurial > pyntnclick
comparison pyntnclick/i18n.py @ 817:beac13c4e982 pyntnclick
Also warn about out-of-date tool translations if running rect-drawer
author | Neil Muller <neil@dip.sun.ac.za> |
---|---|
date | Sun, 27 Jan 2013 22:20:40 +0200 |
parents | 5ec7905b2365 |
children |
comparison
equal
deleted
inserted
replaced
816:eed75a1d50c4 | 817:beac13c4e982 |
---|---|
6 | 6 |
7 def _(s): | 7 def _(s): |
8 return unicode(gettext(s), "utf-8") | 8 return unicode(gettext(s), "utf-8") |
9 | 9 |
10 | 10 |
11 def get_module_locale(module): | 11 def get_module_i18n_path(module, path='locale'): |
12 """Get the locale data from within the module.""" | 12 """Get the locale data from within the module.""" |
13 return resource_filename(module, 'locale') | 13 return resource_filename(module, path) |