Skip to content

l10n: Update translations from Weblate, except skip zh_Hans #1522

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions assets/l10n/app_de.arb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
6 changes: 6 additions & 0 deletions assets/l10n/app_en_GB.arb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"topicValidationErrorMandatoryButEmpty": "Topics are required in this organisation.",
"@topicValidationErrorMandatoryButEmpty": {
"description": "Topic validation error when topic is required but was empty."
}
}
10 changes: 10 additions & 0 deletions assets/l10n/app_pl.arb
Original file line number Diff line number Diff line change
Expand Up @@ -1006,5 +1006,15 @@
"example": "4.0"
}
}
},
"composeBoxEnterTopicOrSkipHintText": "Wpisz tytuł wątku (pomiń aby uzyskać “{defaultTopicName}”)",
"@composeBoxEnterTopicOrSkipHintText": {
"description": "Hint text for topic input widget in compose box when topics are optional.",
"placeholders": {
"defaultTopicName": {
"type": "String",
"example": "general chat"
}
}
}
}
14 changes: 7 additions & 7 deletions assets/l10n/app_uk.arb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"@actionSheetOptionFollowTopic": {
"description": "Label for following a topic on action sheet."
},
"actionSheetOptionUnstarMessage": "Зняти позначку зірочки з повідомлення",
"actionSheetOptionUnstarMessage": "Зняти позначку зірки з повідомлення",
"@actionSheetOptionUnstarMessage": {
"description": "Label for unstar button on action sheet."
},
Expand Down Expand Up @@ -51,11 +51,11 @@
"@errorSharingFailed": {
"description": "Error message when sharing a message failed."
},
"errorStarMessageFailedTitle": "Не вдалося позначити повідомлення зірочкою",
"errorStarMessageFailedTitle": "Не вдалося позначити повідомлення зіркою",
"@errorStarMessageFailedTitle": {
"description": "Error title when starring a message failed."
},
"errorUnstarMessageFailedTitle": "Не вдалося зняти позначку зірочки з повідомлення",
"errorUnstarMessageFailedTitle": "Не вдалося зняти позначку зірки з повідомлення",
"@errorUnstarMessageFailedTitle": {
"description": "Error title when unstarring a message failed."
},
Expand Down Expand Up @@ -157,7 +157,7 @@
"@permissionsDeniedReadExternalStorage": {
"description": "Message for dialog asking the user to grant permissions for external storage read access."
},
"actionSheetOptionStarMessage": "Позначити повідомлення зірочкою",
"actionSheetOptionStarMessage": "Вибрати повідомлення",
"@actionSheetOptionStarMessage": {
"description": "Label for star button on action sheet."
},
Expand Down Expand Up @@ -315,7 +315,7 @@
}
}
},
"composeBoxGroupDmContentHint": "Група повідомлень",
"composeBoxGroupDmContentHint": "Написати групі",
"@composeBoxGroupDmContentHint": {
"description": "Hint text for content input when sending a message to a group."
},
Expand Down Expand Up @@ -691,7 +691,7 @@
"@mentionsPageTitle": {
"description": "Page title for the 'Mentions' message view."
},
"starredMessagesPageTitle": "Повідомлення, позначені зірочкою",
"starredMessagesPageTitle": "Вибрані повідомлення",
"@starredMessagesPageTitle": {
"description": "Page title for the 'Starred messages' message view."
},
Expand Down Expand Up @@ -955,7 +955,7 @@
"@recentDmConversationsPageTitle": {
"description": "Title for the page with a list of DM conversations."
},
"combinedFeedPageTitle": "Комбінована стрічка",
"combinedFeedPageTitle": "Об'єднана стрічка",
"@combinedFeedPageTitle": {
"description": "Page title for the 'Combined feed' message view."
},
Expand Down
18 changes: 18 additions & 0 deletions lib/generated/l10n/zulip_localizations.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:intl/intl.dart' as intl;

import 'zulip_localizations_ar.dart';
import 'zulip_localizations_de.dart';
import 'zulip_localizations_en.dart';
import 'zulip_localizations_ja.dart';
import 'zulip_localizations_nb.dart';
Expand Down Expand Up @@ -102,6 +103,8 @@ abstract class ZulipLocalizations {
static const List<Locale> supportedLocales = <Locale>[
Locale('en'),
Locale('ar'),
Locale('de'),
Locale('en', 'GB'),
Locale('ja'),
Locale('nb'),
Locale('pl'),
Expand Down Expand Up @@ -1409,6 +1412,7 @@ class _ZulipLocalizationsDelegate
@override
bool isSupported(Locale locale) => <String>[
'ar',
'de',
'en',
'ja',
'nb',
Expand All @@ -1423,10 +1427,24 @@ class _ZulipLocalizationsDelegate
}

ZulipLocalizations lookupZulipLocalizations(Locale locale) {
// Lookup logic when language+country codes are specified.
switch (locale.languageCode) {
case 'en':
{
switch (locale.countryCode) {
case 'GB':
return ZulipLocalizationsEnGb();
}
break;
}
}

// Lookup logic when only language code is specified.
switch (locale.languageCode) {
case 'ar':
return ZulipLocalizationsAr();
case 'de':
return ZulipLocalizationsDe();
case 'en':
return ZulipLocalizationsEn();
case 'ja':
Expand Down
Loading