Skip to content

Commit

Permalink
🌐 German translations
Browse files Browse the repository at this point in the history
  • Loading branch information
NNowakowski committed Aug 19, 2020
1 parent 186c34e commit 760cd6a
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ Languages supported:
* English (en)
* Arabic (ar)
* French (fr)
* German (de)
* Korean (ko)
* Polish (pl)
* Portuguese (pt)
Expand Down Expand Up @@ -252,7 +253,7 @@ UpgradeAlert(messages: UpgraderMessages(code: 'es'));

## iTunes Search API

There is a class in this Flutter package used by the upgrader widgets to download app details
There is a class in this Flutter package used by the upgrader widgets to download app details
from the
[iTunes Search API](https://affiliate.itunes.apple.com/resources/documentation/itunes-store-web-service-search-api).
The class ITunesSearchAPI can be used standalone to query iTunes for app details.
Expand Down Expand Up @@ -283,7 +284,7 @@ itunes_lookup bundleId: com.google.Maps
itunes_lookup trackViewUrl: https://apps.apple.com/us/app/google-maps-transit-food/id585027354?uo=4
itunes_lookup version: 5.31
itunes_lookup all results:
{resultCount: 1, results:
{resultCount: 1, results:
...
```

Expand All @@ -293,4 +294,3 @@ All [comments](https://github.com/larryaasen/upgrader/issues) and [pull requests
## Donations on Flattr

[Please donate to the creator of upgrader!](https://flattr.com/@larryaasen)

3 changes: 2 additions & 1 deletion example/lib/main-localized.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class Demo extends StatelessWidget {
const Locale('ar', ''), // Arabic, no country code
const Locale('es', ''), // Spanish, no country code
const Locale('fr', ''), // French, no country code
const Locale('de', ''), // German, no country code
const Locale('ko', ''), // Korean, no country code
const Locale('pt', ''), // Portuguese, no country code
const Locale('pl', ''), // Polish, no country code
Expand Down Expand Up @@ -100,7 +101,7 @@ class DemoLocalizationsDelegate

@override
bool isSupported(Locale locale) =>
['en', 'ar', 'es', 'fr', 'ko', 'pt', 'pl'].contains(locale.languageCode);
['en', 'ar', 'es', 'fr', 'de', 'ko', 'pt', 'pl'].contains(locale.languageCode);

@override
Future<DemoLocalizations> load(Locale locale) {
Expand Down
19 changes: 19 additions & 0 deletions lib/src/upgrade_messages.dart
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ class UpgraderMessages {
message =
'Une nouvelle version de {{appName}} est disponible ! La version {{currentAppStoreVersion}} est maintenant disponible, vous avez la version {{currentInstalledVersion}}.';
break;
case 'de':
message =
'Eine neue Version von {{appName}} ist verfügbar! Die Version {{currentAppStoreVersion}} ist verfügbar, installiert ist die Version {{currentInstalledVersion}}.';
break;
case 'ko':
message =
'Há uma nova versão do {{appName}} disponível! A versão {{currentAppStoreVersion}} já está disponível, você tem a {{currentInstalledVersion}}.';
Expand Down Expand Up @@ -143,6 +147,9 @@ class UpgraderMessages {
case 'fr':
message = 'IGNORER';
break;
case 'de':
message = 'IGNORIEREN';
break;
case 'ko':
message = '무시';
break;
Expand Down Expand Up @@ -174,6 +181,9 @@ class UpgraderMessages {
case 'fr':
message = 'PLUS TARD';
break;
case 'de':
message = 'SPÄTER';
break;
case 'ko':
message = '나중에';
break;
Expand Down Expand Up @@ -205,6 +215,9 @@ class UpgraderMessages {
case 'fr':
message = 'MAINTENANT';
break;
case 'de':
message = 'AKTUALISIEREN';
break;
case 'ko':
message = '지금 업데이트';
break;
Expand Down Expand Up @@ -236,6 +249,9 @@ class UpgraderMessages {
case 'fr':
message = 'Voulez-vous mettre à jour maintenant?';
break;
case 'de':
message = 'Möchtest du jetzt aktualisieren?';
break;
case 'ko':
message = '지금 업데이트를 시작하시겠습니까?';
break;
Expand Down Expand Up @@ -267,6 +283,9 @@ class UpgraderMessages {
case 'fr':
message = 'Mettre à jour l\'application?';
break;
case 'de':
message = 'App aktualisieren?';
break;
case 'ko':
message = '앱을 업데이트하시겠습니까?';
break;
Expand Down
1 change: 1 addition & 0 deletions test/upgrader_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,7 @@ void main() {
verifyMessages(UpgraderMessages(code: 'ar'), 'ar');
verifyMessages(UpgraderMessages(code: 'es'), 'es');
verifyMessages(UpgraderMessages(code: 'fr'), 'fr');
verifyMessages(UpgraderMessages(code: 'de'), 'de');
verifyMessages(UpgraderMessages(code: 'ko'), 'ko');
verifyMessages(UpgraderMessages(code: 'pt'), 'pt');
verifyMessages(UpgraderMessages(code: 'pl'), 'pl');
Expand Down

0 comments on commit 760cd6a

Please sign in to comment.