Skip to content

Commit a049558

Browse files
committed
fix: corrected language code for Traditional Chinese
1 parent e7b9bba commit a049558

File tree

6 files changed

+12
-11
lines changed

6 files changed

+12
-11
lines changed

CHANGELOG.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ This is a log of major user-visible changes in each phpMyFAQ release.
3232
- added experimental update via command line (Thorsten)
3333
- added experimental support for PHP 8.6 (Thorsten)
3434
- improved online update feature (Thorsten)
35-
- updated Spanish translation (Thorsten)
36-
- updated Polish translation (Thorsten)
37-
- updated French translation (Thorsten)
35+
- updated Spanish translation
36+
- updated Polish translation
37+
- updated French translation
3838
- updated Japanese translation (Kamo Tomoyuki)
39-
- updated Portuguese and Brazilian Portuguese translation (Thorsten)
40-
- updated Turkish translation (Thorsten)
41-
- updated Dutch translation (Thorsten)
42-
- updated Norwegian (Bokmål) translation (Thorsten)
43-
- updated Italian translation (Thorsten)
39+
- updated Portuguese and Brazilian Portuguese translation
40+
- updated Turkish translation
41+
- updated Dutch translation
42+
- updated Norwegian (Bokmål) translation
43+
- updated Italian translation
4444
- updated to PHPUnit v12 (Thorsten)
4545
- migrated codebase to use PHP 8.3 language features (Thorsten)
4646
- migrated from WYSIWYG editor from TinyMCE to Jodit Editor (Thorsten)

phpmyfaq/src/phpMyFAQ/Language/Plurals.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ private function plural(string $language, int $number): int
9797
case 'ko':
9898
case 'th':
9999
case 'tr':
100-
case 'tw':
100+
case 'zh_tw':
101101
case 'vi':
102102
case 'zh':
103103
return 0;

phpmyfaq/translations/language_pt.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@
191191
$PMF_LANG['ad_entry_back'] = 'Voltar atrás';
192192
$PMF_LANG['ad_entry_commentdelfail'] = 'O Comentário não foi apagado.';
193193
$PMF_LANG['ad_entry_savedsuc'] = 'As alterações foram gravadas.';
194+
$PMF_LANG["ad_entry_savedfail"] = "Infelizmente, ocorreu um erro na base de dados.";
194195
$PMF_LANG['ad_entry_del_1'] = 'Tem a certeza que o tópico ';
195196
$PMF_LANG['ad_entry_del_2'] = ' de ';
196197
$PMF_LANG['ad_entry_del_3'] = ' deve ser apagado?';

tests/phpMyFAQ/Export/Pdf/WrapperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ public function testConstructorSetsCorrectFontForDifferentLanguages(): void
205205
{
206206
$testCases = [
207207
'zh' => 'arialunicid0', // Chinese
208-
'tw' => 'arialunicid0', // Traditional Chinese
208+
'zh_tw' => 'arialunicid0', // Traditional Chinese
209209
'ja' => 'arialunicid0', // Japanese
210210
'ko' => 'arialunicid0', // Korean
211211
'cs' => 'dejavusans', // Czech

tests/phpMyFAQ/Language/PluralsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ public function testPluralFormsRomanian(): void
239239
public function testPluralFormsNoPlural(): void
240240
{
241241
// Languages with no plural forms (always return 0)
242-
$noPluralLanguages = ['bn', 'he', 'hi', 'id', 'ja', 'ko', 'th', 'tr', 'tw', 'vi', 'zh'];
242+
$noPluralLanguages = ['bn', 'he', 'hi', 'id', 'ja', 'ko', 'th', 'tr', 'zh_tw', 'vi', 'zh'];
243243

244244
foreach ($noPluralLanguages as $lang) {
245245
$this->assertEquals(0, $this->pluralMethod->invoke($this->plurals, $lang, 0));

0 commit comments

Comments
 (0)