Skip to content

Commit

Permalink
L10N update.
Browse files Browse the repository at this point in the history
  • Loading branch information
Maikuolan committed Oct 13, 2023
1 parent 3c98fc6 commit 9c5b826
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 106 deletions.
8 changes: 4 additions & 4 deletions assets/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# License: GNU/GPLv2
# @see LICENSE.txt
#
# This file: Configuration defaults file (last modified: 2023.09.18).
# This file: Configuration defaults file (last modified: 2023.10.12).
##/

core:
Expand Down Expand Up @@ -151,6 +151,7 @@ core:
cs: "Čeština"
de: "Deutsch"
en: "English (AU/GB/NZ)"
en-CA: "English (CA)"
en-US: "English (US)"
es: "Español"
fa: "فارسی"
Expand All @@ -167,7 +168,7 @@ core:
no: "Norsk"
pa: "ਪੰਜਾਬੀ"
pl: "Polski"
pt: "Português (Brasil)"
pt-BR: "Português (Brasil)"
pt-PT: "Português (Europeu)"
ro: "Română"
ru: "Русский"
Expand All @@ -178,9 +179,8 @@ core:
uk: "Українська"
ur: "اردو"
vi: "Tiếng Việt"
zh: "中文(简体)"
zh-CN: "中文(简体)"
zh-TW: "中文(傳統)"
choice_filter: "filterL10N"
defer:
mo: "ro"
nb: "no"
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"require": {
"php": ">=7.2.0",
"maikuolan/common": "^2.10",
"maikuolan/common": "^2.11",
"ext-pcre": "*"
},
"suggest": {
Expand Down
18 changes: 0 additions & 18 deletions l10n/en-US.yml

This file was deleted.

4 changes: 2 additions & 2 deletions l10n/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
# License: GNU/GPLv2
# @see LICENSE.txt
#
# This file: English language data (last modified: 2023.09.25).
# This file: English language data (last modified: 2023.10.12).
##/

SafeBrowseLookup:
200: "Potentially harmful URL detected"
400: "API request error"
401: "API authorisation error"
401: {"en-AU": "API authorisation error", "en-CA": "API authorization error", "en-US": "API authorization error"}
503: "API service unavailable"
999: "Unknown API error"
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."
Expand Down
78 changes: 0 additions & 78 deletions l10n/pt-PT.yml

This file was deleted.

2 changes: 1 addition & 1 deletion l10n/pt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# License: GNU/GPLv2
# @see LICENSE.txt
#
# This file: Portuguese (Brazil) language data (last modified: 2023.09.25).
# This file: Portuguese language data (last modified: 2023.10.12).
#
# Regarding translations: My native language is English. Because this is a free
# and open-source hobby project which generates zero income, and translatable
Expand Down
6 changes: 4 additions & 2 deletions src/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* License: GNU/GPLv2
* @see LICENSE.txt
*
* This file: The loader (last modified: 2023.09.25).
* This file: The loader (last modified: 2023.10.12).
*/

namespace phpMussel\Core;
Expand Down Expand Up @@ -93,7 +93,7 @@ class Loader
/**
* @var string phpMussel version number (SemVer).
*/
public $ScriptVersion = '3.4.1';
public $ScriptVersion = '3.4.2';

/**
* @var string phpMussel version identifier (complete notation).
Expand Down Expand Up @@ -617,6 +617,7 @@ public function loadL10N(string $Path = ''): void
} else {
$this->L10N->autoAssignRules($this->L10NAccepted, 'en-AU');
}
$this->L10N->PreferredVariant = $this->L10NAccepted;
}

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

Expand Down

0 comments on commit 9c5b826

Please sign in to comment.