From a47b790e19634cdd52bf322aa8791eb705b91466 Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Sat, 4 Sep 2021 09:30:44 +0200 Subject: [PATCH] actually integrate the new czech language file; refs #976 Signed-off-by: Michael Kaufmann --- install/froxlor.sql | 5 +++-- install/updates/froxlor/0.10/update_0.10.inc.php | 7 +++++++ lib/Froxlor/Froxlor.php | 2 +- lng/czech.lng.php | 2 +- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/install/froxlor.sql b/install/froxlor.sql index ce4ac969..5213d125 100644 --- a/install/froxlor.sql +++ b/install/froxlor.sql @@ -723,7 +723,7 @@ opcache.interned_strings_buffer'), ('panel', 'logo_overridetheme', '0'), ('panel', 'logo_overridecustom', '0'), ('panel', 'version', '0.10.28'), - ('panel', 'db_version', '202108180'); + ('panel', 'db_version', '202109040'); DROP TABLE IF EXISTS `panel_tasks`; @@ -822,7 +822,8 @@ INSERT INTO `panel_languages` (`id`, `language`, `iso`, `file`) VALUES (4, 'Português', 'pt', 'lng/portugues.lng.php'), (5, 'Italiano', 'it', 'lng/italian.lng.php'), (6, 'Nederlands', 'nl', 'lng/dutch.lng.php'), - (7, 'Svenska', 'sv', 'lng/swedish.lng.php'); + (7, 'Svenska', 'sv', 'lng/swedish.lng.php'), + (8, 'Česká republika', 'cs', 'lng/czech.lng.php'); DROP TABLE IF EXISTS `panel_syslog`; diff --git a/install/updates/froxlor/0.10/update_0.10.inc.php b/install/updates/froxlor/0.10/update_0.10.inc.php index 6eb090c0..47f5982b 100644 --- a/install/updates/froxlor/0.10/update_0.10.inc.php +++ b/install/updates/froxlor/0.10/update_0.10.inc.php @@ -926,3 +926,10 @@ if (\Froxlor\Froxlor::isFroxlorVersion('0.10.27')) { showUpdateStep("Updating from 0.10.27 to 0.10.28", false); \Froxlor\Froxlor::updateToVersion('0.10.28'); } + +if (\Froxlor\Froxlor::isDatabaseVersion('202108180')) { + showUpdateStep("Adding czech language file", true); + Database::query("INSERT INTO `" . TABLE_PANEL_LANGUAGE . "` SET `language` = 'Česká republika', `iso` = 'cs', `file` = 'lng/czech.lng.php'"); + lastStepStatus(0); + \Froxlor\Froxlor::updateToDbVersion('202109040'); +} diff --git a/lib/Froxlor/Froxlor.php b/lib/Froxlor/Froxlor.php index 22127e45..3f19e385 100644 --- a/lib/Froxlor/Froxlor.php +++ b/lib/Froxlor/Froxlor.php @@ -10,7 +10,7 @@ final class Froxlor const VERSION = '0.10.28'; // Database version (YYYYMMDDC where C is a daily counter) - const DBVERSION = '202108180'; + const DBVERSION = '202109040'; // Distribution branding-tag (used for Debian etc.) const BRANDING = ''; diff --git a/lng/czech.lng.php b/lng/czech.lng.php index d5cfcbcf..57340117 100644 --- a/lng/czech.lng.php +++ b/lng/czech.lng.php @@ -382,7 +382,7 @@ $lng['serversettings']['pathedit']['description'] = 'Měla by cesta být na výb $lng['serversettings']['nameservers']['title'] = 'Názvy serverů'; $lng['serversettings']['nameservers']['description'] = 'Seznam oddělený čárkami obsahující názvy hostitelů všech jmenných serverů. První bude primární.'; $lng['serversettings']['mxservers']['title'] = 'MX servery'; -$lng['serversettings']['mxservers']['description'] = 'Seznam oddělený čárkami obsahující dvojici čísla a jméno hostitele oddělené mezerou (např. \ '10 mx.example.com \ ') obsahující servery mx.'; +$lng['serversettings']['mxservers']['description'] = 'Seznam oddělený čárkami obsahující dvojici čísla a jméno hostitele oddělené mezerou (např. \'10 mx.example.com\') obsahující servery mx.'; /** * CHANGED BETWEEN 1.2.12 and 1.2.13