diff --git a/conf/config-sample.php b/conf/config-sample.php index 552efaf..6b64eeb 100644 --- a/conf/config-sample.php +++ b/conf/config-sample.php @@ -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) diff --git a/scripts/install b/scripts/install index 83017a7..219403f 100644 --- a/scripts/install +++ b/scripts/install @@ -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/