Unverified Commit 239e5eea authored by Boria138's avatar Boria138

Replace eval_gettext to echo if gettext.sh is not found

parent f0d491f4
......@@ -46,12 +46,16 @@ fi
cd "$(dirname "$(readlink -f "$0")")" && PORT_SCRIPTS_PATH="$(pwd)" || fatal
cd "${PORT_SCRIPTS_PATH}/../../" && PORT_WINE_PATH="$(pwd)" || fatal
export PORT_SCRIPTS_PATH PORT_WINE_PATH
# shellcheck source=/dev/null
source gettext.sh
export TEXTDOMAIN="PortProton"
export TEXTDOMAINDIR="${PORT_WINE_PATH}/data/locales"
if [[ -d "$TEXTDOMAINDIR" ]] && command -v gettext.sh &>/dev/null ; then
# shellcheck source=/dev/null
source gettext.sh
else
eval_gettext() { echo "$1"; }
fi
# shellcheck source=./functions_helper
source "${PORT_SCRIPTS_PATH}/functions_helper"
......
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