mirror of
https://github.com/YunoHost-Apps/rainloop_ynh.git
synced 2024-09-03 20:16:18 +02:00
Creat language var if it doesn't exist
This commit is contained in:
parent
70dfd8d53b
commit
45f4f9edff
1 changed files with 8 additions and 2 deletions
|
@ -45,13 +45,19 @@ if [ -z "$final_path" ]; then
|
||||||
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# If language doesn't exist, create it
|
||||||
|
if [ -z "$language" ]; then
|
||||||
|
language="en"
|
||||||
|
ynh_app_setting_set --app=$app --key=language --value=$language
|
||||||
|
fi
|
||||||
|
|
||||||
case "$language" in
|
case "$language" in
|
||||||
Francais)
|
Francais)
|
||||||
lang="fr"
|
language="fr"
|
||||||
ynh_app_setting_set --app=$app --key=language --value=$language
|
ynh_app_setting_set --app=$app --key=language --value=$language
|
||||||
;;
|
;;
|
||||||
English)
|
English)
|
||||||
lang="en"
|
language="en"
|
||||||
ynh_app_setting_set --app=$app --key=language --value=$language
|
ynh_app_setting_set --app=$app --key=language --value=$language
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|
Loading…
Reference in a new issue