From cc196a096a16815f8a652b65c0ec744ae0397dca Mon Sep 17 00:00:00 2001 From: Larry Aasen Date: Wed, 29 May 2024 08:25:54 -0400 Subject: [PATCH] Fixed Kurdish Sorani ('ku') language translation. --- CHANGELOG.md | 5 ++++ example/lib/main_messages.dart | 2 ++ lib/src/upgrade_messages.dart | 42 ++++++++++++++++++---------------- test/upgrader_test.dart | 1 + 4 files changed, 30 insertions(+), 20 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index df47ccd5..1ed229a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## Next + +- [413] Fixed Haitian Creole messages to use correct grammar. (thanks to @wjeanvilma) +- [415] Added Kurdish Sorani ('ku') language translation. (thanks to @drpshtiwan) + ## 10.3.0 Allowed for package_info_plus 8.0.0. diff --git a/example/lib/main_messages.dart b/example/lib/main_messages.dart index 60d31e9c..00710fa7 100644 --- a/example/lib/main_messages.dart +++ b/example/lib/main_messages.dart @@ -52,6 +52,7 @@ class MyApp extends StatelessWidget { Locale('kk', ''), // Kazakh, no country code Locale('km', ''), // Khmer, no country code Locale('ko', ''), // Korean, no country code + Locale('ku', ''), // Kurdish Sorani, no country code Locale('lt', ''), // Lithuanian, no country code Locale('mn', ''), // Mongolian, no country code Locale('nb', ''), // Norwegian, no country code @@ -149,6 +150,7 @@ class DemoLocalizationsDelegate 'kk', 'km', 'ko', + 'ku', 'lt', 'mn', 'nb', diff --git a/lib/src/upgrade_messages.dart b/lib/src/upgrade_messages.dart index 1fa0aa41..e27558ee 100644 --- a/lib/src/upgrade_messages.dart +++ b/lib/src/upgrade_messages.dart @@ -185,6 +185,10 @@ class UpgraderMessages { message = '{{appName}}이 새 버전으로 업데이트되었습니다! 최신 버전 {{currentAppStoreVersion}}으로 업그레이드 가능합니다 - 현재 버전 {{currentInstalledVersion}}.'; break; + case 'ku': + message = + 'وەشانی نوێی {{appName}} بەردەستە! وەشانی {{currentAppStoreVersion}} بەردەستە- تۆ وەشانی {{currentInstalledVersion}} دابەزاندوە.'; + break; case 'lt': message = 'Išleista nauja programos {{appName}} versija! Versija {{currentAppStoreVersion}} yra prieinama, jūs turite {{currentInstalledVersion}}.'; @@ -241,10 +245,6 @@ class UpgraderMessages { message = '{{appName}}有新的版本!您拥有{{currentInstalledVersion}}的版本可更新到{{currentAppStoreVersion}}的版本。'; break; - case 'ku': - message = - 'وەشانی نوێی {{appName}} بەردەستە! وەشانی {{currentAppStoreVersion}} بەردەستە- تۆ وەشانی {{currentInstalledVersion}} دابەزاندوە.'; - break; case 'en': default: message = @@ -317,6 +317,9 @@ class UpgraderMessages { case 'ko': message = '무시'; break; + case 'ku': + message = 'پشتگوێخستن'; + break; case 'lt': message = 'IGNORUOTI'; break; @@ -433,6 +436,9 @@ class UpgraderMessages { case 'ko': message = '나중에'; break; + case 'ku': + message = 'دواتر'; + break; case 'lt': message = 'ATNAUJINTI VĖLIAU'; break; @@ -474,9 +480,6 @@ class UpgraderMessages { break; case 'zh': message = '以后'; - case 'ku': - message = 'دواتر'; - break; case 'en': default: message = 'LATER'; @@ -548,6 +551,9 @@ class UpgraderMessages { case 'ko': message = '지금 업데이트'; break; + case 'ku': + message = 'نوێکردنەوە'; + break; case 'lt': message = 'ATNAUJINTI DABAR'; break; @@ -590,9 +596,6 @@ class UpgraderMessages { case 'zh': message = '更新'; break; - case 'ku': - message = 'نوێکردنەوە'; - break; case 'en': default: message = 'UPDATE NOW'; @@ -664,6 +667,9 @@ class UpgraderMessages { case 'ko': message = '지금 업데이트를 시작하시겠습니까?'; break; + case 'ku': + message = 'دەتەوێت ئێستا نوێی بکەیەوە؟'; + break; case 'lt': message = 'Ar norite atnaujinti dabar?'; break; @@ -706,9 +712,6 @@ class UpgraderMessages { case 'zh': message = '您现在要更新应用程序吗?'; break; - case 'ku': - message = 'دەتەوێت ئێستا نوێی بکەیەوە؟'; - break; case 'en': default: message = 'Would you like to update it now?'; @@ -753,6 +756,9 @@ class UpgraderMessages { case 'ja': message = 'リリースノート'; break; + case 'ku': + message = 'تیبینەکانی وەشان'; + break; case 'pt': message = 'Novidades'; break; @@ -766,10 +772,6 @@ class UpgraderMessages { message = 'Yayın Notları'; break; - case 'ku': - message = 'تیبینەکانی وەشان'; - break; - case 'bn': case 'el': case 'fa': @@ -860,6 +862,9 @@ class UpgraderMessages { case 'ko': message = '앱을 업데이트하시겠습니까?'; break; + case 'ku': + message = 'نوێکردنەوەی ئەپ؟'; + break; case 'lt': message = 'Atnaujinti programą?'; break; @@ -902,9 +907,6 @@ class UpgraderMessages { case 'zh': message = '更新应用程序?'; break; - case 'ku': - message = 'نوێکردنەوەی ئەپ؟'; - break; case 'en': default: message = 'Update App?'; diff --git a/test/upgrader_test.dart b/test/upgrader_test.dart index 826c3b15..f620b927 100644 --- a/test/upgrader_test.dart +++ b/test/upgrader_test.dart @@ -1151,6 +1151,7 @@ void main() { verifyMessages(UpgraderMessages(code: 'kk'), 'kk'); verifyMessages(UpgraderMessages(code: 'km'), 'km'); verifyMessages(UpgraderMessages(code: 'ko'), 'ko'); + verifyMessages(UpgraderMessages(code: 'ku'), 'ku'); verifyMessages(UpgraderMessages(code: 'lt'), 'lt'); verifyMessages(UpgraderMessages(code: 'mn'), 'mn'); verifyMessages(UpgraderMessages(code: 'nb'), 'nb');