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
b936455c2b
commit
4fc5b0edd2
5 changed files with 21 additions and 5 deletions
|
@ -43,7 +43,7 @@ define( 'YOURLS_SITE', 'http://__DOMAIN____PATH__' );
|
||||||
** Change this setting to use a translation file for your language, instead of the default English.
|
** 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.
|
** That translation file (a .mo file) must be installed in the user/language directory.
|
||||||
** See http://yourls.org/translations for more information */
|
** See http://yourls.org/translations for more information */
|
||||||
define( 'YOURLS_LANG', '' );
|
define( 'YOURLS_LANG', '__LANGUAGE__' );
|
||||||
|
|
||||||
/** Allow multiple short URLs for a same long URL
|
/** Allow multiple short URLs for a same long URL
|
||||||
** Set to true to have only one pair of shortURL/longURL (default YOURLS behavior)
|
** Set to true to have only one pair of shortURL/longURL (default YOURLS behavior)
|
||||||
|
|
5
conf/fr.src
Normal file
5
conf/fr.src
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
SOURCE_URL=https://github.com/ozh/YOURLS-fr_FR/archive/refs/tags/1.8.zip
|
||||||
|
SOURCE_SUM=ef9c0e71d4559994b9df0cd0a558f6faf11eba185c4793ba0e30f3500dab1b04
|
||||||
|
SOURCE_SUM_PRG=sha256sum
|
||||||
|
SOURCE_FORMAT=zip
|
||||||
|
SOURCE_IN_SUBDIR=true
|
|
@ -55,10 +55,15 @@
|
||||||
"type": "password"
|
"type": "password"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "is_public",
|
"name": "language",
|
||||||
"type": "boolean",
|
"type": "string",
|
||||||
"default": true
|
"ask": {
|
||||||
}
|
"en": "Choose the application language",
|
||||||
|
"fr": "Choisissez la langue de l'application"
|
||||||
|
},
|
||||||
|
"choices": ["fr_FR", "en_EN"],
|
||||||
|
"default": "fr_FR"
|
||||||
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,6 +34,7 @@ db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd)
|
||||||
admin=$(ynh_app_setting_get --app=$app --key=admin)
|
admin=$(ynh_app_setting_get --app=$app --key=admin)
|
||||||
random=$(ynh_app_setting_get --app=$app --key=random)
|
random=$(ynh_app_setting_get --app=$app --key=random)
|
||||||
password=$(ynh_app_setting_get --app=$app --key=password)
|
password=$(ynh_app_setting_get --app=$app --key=password)
|
||||||
|
language=$(ynh_app_setting_get --app=$app --key=language)
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# BACKUP BEFORE CHANGE URL THEN ACTIVE TRAP
|
# BACKUP BEFORE CHANGE URL THEN ACTIVE TRAP
|
||||||
|
|
|
@ -29,6 +29,7 @@ admin=$YNH_APP_ARG_ADMIN
|
||||||
is_public=$YNH_APP_ARG_IS_PUBLIC
|
is_public=$YNH_APP_ARG_IS_PUBLIC
|
||||||
password="$YNH_APP_ARG_PASSWORD"
|
password="$YNH_APP_ARG_PASSWORD"
|
||||||
random=$(ynh_string_random --length=24)
|
random=$(ynh_string_random --length=24)
|
||||||
|
language=$YNH_APP_ARG_LANGUAGE
|
||||||
|
|
||||||
app=$YNH_APP_INSTANCE_NAME
|
app=$YNH_APP_INSTANCE_NAME
|
||||||
|
|
||||||
|
@ -53,6 +54,8 @@ 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
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -87,6 +90,8 @@ 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"
|
||||||
|
|
||||||
# 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