39 |
|
|
40 |
cd /var/lib/pootle/tmp |
cd /var/lib/pootle/tmp |
41 |
|
|
42 |
|
# Sync database stores to filesystem |
43 |
|
django-admin sync_stores --settings=pootle.settings &> /dev/null |
44 |
|
|
45 |
for ver in sme7 sme8 |
for ver in sme7 sme8 |
46 |
do |
do |
47 |
# Update anaconda template |
# Update anaconda template |
55 |
diffmv backup-console.pot /var/lib/pootle/po/$ver/templates/backup-console.pot |
diffmv backup-console.pot /var/lib/pootle/po/$ver/templates/backup-console.pot |
56 |
potempl $(find /var/lib/pootle/cvs/smeserver/e-smith-manager/$ver/ -type f -name 25Copyright) > foot.tmpl.pot |
potempl $(find /var/lib/pootle/cvs/smeserver/e-smith-manager/$ver/ -type f -name 25Copyright) > foot.tmpl.pot |
57 |
diffmv foot.tmpl.pot /var/lib/pootle/po/$ver/templates/foot.tmpl.pot |
diffmv foot.tmpl.pot /var/lib/pootle/po/$ver/templates/foot.tmpl.pot |
58 |
potempl $(find /var/lib/pootle/cvs/smeserver/*/$ver/ -type f -regex '.*/e-?smith/console.*') > server-console.pot |
potempl $(find /var/lib/pootle/cvs/smeserver/*/$ver/ -type f -regex '.*/e-?smith/console.*' -not -regex '.*\+ldap/.*') > server-console.pot |
59 |
diffmv server-console.pot /var/lib/pootle/po/$ver/templates/server-console.pot |
diffmv server-console.pot /var/lib/pootle/po/$ver/templates/server-console.pot |
60 |
potempl $(find /var/lib/pootle/cvs/smeserver/e-smith-quota/$ver/ -type f -name userOverQuota.tmpl) > userOverQuota.tmpl.pot |
potempl $(find /var/lib/pootle/cvs/smeserver/e-smith-quota/$ver/ -type f -name userOverQuota.tmpl) > userOverQuota.tmpl.pot |
61 |
diffmv userOverQuota.tmpl.pot /var/lib/pootle/po/$ver/templates/userOverQuota.tmpl.pot |
diffmv userOverQuota.tmpl.pot /var/lib/pootle/po/$ver/templates/userOverQuota.tmpl.pot |
96 |
do |
do |
97 |
# Create compendium to assist translations |
# Create compendium to assist translations |
98 |
msgcat --use-first <(msgcat $(find /var/lib/pootle/tmp/errors/*/$lang/ -name '*.po') | msgattrib --translated --no-fuzzy) \ |
msgcat --use-first <(msgcat $(find /var/lib/pootle/tmp/errors/*/$lang/ -name '*.po') | msgattrib --translated --no-fuzzy) \ |
99 |
<(msgcat $(find /var/lib/pootle/po/*/$lang/ -name '*.po') | msgattrib --translated --no-fuzzy) \ |
<(msgcat --to-code UTF-8 $(find /var/lib/pootle/po/*/$lang/ -name '*.po') | msgattrib --translated --no-fuzzy) \ |
100 |
> /var/lib/pootle/tmp/compendium-$lang.po |
> /var/lib/pootle/tmp/compendium-$lang.po |
101 |
|
|
102 |
# Use compendium to migrate each project to new template |
# Use compendium to migrate each project to new template |
128 |
|
|
129 |
#========================================================== |
#========================================================== |
130 |
|
|
131 |
|
# Sync filesystem to database stores |
132 |
|
django-admin update_stores --settings=pootle.settings &> /dev/null |
133 |
|
|
134 |
# Recalculate stats and restart server |
# Recalculate stats and restart server |
135 |
/usr/sbin/PootleServer --refreshstats &> /dev/null |
django-admin refresh_stats --settings=pootle.settings &> /dev/null |
136 |
|
|
137 |
#========================================================== |
#========================================================== |
138 |
|
|