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-27 22:06:28 +01:00
parent 6d079fadad
commit 1877d8e282
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 10 additions and 4 deletions

View file

@ -61,8 +61,8 @@
"en": "Choose the application language",
"fr": "Choisissez la langue de l'application"
},
"choices": ["fr_FR", "en_US"],
"default": "fr_FR"
"choices": ["fr", "en"],
"default": "fr"
},
]
}

View file

@ -53,7 +53,6 @@ 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=random --value=$random
ynh_app_setting_set --app=$app --key=password --value="$password"
ynh_app_setting_set --app=$app --key=language --value=$language
#=================================================
# INSTALL DEPENDENCIES
@ -89,7 +88,14 @@ 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"
ynh_setup_source --dest_dir="$final_path/user/languages" --source_id="fr"
if [ "$language" == "fr" ]; then
language="fr-FR"
ynh_setup_source --dest_dir="$final_path/user/languages" --source_id="fr"
ynh_app_setting_set --app=$app --key=language --value=$language
else
language=""
ynh_app_setting_set --app=$app --key=language --value=$language
fi
# copy index file
cp ../conf/index.php $final_path/