aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2014-03-12 17:26:27 +0100
committerBadlop <badlop@process-one.net>2014-03-12 17:26:27 +0100
commit0f0e99ccd38cf214e249437cbf4f195a9bf8ca36 (patch)
treee2e79c3cfc47d8edca44abd451c83f018fb0205b
parentMerge branch 'master' of github.com:processone/ejabberd (diff)
Provide header with latin-1 encoding in translations to work with Erlang/OTP R17
-rwxr-xr-xcontrib/extract_translations/prepare-translation.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/extract_translations/prepare-translation.sh b/contrib/extract_translations/prepare-translation.sh
index fcc58cb27..56f999247 100755
--- a/contrib/extract_translations/prepare-translation.sh
+++ b/contrib/extract_translations/prepare-translation.sh
@@ -230,7 +230,8 @@ extract_lang_po2msg ()
msgattrib $PO_PATH --translated --no-fuzzy --no-obsolete --no-location --no-wrap | grep "^msg" | tail --lines=+3 >$MS_PATH
grep "^msgid" $PO_PATH.ms | sed 's/^msgid //g' >$MSGID_PATH
grep "^msgstr" $PO_PATH.ms | sed 's/^msgstr //g' >$MSGSTR_PATH
- paste $MSGID_PATH $MSGSTR_PATH --delimiter=, | awk '{print "{" $0 "}."}' | sort -g >$MSGS_PATH
+ echo "%% -*- coding: latin-1 -*-" >$MSGS_PATH
+ paste $MSGID_PATH $MSGSTR_PATH --delimiter=, | awk '{print "{" $0 "}."}' | sort -g >>$MSGS_PATH
rm $MS_PATH
rm $MSGID_PATH