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
3a960b0d64
commit
5777091d44
2 changed files with 2 additions and 10 deletions
|
@ -45,7 +45,7 @@ define('YOURLS_ADMIN_SSL', true);
|
|||
** Change this setting to use a translation file for your language, instead of the default English.
|
||||
** That translation file (a .mo file) must be installed in the user/language directory.
|
||||
** See http://yourls.org/translations for more information */
|
||||
define( 'YOURLS_LANG', '__LANGUAGE__' );
|
||||
define( 'YOURLS_LANG', 'fr_FR' );
|
||||
|
||||
/** Allow multiple short URLs for a same long URL
|
||||
** Set to true to have only one pair of shortURL/longURL (default YOURLS behavior)
|
||||
|
|
|
@ -28,7 +28,6 @@ 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
|
||||
|
||||
|
@ -88,14 +87,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"
|
||||
|
||||
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
|
||||
ynh_setup_source --dest_dir="$final_path/user/languages" --source_id="fr"
|
||||
|
||||
# copy index file
|
||||
cp ../conf/index.php $final_path/
|
||||
|
|
Loading…
Add table
Reference in a new issue