Skip to content

Commit 9c5b826

Browse files
committed
L10N update.
1 parent 3c98fc6 commit 9c5b826

File tree

7 files changed

+12
-106
lines changed

7 files changed

+12
-106
lines changed

assets/config.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# License: GNU/GPLv2
88
# @see LICENSE.txt
99
#
10-
# This file: Configuration defaults file (last modified: 2023.09.18).
10+
# This file: Configuration defaults file (last modified: 2023.10.12).
1111
##/
1212

1313
core:
@@ -151,6 +151,7 @@ core:
151151
cs: "Čeština"
152152
de: "Deutsch"
153153
en: "English (AU/GB/NZ)"
154+
en-CA: "English (CA)"
154155
en-US: "English (US)"
155156
es: "Español"
156157
fa: "فارسی"
@@ -167,7 +168,7 @@ core:
167168
no: "Norsk"
168169
pa: "ਪੰਜਾਬੀ"
169170
pl: "Polski"
170-
pt: "Português (Brasil)"
171+
pt-BR: "Português (Brasil)"
171172
pt-PT: "Português (Europeu)"
172173
ro: "Română"
173174
ru: "Русский"
@@ -178,9 +179,8 @@ core:
178179
uk: "Українська"
179180
ur: "اردو"
180181
vi: "Tiếng Việt"
181-
zh: "中文(简体)"
182+
zh-CN: "中文(简体)"
182183
zh-TW: "中文(傳統)"
183-
choice_filter: "filterL10N"
184184
defer:
185185
mo: "ro"
186186
nb: "no"

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"require": {
1414
"php": ">=7.2.0",
15-
"maikuolan/common": "^2.10",
15+
"maikuolan/common": "^2.11",
1616
"ext-pcre": "*"
1717
},
1818
"suggest": {

l10n/en-US.yml

-18
This file was deleted.

l10n/en.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
# License: GNU/GPLv2
88
# @see LICENSE.txt
99
#
10-
# This file: English language data (last modified: 2023.09.25).
10+
# This file: English language data (last modified: 2023.10.12).
1111
##/
1212

1313
SafeBrowseLookup:
1414
200: "Potentially harmful URL detected"
1515
400: "API request error"
16-
401: "API authorisation error"
16+
401: {"en-AU": "API authorisation error", "en-CA": "API authorization error", "en-US": "API authorization error"}
1717
503: "API service unavailable"
1818
999: "Unknown API error"
1919
error_log_header: "If any of the following errors persist, to report them, or to seek support, please create a new issue at the phpMussel issues page at GitHub when you've got a spare moment, with the errors in question along with any other pertinent information attached. Thanks."

l10n/pt-PT.yml

-78
This file was deleted.

l10n/pt.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# License: GNU/GPLv2
88
# @see LICENSE.txt
99
#
10-
# This file: Portuguese (Brazil) language data (last modified: 2023.09.25).
10+
# This file: Portuguese language data (last modified: 2023.10.12).
1111
#
1212
# Regarding translations: My native language is English. Because this is a free
1313
# and open-source hobby project which generates zero income, and translatable

src/Loader.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* License: GNU/GPLv2
99
* @see LICENSE.txt
1010
*
11-
* This file: The loader (last modified: 2023.09.25).
11+
* This file: The loader (last modified: 2023.10.12).
1212
*/
1313

1414
namespace phpMussel\Core;
@@ -93,7 +93,7 @@ class Loader
9393
/**
9494
* @var string phpMussel version number (SemVer).
9595
*/
96-
public $ScriptVersion = '3.4.1';
96+
public $ScriptVersion = '3.4.2';
9797

9898
/**
9999
* @var string phpMussel version identifier (complete notation).
@@ -617,6 +617,7 @@ public function loadL10N(string $Path = ''): void
617617
} else {
618618
$this->L10N->autoAssignRules($this->L10NAccepted, 'en-AU');
619619
}
620+
$this->L10N->PreferredVariant = $this->L10NAccepted;
620621
}
621622

622623
/** Load client-specified L10N data if possible. */
@@ -682,6 +683,7 @@ public function loadL10N(string $Path = ''): void
682683
/** Fallback for missing accepted client L10N choice. */
683684
if ($this->ClientL10NAccepted === '') {
684685
$this->ClientL10NAccepted = $this->L10NAccepted;
686+
$this->ClientL10N->PreferredVariant = $this->L10NAccepted;
685687
}
686688
}
687689

0 commit comments

Comments
 (0)