Skip to content

Commit

Permalink
Code clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
larryaasen committed Sep 23, 2024
1 parent 3e88226 commit 63f2d36
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 11 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## 11.2.0

- [432] On CupertinoAlertDialog configured CupertinoActionButton isDefaultAction property for the Update button. Thanks to @lukemmtt for the change.
- Added new language translations for Pashto ('ps'). (thanks to @isshort)
- Removed old travis.yaml CI file.

## 11.1.0
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ Languages supported:
* Norwegian ('nb')
* Persian ('fa')
* Polish ('pl')
* Pashto ('ps')
* Portuguese ('pt')
* Russian ('ru')
* Spanish ('es')
Expand Down
2 changes: 2 additions & 0 deletions example/lib/main_messages.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class MyApp extends StatelessWidget {
Locale('nl', ''), // Dutch, no country code
Locale('pt', ''), // Portuguese, no country code
Locale('pl', ''), // Polish, no country code
Locale('ps', ''), // Pashto, no country code
Locale('ru', ''), // Russian, no country code
Locale('sv', ''), // Swedish, no country code
Locale('ta', ''), // Tamil, no country code
Expand Down Expand Up @@ -157,6 +158,7 @@ class DemoLocalizationsDelegate
'nl',
'pt',
'pl',
'ps',
'ru',
'sv',
'ta',
Expand Down
11 changes: 1 addition & 10 deletions lib/src/upgrade_messages.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/*
* Copyright (c) 2020-2022 Larry Aasen. All rights reserved.
*/
// Copyright (c) 2020-2024 Larry Aasen. All rights reserved.

import 'dart:ui';

Expand Down Expand Up @@ -135,7 +133,6 @@ class UpgraderMessages {
message =
'نسخه‌ی جدیدی از {{appName}} موجود است! نسخه‌ی {{currentAppStoreVersion}} در دسترس است ولی شما همچنان از نسخه‌ی {{currentInstalledVersion}} استفاده می‌کنید.';
break;

case 'fil':
message =
'May bagong bersyon ang {{appName}} na pwede nang magamit! Ang bersyong {{currentAppStoreVersion}} ay pwede nang magamit. Ikaw ay kasalukuyang gumagamit ng bersyong {{currentInstalledVersion}}.';
Expand Down Expand Up @@ -387,9 +384,6 @@ class UpgraderMessages {
String message;
switch (languageCode) {
case 'ar':
//only minor change here, removing the character at the left top of the arabic word (لاحقاً)
// before: message = 'لاحقاً';
//now:
message = 'لاحقا';
break;
case 'bn':
Expand All @@ -407,7 +401,6 @@ class UpgraderMessages {
case 'fa':
message = 'بعدا';
break;

case 'fil':
message = 'MAMAYA';
break;
Expand Down Expand Up @@ -526,7 +519,6 @@ class UpgraderMessages {
case 'fa':
message = 'بروزرسانی';
break;

case 'fil':
message = 'I-UPDATE NA NGAYON';
break;
Expand Down Expand Up @@ -646,7 +638,6 @@ class UpgraderMessages {
case 'fa':
message = 'آیا بروزرسانی می‌کنید؟';
break;

case 'fil':
message = 'Gusto mo bang i-update ito ngayon?';
break;
Expand Down
2 changes: 1 addition & 1 deletion test/upgrader_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,6 @@ void main() {
verifyMessages(UpgraderMessages(code: 'da'), 'da');
verifyMessages(UpgraderMessages(code: 'es'), 'es');
verifyMessages(UpgraderMessages(code: 'fa'), 'fa');
verifyMessages(UpgraderMessages(code: 'ps'), 'ps');
verifyMessages(UpgraderMessages(code: 'fil'), 'fil');
verifyMessages(UpgraderMessages(code: 'fr'), 'fr');
verifyMessages(UpgraderMessages(code: 'de'), 'de');
Expand All @@ -1157,6 +1156,7 @@ void main() {
verifyMessages(UpgraderMessages(code: 'mn'), 'mn');
verifyMessages(UpgraderMessages(code: 'nb'), 'nb');
verifyMessages(UpgraderMessages(code: 'nl'), 'nl');
verifyMessages(UpgraderMessages(code: 'ps'), 'ps');
verifyMessages(UpgraderMessages(code: 'pt'), 'pt');
verifyMessages(UpgraderMessages(code: 'pl'), 'pl');
verifyMessages(UpgraderMessages(code: 'ru'), 'ru');
Expand Down

0 comments on commit 63f2d36

Please sign in to comment.