Skip to content
Browse files

Fix zcml load order of the optional locales directory. Translation ov…

…errides need to be loaded first.
  • Loading branch information...
1 parent 6ef0ae3 commit 72d590929cbb1649cb6fe85233476a25bae250b5 @sunew sunew committed with mauritsvanrees
Showing with 4 additions and 3 deletions.
  1. +2 −1 CHANGES.txt
  2. +2 −2 src/plone/recipe/zope2instance/__init__.py
View
3 CHANGES.txt
@@ -4,7 +4,8 @@ Changelog
4.2.3 (unreleased)
------------------
-- Nothing changed yet.
+- Fix zcml load order of the optional locales directory. Translation overrides need to be loaded first.
+ [sunew]
4.2.2 (2012-07-02)
View
4 src/plone/recipe/zope2instance/__init__.py
@@ -627,7 +627,7 @@ def build_package_includes(self):
if locales:
locales_path = locales.strip()
- path=os.path.join(includes_path, "997-locales-configure.zcml")
+ path=os.path.join(includes_path, "001-locales-configure.zcml")
open(path, "w").write(
locales_zcml % dict(directory=locales_path)
)
@@ -636,7 +636,7 @@ def build_package_includes(self):
os.mkdir(locales_path)
if zcml:
- n = 0
+ n = 1 # 001 is reserved for an optional locales-configure
package_match = re.compile('\w+([.]\w+)*$').match
for package in zcml:
n += 1

0 comments on commit 72d5909

Please sign in to comment.
Something went wrong with that request. Please try again.