zope_i18n_compile_mo_files doesn't work on a Zeo configuration

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-04 14:16:11

问题


I'm in trouble with the "local translation" override by buildout configuration. I would like to override some standard labels of plone using the extra conf parameter "zope_i18n_compile_mo_files" with a folder placed in the buildout's directory (plone 4.3) : "locales/it/LC_MESSAGES/plone.po" In another Plone 4.1 installation it works well. The only difference between these installations are the plone version (4.1 vs 4.3) and the architecture (stand alone vs zeo cluster).

This is the piece of my buildout:

[instance-settings]
user = admin:admin
debug-mode = off
verbose-security = off
blob-storage = ${buildout:directory}/var/blobstorage
effective-user = ${config:system-user}
products = ${buildout:directory}/products
eggs =
    ${plone:eggs}
zcml =
    ${plone:zcml}
resources = ${buildout:directory}/resources
environment-vars =
    PTS_LANGUAGES it en
    LANG it_IT.utf8
    TZ Europe/Rome
    zope_i18n_allowed_languages it en
    zope_i18n_compile_mo_files true

What's the problem?


回答1:


You need to register that locales directory. I do not see that in your buildout config. Something like this:

[instance] recipe = plone.recipe.zope2instance locales = ${buildout:directory}/locales

See https://github.com/mauritsvanrees/maurits.i18ntalk/blob/master/talk.rst#buildoutcfg



来源:https://stackoverflow.com/questions/29735367/zope-i18n-compile-mo-files-doesnt-work-on-a-zeo-configuration

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!