Commit 25f4046f authored by Mikhail Tergoev's avatar Mikhail Tergoev

Merge branch 'Boria138-gettext-fallback'

parents 464d0d8d 0a7fea45
......@@ -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