Skip to content

Commit 63d4540

Browse files
committed
migrate l10n
Restyled by shellharden Restyled by shfmt Restyled by whitespace
1 parent fcfaa08 commit 63d4540

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+533
-760
lines changed

Diff for: flutter-init.sh

+8-9
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,17 @@ flutter config --no-analytics
1212

1313
flutter pub get
1414

15-
flutter pub global activate intl_utils
16-
flutter --no-color pub global run intl_utils:generate
15+
flutter gen-l10n
1716

1817
flutter pub run flutter_oss_licenses:generate.dart
1918
mv lib/oss_licenses.dart lib/generated
2019

21-
mkdir -p $GEN_FILE_PATH || true
20+
mkdir -p "$GEN_FILE_PATH" || true
2221

23-
echo "const Map<String, String> flutterVersion =" > $FLUTTER_VERSION_FILE
24-
flutter --version --machine >> $FLUTTER_VERSION_FILE
25-
echo ";" >> $FLUTTER_VERSION_FILE
22+
echo "const Map<String, String> flutterVersion =" >"$FLUTTER_VERSION_FILE"
23+
flutter --version --machine >>"$FLUTTER_VERSION_FILE"
24+
echo ";" >>"$FLUTTER_VERSION_FILE"
2625

27-
mkdir -p $ENV_FILE_PATH || true
28-
touch $ENV_FILE
29-
export > $ENV_FILE
26+
mkdir -p "$ENV_FILE_PATH" || true
27+
touch "$ENV_FILE"
28+
export >"$ENV_FILE"

Diff for: src/ui/flutter_app/l10n.yaml

+18-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
1+
# see https://flutter.dev/go/i18n-user-guide
2+
# https://docs.google.com/document/d/10e0saTfAv32OZLRmONy866vnaw0I2jwL8zukykpgWBc/edit#
3+
#
4+
# WARNING: DO NOT translate app_XX.arb files directly here. For translations please see:
5+
# https://weblate.rimikis.de/projects/bierverkostung/
6+
# (only the source language, app_en.arb is edited manually here).
7+
#
8+
# We are now using synthetic packages, so to use `AppLocalizations` inside the code
9+
# you have to add the following import:
10+
# import 'package:yahtzee_counter/l10n/app_localizations.g.dart';
11+
112
arb-dir: lib/l10n
213
template-arb-file: intl_en.arb
3-
output-localization-file: app_localizations.dart
4-
untranslated-messages-file: untranslated-messages-file.txt
14+
output-dir: lib/generated/intl/
15+
output-localization-file: l10n.dart
16+
output-class: S
17+
untranslated-messages-file: untranslated-messages-file.txt
18+
# use-deferred-loading: true #enable for web support
19+
synthetic-package: false
20+
nullable-getter: false

Diff for: src/ui/flutter_app/lib/l10n/intl_ar.arb

+5-1
Original file line numberDiff line numberDiff line change
@@ -1248,5 +1248,9 @@
12481248
"hollow": "أجوف",
12491249
"@hollow": {
12501250
"description": "Hollow"
1251+
},
1252+
"languageName": "عربى",
1253+
"@languageName": {
1254+
"description": "The name of the current language"
12511255
}
1252-
}
1256+
}

Diff for: src/ui/flutter_app/lib/l10n/intl_bg.arb

+5-1
Original file line numberDiff line numberDiff line change
@@ -1248,5 +1248,9 @@
12481248
"hollow": "Куха",
12491249
"@hollow": {
12501250
"description": "Hollow"
1251+
},
1252+
"languageName": "български",
1253+
"@languageName": {
1254+
"description": "The name of the current language"
12511255
}
1252-
}
1256+
}

Diff for: src/ui/flutter_app/lib/l10n/intl_bn.arb

+5-1
Original file line numberDiff line numberDiff line change
@@ -1248,5 +1248,9 @@
12481248
"hollow": "ফাঁপা",
12491249
"@hollow": {
12501250
"description": "Hollow"
1251+
},
1252+
"languageName": "বাংলা",
1253+
"@languageName": {
1254+
"description": "The name of the current language"
12511255
}
1252-
}
1256+
}

Diff for: src/ui/flutter_app/lib/l10n/intl_cs.arb

+5-1
Original file line numberDiff line numberDiff line change
@@ -1248,5 +1248,9 @@
12481248
"hollow": "Dutý",
12491249
"@hollow": {
12501250
"description": "Hollow"
1251+
},
1252+
"languageName": "Čeština",
1253+
"@languageName": {
1254+
"description": "The name of the current language"
12511255
}
1252-
}
1256+
}

Diff for: src/ui/flutter_app/lib/l10n/intl_da.arb

+5-1
Original file line numberDiff line numberDiff line change
@@ -1248,5 +1248,9 @@
12481248
"hollow": "Hul",
12491249
"@hollow": {
12501250
"description": "Hollow"
1251+
},
1252+
"languageName": "Dansk",
1253+
"@languageName": {
1254+
"description": "The name of the current language"
12511255
}
1252-
}
1256+
}

Diff for: src/ui/flutter_app/lib/l10n/intl_de.arb

+5-1
Original file line numberDiff line numberDiff line change
@@ -1248,5 +1248,9 @@
12481248
"hollow": "Hohle",
12491249
"@hollow": {
12501250
"description": "Hollow"
1251+
},
1252+
"languageName": "Deutsch",
1253+
"@languageName": {
1254+
"description": "The name of the current language"
12511255
}
1252-
}
1256+
}

Diff for: src/ui/flutter_app/lib/l10n/intl_de_ch.arb

+5-1
Original file line numberDiff line numberDiff line change
@@ -1248,5 +1248,9 @@
12481248
"hollow": "Hohle",
12491249
"@hollow": {
12501250
"description": "Hollow"
1251+
},
1252+
"languageName": "Schweizerdeutsch",
1253+
"@languageName": {
1254+
"description": "The name of the current language"
12511255
}
1252-
}
1256+
}

Diff for: src/ui/flutter_app/lib/l10n/intl_el.arb

+5-1
Original file line numberDiff line numberDiff line change
@@ -1248,5 +1248,9 @@
12481248
"hollow": "Κοίλος",
12491249
"@hollow": {
12501250
"description": "Hollow"
1251+
},
1252+
"languageName": "Ελληνικά",
1253+
"@languageName": {
1254+
"description": "The name of the current language"
12511255
}
1252-
}
1256+
}

Diff for: src/ui/flutter_app/lib/l10n/intl_en.arb

+5-1
Original file line numberDiff line numberDiff line change
@@ -1248,5 +1248,9 @@
12481248
"hollow": "Hollow",
12491249
"@hollow": {
12501250
"description": "Hollow"
1251+
},
1252+
"languageName": "English",
1253+
"@languageName": {
1254+
"description": "The name of the current language"
12511255
}
1252-
}
1256+
}

Diff for: src/ui/flutter_app/lib/l10n/intl_es.arb

+5-1
Original file line numberDiff line numberDiff line change
@@ -1248,5 +1248,9 @@
12481248
"hollow": "Hueco",
12491249
"@hollow": {
12501250
"description": "Hollow"
1251+
},
1252+
"languageName": "Español",
1253+
"@languageName": {
1254+
"description": "The name of the current language"
12511255
}
1252-
}
1256+
}

Diff for: src/ui/flutter_app/lib/l10n/intl_et.arb

+5-1
Original file line numberDiff line numberDiff line change
@@ -1248,5 +1248,9 @@
12481248
"hollow": "Õõnes",
12491249
"@hollow": {
12501250
"description": "Hollow"
1251+
},
1252+
"languageName": "Eestlane",
1253+
"@languageName": {
1254+
"description": "The name of the current language"
12511255
}
1252-
}
1256+
}

Diff for: src/ui/flutter_app/lib/l10n/intl_fa.arb

+5-1
Original file line numberDiff line numberDiff line change
@@ -1248,5 +1248,9 @@
12481248
"hollow": "توخالی",
12491249
"@hollow": {
12501250
"description": "Hollow"
1251+
},
1252+
"languageName": "فارسی",
1253+
"@languageName": {
1254+
"description": "The name of the current language"
12511255
}
1252-
}
1256+
}

Diff for: src/ui/flutter_app/lib/l10n/intl_fi.arb

+5-1
Original file line numberDiff line numberDiff line change
@@ -1248,5 +1248,9 @@
12481248
"hollow": "Ontto",
12491249
"@hollow": {
12501250
"description": "Hollow"
1251+
},
1252+
"languageName": "Suomalainen",
1253+
"@languageName": {
1254+
"description": "The name of the current language"
12511255
}
1252-
}
1256+
}

Diff for: src/ui/flutter_app/lib/l10n/intl_fr.arb

+5-1
Original file line numberDiff line numberDiff line change
@@ -1248,5 +1248,9 @@
12481248
"hollow": "Creux",
12491249
"@hollow": {
12501250
"description": "Hollow"
1251+
},
1252+
"languageName": "Français",
1253+
"@languageName": {
1254+
"description": "The name of the current language"
12511255
}
1252-
}
1256+
}

Diff for: src/ui/flutter_app/lib/l10n/intl_gu.arb

+5-1
Original file line numberDiff line numberDiff line change
@@ -1248,5 +1248,9 @@
12481248
"hollow": "હોલો",
12491249
"@hollow": {
12501250
"description": "Hollow"
1251+
},
1252+
"languageName": "ગુજરાતી",
1253+
"@languageName": {
1254+
"description": "The name of the current language"
12511255
}
1252-
}
1256+
}

Diff for: src/ui/flutter_app/lib/l10n/intl_hi.arb

+5-1
Original file line numberDiff line numberDiff line change
@@ -1248,5 +1248,9 @@
12481248
"hollow": "खोखला",
12491249
"@hollow": {
12501250
"description": "Hollow"
1251+
},
1252+
"languageName": "हिंदी",
1253+
"@languageName": {
1254+
"description": "The name of the current language"
12511255
}
1252-
}
1256+
}

Diff for: src/ui/flutter_app/lib/l10n/intl_hr.arb

+5-1
Original file line numberDiff line numberDiff line change
@@ -1248,5 +1248,9 @@
12481248
"hollow": "Šuplje",
12491249
"@hollow": {
12501250
"description": "Hollow"
1251+
},
1252+
"languageName": "Hrvatski",
1253+
"@languageName": {
1254+
"description": "The name of the current language"
12511255
}
1252-
}
1256+
}

Diff for: src/ui/flutter_app/lib/l10n/intl_hu.arb

+5-1
Original file line numberDiff line numberDiff line change
@@ -1248,5 +1248,9 @@
12481248
"hollow": "Üreges",
12491249
"@hollow": {
12501250
"description": "Hollow"
1251+
},
1252+
"languageName": "Magyar",
1253+
"@languageName": {
1254+
"description": "The name of the current language"
12511255
}
1252-
}
1256+
}

Diff for: src/ui/flutter_app/lib/l10n/intl_id.arb

+5-1
Original file line numberDiff line numberDiff line change
@@ -1248,5 +1248,9 @@
12481248
"hollow": "Kosong",
12491249
"@hollow": {
12501250
"description": "Hollow"
1251+
},
1252+
"languageName": "Indonesia",
1253+
"@languageName": {
1254+
"description": "The name of the current language"
12511255
}
1252-
}
1256+
}

Diff for: src/ui/flutter_app/lib/l10n/intl_it.arb

+5-1
Original file line numberDiff line numberDiff line change
@@ -1248,5 +1248,9 @@
12481248
"hollow": "Vuoto",
12491249
"@hollow": {
12501250
"description": "Hollow"
1251+
},
1252+
"languageName": "Italiano",
1253+
"@languageName": {
1254+
"description": "The name of the current language"
12511255
}
1252-
}
1256+
}

Diff for: src/ui/flutter_app/lib/l10n/intl_ja.arb

+5-1
Original file line numberDiff line numberDiff line change
@@ -1248,5 +1248,9 @@
12481248
"hollow": "中空円",
12491249
"@hollow": {
12501250
"description": "Hollow"
1251+
},
1252+
"languageName": "日本語",
1253+
"@languageName": {
1254+
"description": "The name of the current language"
12511255
}
1252-
}
1256+
}

Diff for: src/ui/flutter_app/lib/l10n/intl_kn.arb

+5-1
Original file line numberDiff line numberDiff line change
@@ -1248,5 +1248,9 @@
12481248
"hollow": "ಟೊಳ್ಳು",
12491249
"@hollow": {
12501250
"description": "Hollow"
1251+
},
1252+
"languageName": "ಕನ್ನಡ",
1253+
"@languageName": {
1254+
"description": "The name of the current language"
12511255
}
1252-
}
1256+
}

Diff for: src/ui/flutter_app/lib/l10n/intl_ko.arb

+5-1
Original file line numberDiff line numberDiff line change
@@ -1248,5 +1248,9 @@
12481248
"hollow": "구멍",
12491249
"@hollow": {
12501250
"description": "Hollow"
1251+
},
1252+
"languageName": "한국어",
1253+
"@languageName": {
1254+
"description": "The name of the current language"
12511255
}
1252-
}
1256+
}

Diff for: src/ui/flutter_app/lib/l10n/intl_lt.arb

+5-1
Original file line numberDiff line numberDiff line change
@@ -1248,5 +1248,9 @@
12481248
"hollow": "Tuščiaviduriai",
12491249
"@hollow": {
12501250
"description": "Hollow"
1251+
},
1252+
"languageName": "Lietuvis",
1253+
"@languageName": {
1254+
"description": "The name of the current language"
12511255
}
1252-
}
1256+
}

Diff for: src/ui/flutter_app/lib/l10n/intl_lv.arb

+5-1
Original file line numberDiff line numberDiff line change
@@ -1248,5 +1248,9 @@
12481248
"hollow": "Dobis",
12491249
"@hollow": {
12501250
"description": "Hollow"
1251+
},
1252+
"languageName": "Latvietis",
1253+
"@languageName": {
1254+
"description": "The name of the current language"
12511255
}
1252-
}
1256+
}

Diff for: src/ui/flutter_app/lib/l10n/intl_mk.arb

+5-1
Original file line numberDiff line numberDiff line change
@@ -1248,5 +1248,9 @@
12481248
"hollow": "Шупливи",
12491249
"@hollow": {
12501250
"description": "Hollow"
1251+
},
1252+
"languageName": "Македонски",
1253+
"@languageName": {
1254+
"description": "The name of the current language"
12511255
}
1252-
}
1256+
}

Diff for: src/ui/flutter_app/lib/l10n/intl_ms.arb

+5-1
Original file line numberDiff line numberDiff line change
@@ -1248,5 +1248,9 @@
12481248
"hollow": "Berongga",
12491249
"@hollow": {
12501250
"description": "Hollow"
1251+
},
1252+
"languageName": "Melayu",
1253+
"@languageName": {
1254+
"description": "The name of the current language"
12511255
}
1252-
}
1256+
}

Diff for: src/ui/flutter_app/lib/l10n/intl_nl.arb

+5-1
Original file line numberDiff line numberDiff line change
@@ -1248,5 +1248,9 @@
12481248
"hollow": "Hol",
12491249
"@hollow": {
12501250
"description": "Hollow"
1251+
},
1252+
"languageName": "Nederlands",
1253+
"@languageName": {
1254+
"description": "The name of the current language"
12511255
}
1252-
}
1256+
}

Diff for: src/ui/flutter_app/lib/l10n/intl_nn.arb

+5-1
Original file line numberDiff line numberDiff line change
@@ -1248,5 +1248,9 @@
12481248
"hollow": "Hul",
12491249
"@hollow": {
12501250
"description": "Hollow"
1251+
},
1252+
"languageName": "Norsk",
1253+
"@languageName": {
1254+
"description": "The name of the current language"
12511255
}
1252-
}
1256+
}

0 commit comments

Comments
 (0)