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/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'); 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.