From e3aa37a05b150604de50bd9ec6e004a688d698f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Fri, 14 Aug 2009 16:45:31 +0200 Subject: Add function to add _ to namespace --- portato/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'portato/__init__.py') diff --git a/portato/__init__.py b/portato/__init__.py index 653329c..4252a0a 100644 --- a/portato/__init__.py +++ b/portato/__init__.py @@ -54,6 +54,11 @@ def get_parser (use_ = False): return parser +def _sub_start (): + # set gettext stuff + locale.setlocale(locale.LC_ALL, '') + gettext.install(APP, LOCALE_DIR, unicode = True) + def start(): # set gettext stuff -- cgit v1.2.3