|
|
@ -43,10 +43,8 @@ function extract_translation { |
|
|
|
msgid="$(awk 'NR{printf "%s",$0;next;}1' <<< ${tempMsgid})" |
|
|
|
|
|
|
|
# Escape special char causing problem in with sed and xml |
|
|
|
msgstr=${msgstr//'\n'/'\\n'} |
|
|
|
msgstr=${msgstr//'\"'/"""} |
|
|
|
msgstr=${msgstr//'&'/'\&'} |
|
|
|
msgid=${msgid//'\n'/'\\n'} |
|
|
|
msgid=${msgid//'\"'/"""} |
|
|
|
msgid=${msgid//'&'/'\&'} |
|
|
|
|
|
|
@ -57,7 +55,8 @@ function extract_translation { |
|
|
|
translation=${msgstr} |
|
|
|
fi |
|
|
|
|
|
|
|
echo ${translation} |
|
|
|
# Using printf is more consistent then echo, here it transforms \n in real newline 😄 |
|
|
|
printf "${translation}" |
|
|
|
} |
|
|
|
|
|
|
|
function rebuild_txt { |
|
|
|