[Checkins] SVN: z3c.recipe.i18n/trunk/ - Fix bug where i18ncompile miscalculated domains containing ".", everything

Christian Zagrodnick cz at gocept.com
Fri May 15 05:46:37 EDT 2009


Log message for revision 99970:
  - Fix bug where i18ncompile miscalculated domains containing ".", everything
  after the "." was ignored.
  
  

Changed:
  U   z3c.recipe.i18n/trunk/CHANGES.txt
  U   z3c.recipe.i18n/trunk/src/z3c/recipe/i18n/README.txt
  U   z3c.recipe.i18n/trunk/src/z3c/recipe/i18n/i18ncompile.py
  U   z3c.recipe.i18n/trunk/src/z3c/recipe/i18n/tests.py

-=-
Modified: z3c.recipe.i18n/trunk/CHANGES.txt
===================================================================
--- z3c.recipe.i18n/trunk/CHANGES.txt	2009-05-15 08:18:58 UTC (rev 99969)
+++ z3c.recipe.i18n/trunk/CHANGES.txt	2009-05-15 09:46:37 UTC (rev 99970)
@@ -5,7 +5,8 @@
 0.5.4 (unreleases)
 ------------------
 
-- ...
+- Fix bug where i18ncompile miscalculated domains containing ".", everything
+  after the "." was ignored.
 
 0.5.3 (2009-03-12)
 ------------------

Modified: z3c.recipe.i18n/trunk/src/z3c/recipe/i18n/README.txt
===================================================================
--- z3c.recipe.i18n/trunk/src/z3c/recipe/i18n/README.txt	2009-05-15 08:18:58 UTC (rev 99969)
+++ z3c.recipe.i18n/trunk/src/z3c/recipe/i18n/README.txt	2009-05-15 09:46:37 UTC (rev 99970)
@@ -2,8 +2,8 @@
 Translation domain extraction
 =============================
 
-z3c.recipe.start
-----------------
+z3c.recipe.i18n
+---------------
 
 This Zope 3 recipes offers different tools which allows to extract i18n 
 translation messages from egg based packages.

Modified: z3c.recipe.i18n/trunk/src/z3c/recipe/i18n/i18ncompile.py
===================================================================
--- z3c.recipe.i18n/trunk/src/z3c/recipe/i18n/i18ncompile.py	2009-05-15 08:18:58 UTC (rev 99969)
+++ z3c.recipe.i18n/trunk/src/z3c/recipe/i18n/i18ncompile.py	2009-05-15 09:46:37 UTC (rev 99970)
@@ -51,7 +51,7 @@
 
         for poFile in os.listdir(lc_messages_path):
             if poFile.endswith('.po'):
-                domain = poFile.split('.')[0]
+                domain = poFile.rsplit('.', 1)[0]
                 base = os.path.join(lc_messages_path, domain)
                 poPath = str(base + '.po')
                 moPath = str(base + '.mo')

Modified: z3c.recipe.i18n/trunk/src/z3c/recipe/i18n/tests.py
===================================================================
--- z3c.recipe.i18n/trunk/src/z3c/recipe/i18n/tests.py	2009-05-15 08:18:58 UTC (rev 99969)
+++ z3c.recipe.i18n/trunk/src/z3c/recipe/i18n/tests.py	2009-05-15 09:46:37 UTC (rev 99970)
@@ -30,7 +30,6 @@
     zc.buildout.testing.install('zc.recipe.egg', test)
     zc.buildout.testing.install('zope.app.locales', test)
     zc.buildout.testing.install('zope.configuration', test)
-    zc.buildout.testing.install('zope.deprecation', test)
     zc.buildout.testing.install('zope.event', test)
     zc.buildout.testing.install('zope.i18nmessageid', test)
     zc.buildout.testing.install('zope.interface', test)



More information about the Checkins mailing list