From c9eae8044030285528d17405c4536c10b86965fc Mon Sep 17 00:00:00 2001 From: dragondaddy Date: Fri, 4 Aug 2023 17:24:40 +0200 Subject: [PATCH] Translation of the PHP-FPM config panel --- config_panel.toml | 25 ++++++++++++++++++++----- scripts/install | 4 ++-- 2 files changed, 22 insertions(+), 7 deletions(-) diff --git a/config_panel.toml b/config_panel.toml index 4770bb9..0ad7733 100644 --- a/config_panel.toml +++ b/config_panel.toml @@ -5,26 +5,41 @@ name = "Streams configuration" [main.php_fpm_config] name = "PHP-FPM configuration" + name.fr = "Configuration de PHP-FPM" [main.php_fpm_config.fpm_footprint] ask = "Memory footprint" + ask.fr = "Empreinte mémoire" type = "select" choices.low = "Low, <= 20Mb per pool" - choices.medium = "Medium, between 20Mb and 40Mb per pool" + choices.low = "Basse, <= 20Mb par pool" + choices.medium = "Medium, between 20Mb and 40Mb par pool" + choices.medium.fr = "Moyenne, entre 20Mb et 40Mb par pool" choices.high = "High, > 40Mb per pool" + choices.high.fr = "Haute, > 40Mb par pool" choices.specific = "Use specific value" - default = "low" + choices.specific = "Utiliser une valeur précise" + default = "medium" [main.php_fpm_config.fpm_free_footprint] visible = "fpm_footprint == 'specific'" ask = "Memory footprint of the service?" + ask.fr = "Empreinte mémoire du service?" type = "number" default = "0" help = "Free field to specify exactly the footprint in Mb if you don't want to use one of the three previous values." + help.fr = "Champ libre pour spécifier exactement l'empreinte mémoire en Mb si vous ne souhaitez pas utiliser l'une des trois valeurs précédentes." [main.php_fpm_config.fpm_usage] ask = "Expected usage" + ask.fr = "Utilisation prévue" type = "select" - choices = ["low", "medium", "high"] - default = "low" - help = "low: Personal usage, behind the SSO. No RAM footprint when not used, but the impact on the processor can be high if many users are using the service.
medium: Low usage, few people or/and publicly accessible. Low RAM footprint, medium processor footprint when used.
high: High usage, frequently visited website. High RAM footprint, but lower on processor usage and quickly responding." + choices.low = "Low" + choices.low = "Minime" + choices.medium = "Medium" + choices.medium.fr = "Moyenne" + choices.high = "High" + choices.high.fr = "Intensive" + default = "medium" + help = "Low: Personal usage, behind the SSO. No RAM footprint when not used, but the impact on the processor can be high if many users are using the service.
Medium: Low usage, few people or/and publicly accessible. Low RAM footprint, medium processor footprint when used.
High: High usage, frequently visited website. High RAM footprint, but lower on processor usage and quickly responding." + help.fr = "Faible : Utilisation personnelle, derrière le SSO. Pas d'empreinte RAM en cas de non-utilisation, mais l'impact sur le processeur peut être élevé si de nombreux utilisateurs utilisent le service.
Moyenne : Faible utilisation, peu d'utilisateurs et/ou service pas nécessairement accessible au public. Faible empreinte RAM, empreinte moyenne sur le processeur en cas d'utilisation.
Intensive : Utilisation soutenue, site web fréquemment visité. L'empreinte RAM est élevée, mais l'utilisation du processeur est moindre et le service répond rapidement." diff --git a/scripts/install b/scripts/install index d5890ed..c41233c 100755 --- a/scripts/install +++ b/scripts/install @@ -16,9 +16,9 @@ source /usr/share/yunohost/helpers email=$(ynh_user_get_info --username=$admin --key=mail) upload="256M" random_string="$(ynh_string_random --length=48)" -fpm_footprint="low" +fpm_footprint="medium" fpm_free_footprint=0 -fpm_usage="low" +fpm_usage="medium" #================================================= # STORE SETTINGS FROM MANIFEST