1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/streams_ynh.git synced 2024-09-03 20:26:20 +02:00

Translation of the PHP-FPM config panel

This commit is contained in:
dragondaddy 2023-08-04 17:24:40 +02:00
parent 7c8a99e3ec
commit c9eae80440
2 changed files with 22 additions and 7 deletions

View file

@ -5,26 +5,41 @@ name = "Streams configuration"
[main.php_fpm_config] [main.php_fpm_config]
name = "PHP-FPM configuration" name = "PHP-FPM configuration"
name.fr = "Configuration de PHP-FPM"
[main.php_fpm_config.fpm_footprint] [main.php_fpm_config.fpm_footprint]
ask = "Memory footprint" ask = "Memory footprint"
ask.fr = "Empreinte mémoire"
type = "select" type = "select"
choices.low = "Low, <= 20Mb per pool" 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 = "High, > 40Mb per pool"
choices.high.fr = "Haute, > 40Mb par pool"
choices.specific = "Use specific value" choices.specific = "Use specific value"
default = "low" choices.specific = "Utiliser une valeur précise"
default = "medium"
[main.php_fpm_config.fpm_free_footprint] [main.php_fpm_config.fpm_free_footprint]
visible = "fpm_footprint == 'specific'" visible = "fpm_footprint == 'specific'"
ask = "Memory footprint of the service?" ask = "Memory footprint of the service?"
ask.fr = "Empreinte mémoire du service?"
type = "number" type = "number"
default = "0" 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 = "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] [main.php_fpm_config.fpm_usage]
ask = "Expected usage" ask = "Expected usage"
ask.fr = "Utilisation prévue"
type = "select" type = "select"
choices = ["low", "medium", "high"] choices.low = "Low"
default = "low" choices.low = "Minime"
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.<br>medium: Low usage, few people or/and publicly accessible. Low RAM footprint, medium processor footprint when used.<br>high: High usage, frequently visited website. High RAM footprint, but lower on processor usage and quickly responding." choices.medium = "Medium"
choices.medium.fr = "Moyenne"
choices.high = "High"
choices.high.fr = "Intensive"
default = "medium"
help = "<strong>Low</strong>: 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.<br><strong>Medium</strong>: Low usage, few people or/and publicly accessible. Low RAM footprint, medium processor footprint when used.<br><strong>High</strong>: High usage, frequently visited website. High RAM footprint, but lower on processor usage and quickly responding."
help.fr = "<strong>Faible</strong> : 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.<br><strong>Moyenne</strong> : 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.<br><strong>Intensive</strong> : 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."

View file

@ -16,9 +16,9 @@ source /usr/share/yunohost/helpers
email=$(ynh_user_get_info --username=$admin --key=mail) email=$(ynh_user_get_info --username=$admin --key=mail)
upload="256M" upload="256M"
random_string="$(ynh_string_random --length=48)" random_string="$(ynh_string_random --length=48)"
fpm_footprint="low" fpm_footprint="medium"
fpm_free_footprint=0 fpm_free_footprint=0
fpm_usage="low" fpm_usage="medium"
#================================================= #=================================================
# STORE SETTINGS FROM MANIFEST # STORE SETTINGS FROM MANIFEST