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

Brian Sutherland jinty at web.de
Thu Mar 12 07:03:21 EDT 2009


Log message for revision 97979:
  Fix bug where i18nmerge 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/i18nmergeall.py

-=-
Modified: z3c.recipe.i18n/trunk/CHANGES.txt
===================================================================
--- z3c.recipe.i18n/trunk/CHANGES.txt	2009-03-12 10:22:51 UTC (rev 97978)
+++ z3c.recipe.i18n/trunk/CHANGES.txt	2009-03-12 11:03:21 UTC (rev 97979)
@@ -5,7 +5,8 @@
 0.5.3 (unreleased)
 ------------------
 
-- ...
+- Fix bug where i18nmerge miscalculated domains containing ".", everything
+  after the "." was ignored.
 
 
 0.5.2 (2009-03-10)

Modified: z3c.recipe.i18n/trunk/src/z3c/recipe/i18n/i18nmergeall.py
===================================================================
--- z3c.recipe.i18n/trunk/src/z3c/recipe/i18n/i18nmergeall.py	2009-03-12 10:22:51 UTC (rev 97978)
+++ z3c.recipe.i18n/trunk/src/z3c/recipe/i18n/i18nmergeall.py	2009-03-12 11:03:21 UTC (rev 97979)
@@ -44,7 +44,7 @@
     for pot_name in os.listdir(path):
         if pot_name.endswith('.pot'):
             break
-    domain = pot_name.split('.')[0]
+    domain = pot_name[:-4]
     potPath = os.path.join(path, domain+'.pot')
     
     for language in os.listdir(path):



More information about the Checkins mailing list