1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wallabag2_ynh.git synced 2024-10-01 13:35:06 +02:00

Set language

This commit is contained in:
ericgaspar 2021-06-24 15:42:55 +02:00
parent d0e6303098
commit f6588ce53e
No known key found for this signature in database
GPG key ID: 574F281483054D44
4 changed files with 14 additions and 1 deletions

View file

@ -34,7 +34,7 @@ parameters:
mailer_encryption: ~
mailer_auth_mode: ~
locale: en
locale: __LANGUAGE__
# A secret key that's used to generate certain security-related tokens
secret: __DESKEY__

View file

@ -47,6 +47,16 @@
"name": "admin",
"type": "user",
"example": "johndoe"
},
{
"name": "language",
"type": "string",
"ask": {
"en": "Choose the application language",
"fr": "Choisissez la langue de l'application"
},
"choices": ["de", "en", "fr", "it", "pt"],
"default": "en"
}
]
}

View file

@ -27,6 +27,7 @@ app=$YNH_APP_INSTANCE_NAME
domain=$YNH_APP_ARG_DOMAIN
path_url=$YNH_APP_ARG_PATH
admin=$YNH_APP_ARG_ADMIN
language=$YNH_APP_ARG_LANGUAGE
#=================================================
# CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS
@ -46,6 +47,7 @@ ynh_webpath_register --app=$app --domain=$domain --path_url=$path_url
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=admin --value=$admin
ynh_app_setting_set --app=$app --key=language --value=$language
#=================================================
# INSTALL DEPENDENCIES

View file

@ -24,6 +24,7 @@ db_name=$(ynh_app_setting_get --app=$app --key=db_name)
db_user=$db_name
db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd)
deskey=$(ynh_app_setting_get --app=$app --key=deskey)
language=$(ynh_app_setting_get --app=$app --key=language)
#=================================================
# CHECK VERSION