From b7cbb0941c1766af9a0354e48415eaa1cdb65f69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sun, 29 Jan 2023 15:00:40 +0100 Subject: [PATCH] Fix --- conf/config.yml | 2 +- config_panel.toml.example | 10 ++++++++++ manifest.json | 17 +++++++++++++---- 3 files changed, 24 insertions(+), 5 deletions(-) diff --git a/conf/config.yml b/conf/config.yml index 60e30e4..2c6298c 100644 --- a/conf/config.yml +++ b/conf/config.yml @@ -4,7 +4,7 @@ parameters: title: GitList # Locale configuration - locale: en + locale: __LANGUAGE__ # Theme theme: default diff --git a/config_panel.toml.example b/config_panel.toml.example index 9d701c6..d630ff3 100644 --- a/config_panel.toml.example +++ b/config_panel.toml.example @@ -3,6 +3,16 @@ version = "1.0" [main] name = "GitList configuration" + [main.config] + name = "Configuration Options" + + [main.config.datadir] + ask = "Default Repository Directories" + type = "path" + default = "/home/yunohost.app/__APP__" + help = "List of directories containing repositories" + bind = "EnableCoverAnimation:/var/www/__APP__/config/config.yml" + [main.php_fpm_config] name = "PHP-FPM configuration" diff --git a/manifest.json b/manifest.json index b4a3d32..991ac8b 100644 --- a/manifest.json +++ b/manifest.json @@ -9,15 +9,14 @@ "version": "2.0.0~ynh1", "url": "https://gitlist.org/", "upstream": { - "license": "free", + "license": "BSD 3-Clause", "website": "https://gitlist.org/", - "demo": "https://demo.example.com", "admindoc": "https://github.com/klaussilveira/gitlist/wiki", "code": "https://github.com/klaussilveira/gitlist" }, - "license": "free", + "license": "BSD 3-Clause", "maintainer": { - "name": "", + "name": "eric_G", "email": "" }, "requirements": { @@ -38,6 +37,16 @@ "name": "is_public", "type": "boolean", "default": true + }, + { + "name": "language", + "type": "string", + "ask": { + "en": "Choose the application language", + "fr": "Choisissez la langue de l'application" + }, + "choices": ["fr", "en"], + "default": "fr" } ] }