From adf8b30284775df46584b4ac5e27ff1be3b77026 Mon Sep 17 00:00:00 2001 From: otrok7 <50595291+otrok7@users.noreply.github.com> Date: Wed, 21 Oct 2026 22:16:37 +0200 Subject: [PATCH 1/2] Fix for Danish Language --- bmlt-meeting-list.php | 2 +- includes/class-bread.php | 3 +++ includes/lang/{translate_dk.php => translate_da.php} | 0 readme.txt | 5 ++++- 4 files changed, 8 insertions(+), 2 deletions(-) rename includes/lang/{translate_dk.php => translate_da.php} (100%) diff --git a/bmlt-meeting-list.php b/bmlt-meeting-list.php index bde8208..d6b13bd 100644 --- a/bmlt-meeting-list.php +++ b/bmlt-meeting-list.php @@ -11,7 +11,7 @@ * Plugin Name: Bread * Plugin URI: https://bmlt.app * Description: Maintains and generates PDF Meeting Lists from BMLT. - * Version: 2.10.8 + * Version: 2.10.9 * Author: bmlt-enabled * Author URI: https://bmlt.app/ * License: GPL-2.0+ diff --git a/includes/class-bread.php b/includes/class-bread.php index 5798cbe..f2c2eb5 100644 --- a/includes/class-bread.php +++ b/includes/class-bread.php @@ -817,6 +817,9 @@ private function upgrade_settings(): void $this->boolify_option('header_uppercase'); $this->boolify_option('header_bold'); $this->boolify_option('cont_header_shown'); + if ($this->options['weekday_language'] == 'dk') { + $this->options['weekday_language'] = 'da'; + } if ($this->versionLessThan('2.8')) { if (($this->options['page_fold'] == 'half' || $this->options['page_fold'] == 'full') && isset($this->options['last_page_content']) && trim($this->options['last_page_content']) !== '') { diff --git a/includes/lang/translate_dk.php b/includes/lang/translate_da.php similarity index 100% rename from includes/lang/translate_dk.php rename to includes/lang/translate_da.php diff --git a/readme.txt b/readme.txt index a007535..400c0e7 100644 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Tags: meeting list, bmlt, narcotics anonymous, na Requires PHP: 8.1 Requires at least: 6.2 Tested up to: 7.1 -Stable tag: 2.10.8 +Stable tag: 2.10.9 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -55,6 +55,9 @@ Follow all these steps, keep in mind that once you start using bread, it's not g == Changelog == += 2.10.9 = +* Danish is "da" not "dk" + = 2.10.8 = * Never autoshrink table font-size. From 4a4ba00641333b73a8d5b7fdaca3b3304624b57f Mon Sep 17 00:00:00 2001 From: otrok7 <50595291+otrok7@users.noreply.github.com> Date: Wed, 21 Oct 2026 22:44:51 +0200 Subject: [PATCH 2/2] robustness --- public/class-bread-format-manager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/class-bread-format-manager.php b/public/class-bread-format-manager.php index 8ce696f..de98fde 100644 --- a/public/class-bread-format-manager.php +++ b/public/class-bread-format-manager.php @@ -246,7 +246,7 @@ public function write_formats(string $lang, bool $isAll, string $lineHeight, str $data .= ""; return $data; } - public function getWheelchairFormat(string $lang): array + public function getWheelchairFormat(string $lang): array | null { if (is_array($this->wheelchairFormat) && empty($this->wheelchairFormat)) { $this->wheelchairFormat = $this->getFormatFromField($lang, 'world_id', 'WCHR');