moved load_conf top of files

This commit is contained in:
fatalerrors
2026-07-09 11:11:05 +02:00
parent d375a09623
commit 54da852ac3
14 changed files with 35 additions and 32 deletions

View File

@@ -34,6 +34,10 @@
# * OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
load_conf lang
# ------------------------------------------------------------------------------
# check if a given locale is installed on the system
locale_check()
{
locale -a | grep -qx "$1" || {
@@ -42,6 +46,7 @@ locale_check()
}
return 0
}
export -f locale_check
# ------------------------------------------------------------------------------
@@ -172,11 +177,10 @@ build_locale_shortcuts()
unset cfg item alias loc fname locale_items
}
export -f build_locale_shortcuts
# ------------------------------------------------------------------------------
load_conf lang
# Dynamically build locale functions based on SET_LOCALE configuration
build_locale_shortcuts
# ------------------------------------------------------------------------------
# EOF