we need to compile .mo files after all
This commit is contained in:
parent
b63119df33
commit
fa7c6a6129
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -8,7 +8,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2021-02-26 13:06+0300\n"
|
"POT-Creation-Date: 2021-02-26 13:25+0300\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
|
|
@ -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 \
|
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'`
|
-kngettext:1,2 -L JavaScript -j -o $TEMPLATE `find js plugins -iname '*.js'`
|
||||||
|
|
||||||
exit
|
|
||||||
|
|
||||||
update_lang() {
|
update_lang() {
|
||||||
if [ -f $1.po ]; then
|
if [ -f $1.po ]; then
|
||||||
msgmerge --no-wrap --width 1 -U $1.po $TEMPLATE
|
msgmerge --no-wrap --width 1 -U $1.po $TEMPLATE
|
||||||
|
@ -21,10 +19,14 @@ update_lang() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
compile_po() {
|
||||||
|
msgfmt --statistics $1.po -o $1.mo
|
||||||
|
}
|
||||||
|
|
||||||
LANGS=`find locale -name 'messages.po'`
|
LANGS=`find locale -name 'messages.po'`
|
||||||
|
|
||||||
for lang in $LANGS; do
|
for lang in $LANGS; do
|
||||||
echo Updating $lang...
|
echo Updating $lang...
|
||||||
PO_BASENAME=`echo $lang | sed s/.po//`
|
PO_BASENAME=`echo $lang | sed s/.po//`
|
||||||
update_lang $PO_BASENAME
|
compile_po $PO_BASENAME
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue