From 7269b0b0e8f1bf6ddc1575eeed52eda535a88918 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Thu, 21 Oct 2010 16:19:40 +0000 Subject: [PATCH] 2371 use date format set by the user for printing reports in different languages easier (by VPeric) svn: r16021 --- src/plugins/lib/libtranslate.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/lib/libtranslate.py b/src/plugins/lib/libtranslate.py index 05c9cc18b..aca513188 100644 --- a/src/plugins/lib/libtranslate.py +++ b/src/plugins/lib/libtranslate.py @@ -39,6 +39,7 @@ _ = gettext.gettext #------------------------------------------------------------------------ import TransUtils import DateHandler +import config #------------------------------------------------------------------------ # @@ -140,8 +141,9 @@ class Translator: self.__trans = gettext.translation(TransUtils.get_localedomain(), languages=[lang], fallback=True) + val = config.get('preferences.date-format') if lang in DateHandler.LANG_TO_DISPLAY: - self.__dd = DateHandler.LANG_TO_DISPLAY[lang](None) + self.__dd = DateHandler.LANG_TO_DISPLAY[lang](val) else: self.__dd = DateHandler.displayer