1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ergo_ynh.git synced 2024-09-03 18:26:31 +02:00
This commit is contained in:
ericgaspar 2022-04-18 12:00:11 +02:00
parent 0af4f7a6fe
commit 4304e6fdd2
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 13 additions and 1 deletions

View file

@ -787,7 +787,7 @@ languages:
# default language to use for new clients
# 'en' is the default English language in the code
default: en
default: __LANGUAGE__
# which directory contains our language files
path: languages

View file

@ -45,6 +45,16 @@
"name": "is_public",
"type": "boolean",
"default": true
},
{
"name": "language",
"type": "string",
"ask": {
"en": "Choose the application language",
"fr": "Choisissez la langue de l'application"
},
"choices": ["en", "en-AU", "el", "es", "fr-FR", "no", "pl", "pt-BR", "ro", "tr-TR", "zh-CN"],
"default": "fr-FR"
}
]
}

View file

@ -27,6 +27,7 @@ ynh_abort_if_errors
domain=$YNH_APP_ARG_DOMAIN
path_url=$YNH_APP_ARG_PATH
is_public=$YNH_APP_ARG_IS_PUBLIC
language=$YNH_APP_ARG_LANGUAGE
app=$YNH_APP_INSTANCE_NAME
@ -48,6 +49,7 @@ ynh_script_progression --message="Storing installation settings..." --time --wei
ynh_app_setting_set --app=$app --key=domain --value=$domain
ynh_app_setting_set --app=$app --key=path --value=$path_url
ynh_app_setting_set --app=$app --key=language --value=$language
#=================================================
# STANDARD MODIFICATIONS