Bugfixes.
This commit is contained in:
parent
39321b2d38
commit
c7633ecc8b
5 changed files with 22 additions and 16 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue