From d8b71a5d7e9ad2d20a18463438b862e5233d8c0e Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Fri, 12 Aug 2005 18:53:29 +0000 Subject: [PATCH] logic fix --- src/common/i18n.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/i18n.py b/src/common/i18n.py index 241a27b03..7ab86c375 100644 --- a/src/common/i18n.py +++ b/src/common/i18n.py @@ -48,6 +48,7 @@ def Q_(s): # but gettext while parsing the file detects ?vcard:Unknown as a whole string. # translator can either put the ?vcard: part or no (easier for him to no) # nothing fails + s = _(s) if s[0] == '?': - s = s[s.index(':')+1:] # remove ?abc: part + s = s[s.find(':')+1:] # remove ?abc: part return s