-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrebuild_i18n.sh
executable file
·29 lines (23 loc) · 1.01 KB
/
rebuild_i18n.sh
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
#! /bin/sh
I18NDOMAIN="vindula.services"
BASE_DIRECTORY="src/vindula/services"
# Synchronise the templates and scripts with the .pot.
i18ndude rebuild-pot --pot ${BASE_DIRECTORY}/locales/${I18NDOMAIN}.pot \
--merge ${BASE_DIRECTORY}/locales/manual.pot \
--create ${I18NDOMAIN} \
${BASE_DIRECTORY}
# Synchronise the resulting .pot with all .po files
for po in ${BASE_DIRECTORY}/locales/*/LC_MESSAGES/${I18NDOMAIN}.po; do
i18ndude sync --pot ${BASE_DIRECTORY}/locales/${I18NDOMAIN}.pot $po
done
# Synchronise the templates and scripts with the .pot.
#i18ndude rebuild-pot --pot ${BASE_DIRECTORY}/locales/plone.pot \
# --create plone \
# ${BASE_DIRECTORY}/configure.zcml \
# ${BASE_DIRECTORY}/profiles/default
# Synchronise the Plone's pot file (Used for the workflows)
#for po in ${BASE_DIRECTORY}/locales/*/LC_MESSAGES/plone.po; do
# i18ndude sync --pot ${BASE_DIRECTORY}/locales/plone.pot $po
#done
# Report of errors and suspect untranslated messages
i18ndude find-untranslated -n ${BASE_DIRECTORY}