diff options
-rw-r--r-- | session-common.sh.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/session-common.sh.inc b/session-common.sh.inc index 4ca0ed7..c9106f1 100644 --- a/session-common.sh.inc +++ b/session-common.sh.inc @@ -474,6 +474,10 @@ readonly TRANSLATIONS_ERR_MSG="failed to source translations.sh.inc" sed -i -E "${SWAP_SED_RX}" translations.sh.inc || ! echo "${SWAP_SED_ERR_MSG}" || exit 1 source "${THIS_DIR}"/translations.sh.inc || ! echo "${TRANSLATIONS_ERR_MSG}" || exit 1 + +# helper for install.sh SetLang() { Lang=$( (( ${TRANSLATIONS[$1]} )) && echo $1 || echo ${DEF_TRKEY} ) ; } + +# set initial installer language Lang='' ; SetLang $(GetStateVar 'TR_KEY' ${DEF_TRKEY}) ; |