files在Zeo配置上不起作用

files在Zeo配置上不起作用

本文介绍了zope_i18n_compile_mo_files在Zeo配置上不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对构建配置覆盖的本地翻译"有麻烦.我想使用额外的conf参数"zope_i18n_compile_mo_files"来覆盖一些标准的plone标签,并将其放置在构建目录的目录中(克隆4.3):"locales/it/LC_MESSAGES/plone.po"在另一个Plone 4.1安装中,它运行良好.这些安装之间的唯一区别是plone版本(4.1对4.3)和体系结构(独立对zeo集群).

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

出什么问题了?

推荐答案

您需要注册该语言环境目录.我没有在您的配置中看到这一点.像这样:

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

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

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

请参见 https://github.com/mauritsvanrees/maurits.i18ntalk/blob/master/talk.rst#buildoutcfg

这篇关于zope_i18n_compile_mo_files在Zeo配置上不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 04:35