2013-08-15 00:00:42 +02:00
|
|
|
[buildout]
|
|
|
|
extends = https://raw.github.com/collective/buildout.plonetest/master/test-4.3.x.cfg
|
|
|
|
package-name = plone.app.discussion
|
|
|
|
package-extras = [test]
|
2013-08-20 14:22:52 +02:00
|
|
|
parts +=
|
|
|
|
mkrelease
|
|
|
|
pocompile
|
2013-12-15 12:00:25 +01:00
|
|
|
code-analysis
|
2014-03-25 18:33:48 +01:00
|
|
|
i18ndude
|
2014-03-25 16:59:20 +01:00
|
|
|
update_translations
|
2013-08-20 14:22:52 +02:00
|
|
|
|
|
|
|
[mkrelease]
|
|
|
|
recipe = zc.recipe.egg
|
|
|
|
eggs = jarn.mkrelease
|
|
|
|
|
|
|
|
[pocompile]
|
|
|
|
recipe = zc.recipe.egg
|
|
|
|
eggs = zest.pocompile
|
2013-08-15 00:00:42 +02:00
|
|
|
|
2013-12-15 12:00:25 +01:00
|
|
|
[code-analysis]
|
|
|
|
recipe = plone.recipe.codeanalysis
|
|
|
|
directory = ${buildout:directory}/plone/app/discussion
|
2013-12-15 12:04:05 +01:00
|
|
|
flake8-max-complexity = 50
|
2013-12-15 12:00:25 +01:00
|
|
|
|
2013-08-15 00:00:42 +02:00
|
|
|
[versions]
|
|
|
|
plone.app.discussion =
|
2013-09-24 14:29:38 +02:00
|
|
|
zope.interface = 4.0.5
|
2013-11-26 20:08:30 +01:00
|
|
|
plone.app.portlets = 2.5a1
|
2014-03-23 17:46:53 +01:00
|
|
|
plone.dexterity = 2.2.1
|
|
|
|
plone.app.querystring = 1.1.0
|
|
|
|
plone.app.jquery = 1.8.3
|
|
|
|
plone.app.testing = 4.2.4
|
|
|
|
plone.app.vocabularies = 2.1.14
|
2013-08-20 14:22:52 +02:00
|
|
|
|
2014-03-25 18:33:48 +01:00
|
|
|
|
|
|
|
[i18ndude]
|
2014-03-25 16:59:20 +01:00
|
|
|
recipe = zc.recipe.egg
|
|
|
|
eggs =
|
2014-03-25 18:33:48 +01:00
|
|
|
i18ndude
|
2014-03-25 16:59:20 +01:00
|
|
|
|
|
|
|
[update_translations]
|
|
|
|
recipe = collective.recipe.template
|
2014-03-25 18:33:48 +01:00
|
|
|
output = ${buildout:bin-directory}/update_translations
|
2014-03-25 16:59:20 +01:00
|
|
|
input = inline:
|
2014-03-25 18:33:48 +01:00
|
|
|
#!/usr/bin/env bash
|
2014-08-23 00:31:28 +02:00
|
|
|
|
2014-03-25 18:33:48 +01:00
|
|
|
DOMAIN="plone.app.discussion"
|
2014-03-25 16:59:20 +01:00
|
|
|
BASE_PATH=${buildout:directory}/plone/app/discussion
|
2014-03-25 18:33:48 +01:00
|
|
|
I18NDUDE=${buildout:bin-directory}/i18ndude
|
2014-08-23 00:31:28 +02:00
|
|
|
|
2014-03-25 18:33:48 +01:00
|
|
|
$I18NDUDE rebuild-pot --pot $BASE_PATH/locales/$DOMAIN.pot --create "$DOMAIN" $BASE_PATH*
|
|
|
|
$I18NDUDE rebuild-pot --pot $BASE_PATH/i18n/plone.pot --create "plone" $BASE_PATH/profiles/
|
2014-03-25 16:59:20 +01:00
|
|
|
|
|
|
|
for LANG in `find $BASE_PATH/locales -maxdepth 1 -mindepth 1 -type d \
|
2014-08-23 00:31:28 +02:00
|
|
|
| sed -e "s/.*locales\/\(.*\)$/\1/"`; do
|
2014-03-25 18:33:48 +01:00
|
|
|
$I18NDUDE sync --pot $BASE_PATH/locales/$DOMAIN.pot $BASE_PATH/locales/de/LC_MESSAGES/$DOMAIN.po
|
|
|
|
msgfmt --no-hash -o $BASE_PATH/locales/$LANG/LC_MESSAGES/$DOMAIN.mo $BASE_PATH/locales/$LANG/LC_MESSAGES/$DOMAIN.po
|
2014-08-23 00:31:28 +02:00
|
|
|
|
2014-03-25 18:33:48 +01:00
|
|
|
$I18NDUDE sync --pot $BASE_PATH/i18n/plone.pot $BASE_PATH/i18n/plone-$LANG.po
|
|
|
|
msgfmt --no-hash -o $BASE_PATH/i18n/plone-$LANG.mo $BASE_PATH/i18n/plone-$LANG.po
|
2014-03-25 16:59:20 +01:00
|
|
|
done
|
|
|
|
mode = 755
|