Skip to content

Commit 5466452

Browse files
committed
l10n: Update translations from Weblate, except skip zh_Hans
This update required adjustment; straight from the Weblate branch, l10n generation (`tools/check l10n --fix`) failed: Arb file for a fallback, zh, does not exist, even though the following locale(s) exist: [zh_Hans]. When locales specify a script code or country code, a base locale (without the script code or country code) should exist as the fallback. Please create a {fileName}_zh.arb file. The app_zh_Hans.arb file had only two translations in it (I believe it exists at the moment precisely in order to test this sort of workflow), so I just removed it and reran generation.
1 parent e90fb07 commit 5466452

File tree

9 files changed

+860
-15
lines changed

9 files changed

+860
-15
lines changed

assets/l10n/app_de.arb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

assets/l10n/app_en_GB.arb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"topicValidationErrorMandatoryButEmpty": "Topics are required in this organisation.",
3+
"@topicValidationErrorMandatoryButEmpty": {
4+
"description": "Topic validation error when topic is required but was empty."
5+
}
6+
}

assets/l10n/app_pl.arb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,5 +1002,15 @@
10021002
"example": "4.0"
10031003
}
10041004
}
1005+
},
1006+
"composeBoxEnterTopicOrSkipHintText": "Wpisz tytuł wątku (pomiń aby uzyskać “{defaultTopicName}”)",
1007+
"@composeBoxEnterTopicOrSkipHintText": {
1008+
"description": "Hint text for topic input widget in compose box when topics are optional.",
1009+
"placeholders": {
1010+
"defaultTopicName": {
1011+
"type": "String",
1012+
"example": "general chat"
1013+
}
1014+
}
10051015
}
10061016
}

assets/l10n/app_uk.arb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"@actionSheetOptionFollowTopic": {
88
"description": "Label for following a topic on action sheet."
99
},
10-
"actionSheetOptionUnstarMessage": "Зняти позначку зірочки з повідомлення",
10+
"actionSheetOptionUnstarMessage": "Зняти позначку зірки з повідомлення",
1111
"@actionSheetOptionUnstarMessage": {
1212
"description": "Label for unstar button on action sheet."
1313
},
@@ -51,11 +51,11 @@
5151
"@errorSharingFailed": {
5252
"description": "Error message when sharing a message failed."
5353
},
54-
"errorStarMessageFailedTitle": "Не вдалося позначити повідомлення зірочкою",
54+
"errorStarMessageFailedTitle": "Не вдалося позначити повідомлення зіркою",
5555
"@errorStarMessageFailedTitle": {
5656
"description": "Error title when starring a message failed."
5757
},
58-
"errorUnstarMessageFailedTitle": "Не вдалося зняти позначку зірочки з повідомлення",
58+
"errorUnstarMessageFailedTitle": "Не вдалося зняти позначку зірки з повідомлення",
5959
"@errorUnstarMessageFailedTitle": {
6060
"description": "Error title when unstarring a message failed."
6161
},
@@ -157,7 +157,7 @@
157157
"@permissionsDeniedReadExternalStorage": {
158158
"description": "Message for dialog asking the user to grant permissions for external storage read access."
159159
},
160-
"actionSheetOptionStarMessage": "Позначити повідомлення зірочкою",
160+
"actionSheetOptionStarMessage": "Вибрати повідомлення",
161161
"@actionSheetOptionStarMessage": {
162162
"description": "Label for star button on action sheet."
163163
},
@@ -315,7 +315,7 @@
315315
}
316316
}
317317
},
318-
"composeBoxGroupDmContentHint": "Група повідомлень",
318+
"composeBoxGroupDmContentHint": "Написати групі",
319319
"@composeBoxGroupDmContentHint": {
320320
"description": "Hint text for content input when sending a message to a group."
321321
},
@@ -691,7 +691,7 @@
691691
"@mentionsPageTitle": {
692692
"description": "Page title for the 'Mentions' message view."
693693
},
694-
"starredMessagesPageTitle": "Повідомлення, позначені зірочкою",
694+
"starredMessagesPageTitle": "Вибрані повідомлення",
695695
"@starredMessagesPageTitle": {
696696
"description": "Page title for the 'Starred messages' message view."
697697
},
@@ -955,7 +955,7 @@
955955
"@recentDmConversationsPageTitle": {
956956
"description": "Title for the page with a list of DM conversations."
957957
},
958-
"combinedFeedPageTitle": "Комбінована стрічка",
958+
"combinedFeedPageTitle": "Об'єднана стрічка",
959959
"@combinedFeedPageTitle": {
960960
"description": "Page title for the 'Combined feed' message view."
961961
},

lib/generated/l10n/zulip_localizations.dart

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import 'package:flutter_localizations/flutter_localizations.dart';
66
import 'package:intl/intl.dart' as intl;
77

88
import 'zulip_localizations_ar.dart';
9+
import 'zulip_localizations_de.dart';
910
import 'zulip_localizations_en.dart';
1011
import 'zulip_localizations_ja.dart';
1112
import 'zulip_localizations_nb.dart';
@@ -102,6 +103,8 @@ abstract class ZulipLocalizations {
102103
static const List<Locale> supportedLocales = <Locale>[
103104
Locale('en'),
104105
Locale('ar'),
106+
Locale('de'),
107+
Locale('en', 'GB'),
105108
Locale('ja'),
106109
Locale('nb'),
107110
Locale('pl'),
@@ -1469,6 +1472,7 @@ class _ZulipLocalizationsDelegate
14691472
@override
14701473
bool isSupported(Locale locale) => <String>[
14711474
'ar',
1475+
'de',
14721476
'en',
14731477
'ja',
14741478
'nb',
@@ -1483,10 +1487,24 @@ class _ZulipLocalizationsDelegate
14831487
}
14841488

14851489
ZulipLocalizations lookupZulipLocalizations(Locale locale) {
1490+
// Lookup logic when language+country codes are specified.
1491+
switch (locale.languageCode) {
1492+
case 'en':
1493+
{
1494+
switch (locale.countryCode) {
1495+
case 'GB':
1496+
return ZulipLocalizationsEnGb();
1497+
}
1498+
break;
1499+
}
1500+
}
1501+
14861502
// Lookup logic when only language code is specified.
14871503
switch (locale.languageCode) {
14881504
case 'ar':
14891505
return ZulipLocalizationsAr();
1506+
case 'de':
1507+
return ZulipLocalizationsDe();
14901508
case 'en':
14911509
return ZulipLocalizationsEn();
14921510
case 'ja':

0 commit comments

Comments
 (0)