[Checkins] SVN: grokproject/trunk/ Added buildout-driven i18n-support (thanks to lovely.recipe). Now the i18n-tools are

Uli Fouquet uli at gnufix.de
Mon Sep 10 23:45:32 EDT 2007


Log message for revision 79558:
  Added buildout-driven i18n-support (thanks to lovely.recipe). Now the i18n-tools are 
  created by buildout by default. Two more dependencies (zope.i18nmessageid, 
  z3c.csvvocabulary) for created grok projects, that are not dependencies in the strict 
  sense.
  

Changed:
  U   grokproject/trunk/README.txt
  U   grokproject/trunk/grokproject/template/buildout.cfg_tmpl
  U   grokproject/trunk/grokproject/template/setup.py_tmpl

-=-
Modified: grokproject/trunk/README.txt
===================================================================
--- grokproject/trunk/README.txt	2007-09-10 14:50:26 UTC (rev 79557)
+++ grokproject/trunk/README.txt	2007-09-11 03:45:30 UTC (rev 79558)
@@ -30,6 +30,8 @@
 
 * Updated template for site.zcml, no annoying warning at start
 
+* Added buildout support for i18n (thanks to lovely.recipe.i18n).
+
 0.5.1 (2007-07-14)
 ------------------
 

Modified: grokproject/trunk/grokproject/template/buildout.cfg_tmpl
===================================================================
--- grokproject/trunk/grokproject/template/buildout.cfg_tmpl	2007-09-10 14:50:26 UTC (rev 79557)
+++ grokproject/trunk/grokproject/template/buildout.cfg_tmpl	2007-09-11 03:45:30 UTC (rev 79558)
@@ -1,6 +1,6 @@
 [buildout]
 develop = .
-parts = app data zopectl test
+parts = app data zopectl i18n test
 find-links = http://download.zope.org/distribution/
 eggs-directory = ${eggs_dir}
 newest = ${newest}
@@ -57,3 +57,12 @@
 recipe = zc.recipe.testrunner
 eggs = ${egg}
 defaults = ['--tests-pattern', '^f?tests$$', '-v']
+
+# this section named so that the i18n scripts are called bin/i18n...
+[i18n]
+recipe = lovely.recipe:i18n
+package = ${package}
+domain = ${package}
+location = src/${package}
+output = locales
+maker = z3c.csvvocabulary.csvStrings

Modified: grokproject/trunk/grokproject/template/setup.py_tmpl
===================================================================
--- grokproject/trunk/grokproject/template/setup.py_tmpl	2007-09-10 14:50:26 UTC (rev 79557)
+++ grokproject/trunk/grokproject/template/setup.py_tmpl	2007-09-11 03:45:30 UTC (rev 79558)
@@ -20,6 +20,8 @@
       zip_safe=${repr(bool(zip_safe))|False},
       install_requires=['setuptools',
                         'grok',
+                        'z3c.csvvocabulary',
+                        'zope.i18nmessageid',
                         # Add extra requirements here
                         ],
       entry_points="""



More information about the Checkins mailing list