Skip to content

Commit 8bec3d8

Browse files
committed
Fix foreign language months
1 parent 1fb3d45 commit 8bec3d8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

bmlt-meeting-list.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Plugin Name: Bread
1212
* Plugin URI: https://bmlt.app
1313
* Description: Maintains and generates PDF Meeting Lists from BMLT.
14-
* Version: 2.8.8
14+
* Version: 2.8.9
1515
* Author: bmlt-enabled
1616
* Author URI: https://bmlt.app/
1717
* License: GPL-2.0+

public/class-bread-content-generator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ private function locale_month_replacement(string $data, string $case): string
233233
$strpos = strpos($data, "[month_$case" . "_");
234234
if ($strpos !== false) {
235235
$locLang = substr($data, $strpos + 13, 2);
236-
if (!isset($this->translate[$locLang])) {
236+
if (!isset($this->bread->getTranslateTable()[$locLang])) {
237237
$locLang = 'en';
238238
}
239239
$fmt = new IntlDateFormatter(

readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Tags: meeting list, bmlt, narcotics anonymous, na
55
Requires PHP: 8.1
66
Requires at least: 6.2
77
Tested up to: 6.7.1
8-
Stable tag: 2.8.8
8+
Stable tag: 2.8.9
99

1010
License: GPLv2 or later
1111
License URI: http://www.gnu.org/licenses/gpl-2.0.html

0 commit comments

Comments
 (0)