logic fix

This commit is contained in:
Nikos Kouremenos 2005-08-12 18:53:29 +00:00
parent 1968b201d7
commit d8b71a5d7e
1 changed files with 2 additions and 1 deletions

View File

@ -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