Bugfixes.
This commit is contained in:
parent
39321b2d38
commit
c7633ecc8b
5 changed files with 22 additions and 16 deletions
gen
|
@ -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))
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
'''This package contains stuff used at run-time for installing a generated
|
||||
Plone product.'''
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
from appy.gen.plone25.installer import PloneInstaller as Plone25Installer
|
||||
|
||||
class PloneInstaller(Plone25Installer):
|
||||
'''This Plone installer runs every time the generated Plone product is
|
||||
installed or uninstalled (in the Plone configuration panel).'''
|
||||
# ------------------------------------------------------------------------------
|
Loading…
Add table
Add a link
Reference in a new issue