Added the ability to expand variables in translations

This commit is contained in:
2024-09-18 23:04:31 +05:00
parent 61d0c4d88f
commit ae69564ff5
5 changed files with 63 additions and 47 deletions

View File

@ -168,6 +168,11 @@ if [[ ! -f "${PORT_SCRIPTS_PATH}/translations/$LANGUAGE" ]] ; then
create_translations
fi
# для переводов нужно экспортировать переменные заранее
DATE=$(date +'%Y')
GAMESCOPE_VERSION="$(grep 'VERSION_ID=' /etc/os-release)"
GAMESCOPE_VERSION="${GAMESCOPE_VERSION//VERSION_ID=/}"
unset translations
# shellcheck source=/dev/null
source "${PORT_SCRIPTS_PATH}/translations/$LANGUAGE"