From 393a21a960c926383743c6e2be17342feddb3ad7 Mon Sep 17 00:00:00 2001 From: Mikhail Tergoev Date: Mon, 24 Jun 2024 23:50:53 +0300 Subject: [PATCH] revert legacy check var LANGUAGE --- data_from_portwine/scripts/functions_helper | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/data_from_portwine/scripts/functions_helper b/data_from_portwine/scripts/functions_helper index f0bae907..3b82c74a 100755 --- a/data_from_portwine/scripts/functions_helper +++ b/data_from_portwine/scripts/functions_helper @@ -41,6 +41,14 @@ change_locale () { LANGUAGE=$(<"${PORT_WINE_TMP_PATH}/PortProton_loc") fi + if [[ "$LANGUAGE" == "RUS" ]] ; then + LANGUAGE="ru" + echo "ru" > "${PORT_WINE_TMP_PATH}/PortProton_loc" + elif [[ "$LANGUAGE" == "ENG" ]] ; then + LANGUAGE="en" + echo "en" > "${PORT_WINE_TMP_PATH}/PortProton_loc" + fi + if [[ ! -z "${LANGUAGE}" ]] \ && [[ ! -f "${PORT_WINE_TMP_PATH}/PortProton_loc" ]] then