-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathbuildout.cfg
146 lines (123 loc) · 3.65 KB
/
buildout.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
# This buildout can be used to obtain a complete test system from scratch:
#
# Use it like this:
#
# virtualenv .
# ./bin/pip install zc.buildout
# bin/buildout
[buildout]
#newest = false
allow-picked-versions = true
show-picked-verisions = true
index = https://pypi.python.org/simple/
extends = http://dist.plone.org/release/4.3.11/versions.cfg
extensions +=
mr.developer
sources = sources
auto-checkout = *
versions = versions
develop =
.
# ../bika.lims
zeoserver-address = 8100
zeoclient-address = 9090
user = admin:adminsecret
[sources]
bika.lims = git https://github.com/BaobabLims/bika.lims.git
graphite.theme = git https://github.com/BaobabLims/graphite.theme.git
[instance]
recipe = plone.recipe.zope2instance
var = var
blob-storage = var/blobstorage
http-address = ${buildout:zeoclient-address}
user = ${buildout:user}
resources = ${buildout:directory}/resources
locales = ${buildout:directory}/locales
eggs = ${buildout:eggs}
event-log = var/instance-event.log
z2-log = var/instance-Z2.log
pid-file = var/instance.pid
lock-file = var/instance.lock
parts =
lxml
omelette
instance
test
robot
i18ndude
update_translations
eggs =
baobab.lims
i18ndude
lxml
[lxml]
recipe = z3c.recipe.staticlxml
egg = lxml #==2.3.6
force = false
static-build = true
[test]
recipe = zc.recipe.testrunner
defaults = ['--auto-color', '--auto-progress']
eggs =
bika.lims [test]
baobab.lims [test]
[robot]
recipe = zc.recipe.egg
eggs =
${buildout:eggs}
plone.app.robotframework
[omelette]
recipe = collective.recipe.omelette
eggs = ${buildout:eggs}
[i18ndude]
unzip = true
recipe = zc.recipe.egg
eggs = i18ndude
[update_translations]
recipe = collective.recipe.template
output = ${buildout:directory}/bin/update_translations
input = inline:
#!/bin/sh
#Generated by buildout from baobab.lims/buildout.cfg
I18NDUDE=${buildout:directory}/bin/i18ndude
EXCLUDE="bin build develop-eggs eggs include lib local parts"
LOCALES=${buildout:directory}/baobab/lims/locales
cd $LOCALES
### always pull all translations from transifex.
tx pull -a -f
###### bika domain ######
### Flush the english (transifex source language) po files
### If we don't do this, new bika-manual.pot translations won't be synced.
> en/LC_MESSAGES/bika.po
### Re-scan source for new strings
$I18NDUDE rebuild-pot -p bika.pot -c bika --exclude "$EXCLUDE" ${buildout:directory}
### add manual translations (overrides)
$I18NDUDE trmerge bika-tmp.pot bika-manual.pot > bika.pot
mv bika-tmp.pot bika.pot
### sync
$I18NDUDE sync --pot bika.pot */LC_MESSAGES/bika.po
###### plone domain ######
### Flush the english (transifex source language) po files
### If we don't do this, new bika-manual.pot translations won't be synced.
> en/LC_MESSAGES/plone.po
### Re-scan source for new strings
$I18NDUDE rebuild-pot --pot plone.pot --create plone ${buildout:directory}/baobab/lims/profiles
### filter out messages that are already translated
$I18NDUDE filter plone-tmp.pot ${buildout:directory}/parts/omelette/plone/app/locales/locales/plone.pot > plone-tmp.pot
mv plone-tmp.pot plone.pot
### add manual translations (overrides)
$I18NDUDE trmerge plone.pot plone-manual.pot > plone-tmp.pot
mv plone-tmp.pot plone.pot
### sync
$I18NDUDE sync --pot plone.pot */LC_MESSAGES/plone.po
find . -name "*.mo" -delete
for po in `find . -name "*.po"`; do
###
msgfmt -o `dirname $po`/`basename $po .po`.mo $po;
done
### Transifex
eho run \"tx push -s -t\" if everything went smoothly.
mode = 755
[versions]
zc.buildout =
setuptools =