1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/yourls_ynh.git synced 2024-09-03 20:35:59 +02:00
This commit is contained in:
ericgaspar 2022-02-28 16:41:12 +01:00
parent 5777091d44
commit 900b9bb018
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 13 additions and 1 deletions

View file

@ -53,7 +53,17 @@
{
"name": "password",
"type": "password"
}
},
{
"name": "language",
"type": "string",
"ask": {
"en": "Choose the application language",
"fr": "Choisissez la langue de l'application"
},
"choices": ["fr-FR", "en-US"],
"default": "fr-FR"
},
]
}
}

View file

@ -28,6 +28,7 @@ path_url=$YNH_APP_ARG_PATH
admin=$YNH_APP_ARG_ADMIN
password="$YNH_APP_ARG_PASSWORD"
random=$(ynh_string_random --length=24)
language=$YNH_APP_ARG_LANGUAGE
app=$YNH_APP_INSTANCE_NAME
@ -87,6 +88,7 @@ ynh_app_setting_set --app=$app --key=final_path --value=$final_path
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$final_path"
# Install French language
ynh_setup_source --dest_dir="$final_path/user/languages" --source_id="fr"
# copy index file