Coverage for tw2.core.i18n : 72%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
except ImportError: resource_filename = None
"""Get the location of locales.""" except NotImplementedError: pass return os.path.join(os.path.dirname(__file__), 'i18n') locale_dir = os.path.join(os.path.dirname(__file__), 'i18n') if not os.access(locale_dir, os.R_OK | os.X_OK): locale_dir = os.path.normpath('/usr/share/locale') return locale_dir
return gettext.translation(domain=domain, languages=lang, localedir=localedir, fallback=True).ugettext
except AttributeError: return _sval
'tw2_translation_string', '_', ] |