mirror of
https://github.com/YunoHost-Apps/yourls_ynh.git
synced 2024-09-03 20:35:59 +02:00
Fix
This commit is contained in:
parent
6d079fadad
commit
1877d8e282
2 changed files with 10 additions and 4 deletions
|
@ -61,8 +61,8 @@
|
||||||
"en": "Choose the application language",
|
"en": "Choose the application language",
|
||||||
"fr": "Choisissez la langue de l'application"
|
"fr": "Choisissez la langue de l'application"
|
||||||
},
|
},
|
||||||
"choices": ["fr_FR", "en_US"],
|
"choices": ["fr", "en"],
|
||||||
"default": "fr_FR"
|
"default": "fr"
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -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=admin --value=$admin
|
||||||
ynh_app_setting_set --app=$app --key=random --value=$random
|
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=password --value="$password"
|
||||||
ynh_app_setting_set --app=$app --key=language --value=$language
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INSTALL DEPENDENCIES
|
# 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
|
# 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"
|
||||||
|
|
||||||
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
|
# copy index file
|
||||||
cp ../conf/index.php $final_path/
|
cp ../conf/index.php $final_path/
|
||||||
|
|
Loading…
Add table
Reference in a new issue