diff urwid_satext/files_management.py @ 34:875ff127b2dd

- i18n management: gettext integration + french translation - added misc files to distribution
author Goffi <goffi@goffi.org>
date Tue, 28 Dec 2010 21:48:01 +0100
parents 818393067e54
children 7155b81ffdd5
line wrap: on
line diff
--- a/urwid_satext/files_management.py	Tue Dec 28 21:46:25 2010 +0100
+++ b/urwid_satext/files_management.py	Tue Dec 28 21:48:01 2010 +0100
@@ -25,7 +25,9 @@
 from xml.dom import minidom
 from logging import debug, info, error
 from time import time
-_ = unicode #FIXME: temporary workaround, the time to manage well i18n
+
+import gettext
+gettext.install('urwid_satext', unicode=True)
 
 class PathEdit(sat_widgets.AdvancedEdit):
     """AdvancedEdit with manage file paths"""