Skip to content

Commit ea8b2ed

Browse files
authored
Merge pull request #8199 from 4teamwork/TI-3173-fix-i18n-loading
Fix loading of i18n overrides
2 parents c6ad5ca + c43110e commit ea8b2ed

6 files changed

Lines changed: 23 additions & 2 deletions

File tree

changes/TI-3173.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix loading of i18n overrides in Docker image. [buchi]

docker/core/etc/site.zcml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
<include package="Products.Five" />
1010
<meta:redefinePermission from="zope2.Public" to="zope.Public" />
1111

12+
<!-- Load i18n overrides as early as possible -->
13+
<include package="opengever.base" file="locales.zcml" />
14+
<include package="opengever.core" file="locales.zcml" />
15+
1216
<!-- Load patches as early as possible -->
1317
<include package="opengever.base.monkey" />
1418

opengever/base/configure.zcml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<include file="schema.zcml" />
3434
<include file="widgets.zcml" />
3535

36-
<i18n:registerTranslations directory="locales" />
36+
<include file="locales.zcml" />
3737

3838
<genericsetup:registerProfile
3939
name="default"

opengever/base/locales.zcml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<configure
2+
xmlns="http://namespaces.zope.org/zope"
3+
xmlns:i18n="http://namespaces.zope.org/i18n"
4+
i18n_domain="opengever.base">
5+
6+
<i18n:registerTranslations directory="locales" />
7+
8+
</configure>

opengever/core/configure.zcml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@
3636
handler=".hooks.avoid_profile_reinstallation"
3737
/>
3838

39-
<i18n:registerTranslations directory="locales" />
39+
<include file="locales.zcml" />
4040

4141
</configure>

opengever/core/locales.zcml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<configure
2+
xmlns="http://namespaces.zope.org/zope"
3+
xmlns:i18n="http://namespaces.zope.org/i18n"
4+
i18n_domain="opengever.core">
5+
6+
<i18n:registerTranslations directory="locales" />
7+
8+
</configure>

0 commit comments

Comments
 (0)