mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-24 17:29:28 +01:00
Improve prepare-tr so *.msg files inform to not edit them (#3484)
This commit is contained in:
parent
75c0443df2
commit
26ee3141a9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user