Browse Source

Convert properly & to & in databases modules, fix #3

master
victor héry 5 years ago
parent
commit
6d5a800ba3
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      rollback_database.sh

+ 3
- 2
rollback_database.sh View File

@ -51,11 +51,12 @@ for key in $(grep Key ${ORIGINAL_XML} | awk -F'"' '{print $2}'); do
# Escape special char causing problem in with sed and xml
msgstr=${msgstr//'\n'/'\\n'}
msgstr=${msgstr//'&'/'&'}
msgstr=${msgstr//'\"'/"""}
msgstr=${msgstr//'&'/'\&'}
msgid=${msgid//'\n'/'\\n'}
msgid=${msgid//'&'/'&'}
msgid=${msgid//'\"'/"""}
msgid=${msgid//'&'/'\&'}
if [[ "${msgstr}" == "" ]]; then
# if the msgstr is empty, then it's not translated yet, we use original string

Loading…
Cancel
Save