Commit 34b8e0d5 authored by Vladislav's avatar Vladislav

Added IFS= for line

parent 62c3497b
...@@ -146,14 +146,13 @@ TRANSLATIONS_VER=$scripts_install_ver ...@@ -146,14 +146,13 @@ TRANSLATIONS_VER=$scripts_install_ver
declare -A translations=( declare -A translations=(
EOF EOF
if [[ $LANGUAGE == "en" ]] ; then if [[ $LANGUAGE == "en" ]] ; then
po_file="${PORT_WINE_PATH}/data/locales/ru/LC_MESSAGES/PortProton.po" po_file="${PORT_WINE_PATH}/data/locales/ru/LC_MESSAGES/PortProton.po"
else else
po_file="${PORT_WINE_PATH}/data/locales/$LANGUAGE/LC_MESSAGES/PortProton.po" po_file="${PORT_WINE_PATH}/data/locales/$LANGUAGE/LC_MESSAGES/PortProton.po"
fi fi
while [[ ! "$line" =~ msgid ]]; do while IFS= read -r line ; do
read -r line while [[ "$line" =~ msgid ]] ; do
while [[ "$line" =~ msgid ]]; do
unset msgid unset msgid
msgid="$line" msgid="$line"
read -r line read -r line
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment