From aeba70f2a6e68d5034631627ba13aa153a122d73 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 12 Oct 2023 05:19:57 +0000 Subject: [PATCH] Language description updated --- src/Core/L10n.php | 38 +++++++++++++++++++------------------- src/Model/Item.php | 2 +- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/Core/L10n.php b/src/Core/L10n.php index 414d578fca..548aea1ace 100644 --- a/src/Core/L10n.php +++ b/src/Core/L10n.php @@ -405,35 +405,35 @@ class L10n 'be' => 'беларуская мова', 'bn' => 'বাংলা', 'cy' => 'Cymraeg', - 'el-monoton' => 'Ελληνικά', - 'eu' => 'euskara', + 'el-monoton' => 'ελληνικά', + 'eu' => 'euskara, euskera', 'fa' => 'فارسی', 'ga' => 'Gaeilge', - 'gl' => 'Galego', + 'gl' => 'galego', 'he' => 'עברית', - 'hi' => 'हिन्दी', - 'hr' => 'Hrvatski', + 'hi' => 'हिन्दी, हिंदी', + 'hr' => 'hrvatski jezik', 'hy' => 'Հայերեն', - 'id' => 'bahasa Indonesia', - 'jv' => 'Basa Jawa', + 'id' => 'Bahasa Indonesia', + 'jv' => 'basa Jawa', 'ka' => 'ქართული', - 'ko' => '한국인', - 'lt' => 'lietuvių', - 'lv' => 'latviešu', - 'ms-Latn' => 'Bahasa Melayu', + 'ko' => '한국어, 조선어', + 'lt' => 'lietuvių kalba', + 'lv' => 'latviešu valoda', + 'ms-Latn' => 'bahasa Melayu, بهاس ملايو‎', 'sr-Cyrl' => 'српски језик', - 'sk' => 'slovenský', - 'sl' => 'Slovenščina', + 'sk' => 'slovenčina, slovenský jazyk', + 'sl' => 'slovenski jezik, slovenščina', 'sq' => 'Shqip', 'sw' => 'Kiswahili', 'ta' => 'தமிழ்', - 'th' => 'แบบไทย', - 'tl' => 'Wikang Tagalog', + 'th' => 'ไทย', + 'tl' => 'Wikang Tagalog, ᜏᜒᜃᜅ᜔ ᜆᜄᜎᜓᜄ᜔', 'tr' => 'Türkçe', - 'pt-PT' => 'Português', - 'uk' => 'Українська', - 'uz' => 'Ўзбек', - 'vi' => 'Tiếng Việt', + 'pt-PT' => 'português', + 'uk' => 'українська мова', + 'uz' => 'Oʻzbek, Ўзбек, أۇزبېك‎', + 'vi' => 'Việt Nam', 'zh-hant' => '繁體', ]; $langs = array_merge($additional_langs, $langs); diff --git a/src/Model/Item.php b/src/Model/Item.php index b061aa1df9..27359ab2bf 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -2134,7 +2134,7 @@ class Item $used_languages = ''; foreach (json_decode($item['language'], true) as $language => $reliability) { - $used_languages .= $iso639->languageByCode1($language) . ' (' . $language . "): " . number_format($reliability, 5) . '\n'; + $used_languages .= $iso639->nativeByCode1(substr($language, 0, 2)) . ' (' . $iso639->languageByCode1(substr($language, 0, 2)) . ' - ' . $language . "): " . number_format($reliability, 5) . '\n'; } $used_languages = DI::l10n()->t('Detected languages in this post:\n%s', $used_languages); return $used_languages;