Bugfixes.

This commit is contained in:
Gaetan Delannay 2011-02-28 19:30:17 +01:00
parent 39321b2d38
commit c7633ecc8b
5 changed files with 22 additions and 16 deletions

View file

@ -579,7 +579,11 @@ class TranslationClassDescriptor(ClassDescriptor):
width = 0
height = 0
for fileName, poFile in i18nFiles.iteritems():
if not fileName.startswith('%s-' % appName): continue
if not fileName.startswith('%s-' % appName) or \
not i18nFiles[fileName].messagesDict.has_key(messageId):
# In this case this is not one of our Appy-managed translation
# files.
continue
msgContent = i18nFiles[fileName].messagesDict[messageId].msg
# Compute width
width = max(width, len(msgContent))