diff --git a/tools/prepare-tr.sh b/tools/prepare-tr.sh index 36783de12..35c406e39 100755 --- a/tools/prepare-tr.sh +++ b/tools/prepare-tr.sh @@ -48,7 +48,11 @@ 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 - echo "%% -*- coding: utf-8 -*-" >$MSGS_PATH + echo "%% Generated automatically" >$MSGS_PATH + echo "%% DO NOT EDIT: run \`make translations\` instead" >>$MSGS_PATH + echo "%% To improve translations please read:" >>$MSGS_PATH + echo "%% https://docs.ejabberd.im/developer/extending-ejabberd/localization/" >>$MSGS_PATH + echo "" >>$MSGS_PATH paste $MSGID_PATH $MSGSTR_PATH --delimiter=, | awk '{print "{" $0 "}."}' | sort -g >>$MSGS_PATH rm $MS_PATH