summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-26 13:26:31 +0300
committerAndrew Dolgov <[email protected]>2021-02-26 13:26:31 +0300
commitfa7c6a61290c92c025d3c8c6e715e5cbe0990077 (patch)
tree37c75c695db517487f23ffe029f6720958e6494d /utils
parentb63119df33a639c09e28b843e94c18335f216ef1 (diff)
we need to compile .mo files after all
Diffstat (limited to 'utils')
-rwxr-xr-xutils/rebase-translations.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/utils/rebase-translations.sh b/utils/rebase-translations.sh
index 564267ab8..9fe5e838f 100755
--- a/utils/rebase-translations.sh
+++ b/utils/rebase-translations.sh
@@ -10,8 +10,6 @@ xgettext --from-code utf-8 -k__ -kNotify.info -kNotify.error -kNotify.progress \
xgettext --from-code utf-8 -k__ -kNotify.info -kNotify.error -kNotify.progress \
-kngettext:1,2 -L JavaScript -j -o $TEMPLATE `find js plugins -iname '*.js'`
-exit
-
update_lang() {
if [ -f $1.po ]; then
msgmerge --no-wrap --width 1 -U $1.po $TEMPLATE
@@ -21,10 +19,14 @@ update_lang() {
fi
}
+compile_po() {
+ msgfmt --statistics $1.po -o $1.mo
+}
+
LANGS=`find locale -name 'messages.po'`
for lang in $LANGS; do
echo Updating $lang...
PO_BASENAME=`echo $lang | sed s/.po//`
- update_lang $PO_BASENAME
+ compile_po $PO_BASENAME
done