diff --git a/check_process b/check_process index fec9a17..96d0daf 100644 --- a/check_process +++ b/check_process @@ -4,6 +4,7 @@ path="/path" admin="john" is_public=1 + language="fr" ; Checks pkg_linter=1 setup_sub_dir=1 diff --git a/conf/.env b/conf/.env index 5161efb..c360ae8 100644 --- a/conf/.env +++ b/conf/.env @@ -18,7 +18,7 @@ APP_KEY=__RANDOM_KEY__ # For a list of available languages: https://github.com/firefly-iii/firefly-iii/tree/main/resources/lang # # If text is still in English, remember that not everything may have been translated. -DEFAULT_LANGUAGE=en_US +DEFAULT_LANGUAGE=__LANGUAGE__ # The locale defines how numbers are formatted. # by default this value is the same as whatever the language is. diff --git a/manifest.json b/manifest.json index 3f205d2..50a1bae 100644 --- a/manifest.json +++ b/manifest.json @@ -27,7 +27,7 @@ "multi_instance": true, "services": [ "nginx", - "php7.4-fpm", + "php8.0-fpm", "mysql" ], "arguments": { @@ -46,6 +46,16 @@ "name": "admin", "type": "user" }, + { + "name": "language", + "type": "string", + "ask": { + "en": "Choose the application language", + "fr": "Choisissez la langue de l'application" + }, + "choices": ["de", "fr", "en_US"], + "default": "fr" + }, { "name": "is_public", "type": "boolean", diff --git a/scripts/install b/scripts/install index 310451b..6211351 100755 --- a/scripts/install +++ b/scripts/install @@ -24,8 +24,10 @@ domain=$YNH_APP_ARG_DOMAIN path_url=$YNH_APP_ARG_PATH admin=$YNH_APP_ARG_ADMIN is_public=$YNH_APP_ARG_IS_PUBLIC +language=$YNH_APP_ARG_LANGUAGE random_key=$(ynh_string_random --length=32) email=$(ynh_user_get_info --username=$admin --key=mail) +timezone="$(cat /etc/timezone)" phpversion=$YNH_PHP_VERSION app=$YNH_APP_INSTANCE_NAME @@ -50,7 +52,7 @@ ynh_app_setting_set --app=$app --key=domain --value=$domain 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_key --value=$random_key -ynh_app_setting_set --app=$app --key=phpversion --value=$phpversion +ynh_app_setting_set --app=$app --key=language --value=$language #================================================= # INSTALL DEPENDENCIES