qsgen2: Load language after reading config file

This commit is contained in:
Stig-Ørjan Smelror 2024-02-14 11:37:25 +01:00
parent c68dafda4f
commit 61cd217861

4
qsgen2
View File

@ -22,7 +22,6 @@ globaldebug=false
fpath=(${HOME}/bin/include/common ${HOME}/.config/qsgen2/lang $fpath)
# In this case, let's load the 'include' function
autoload include
autoload ${language}
# Including some colors to the script
include common/colors
@ -122,6 +121,9 @@ if (${globaldebug}); then
done
fi
# Load language
autoload ${language}
# Define cache files for blogs and pages
blog_cache_file="${project_dir}/.blog_cache"
pages_cache_file="${project_dir}/.pages_cache"