Skip to content

Commit ebca30f

Browse files
weblateAshutoshKhadse23
authored andcommitted
l10n: Update translations from Weblate.
1 parent 6ff20f6 commit ebca30f

File tree

5 files changed

+126
-190
lines changed

5 files changed

+126
-190
lines changed

assets/l10n/app_ru.arb

+3
Original file line numberDiff line numberDiff line change
@@ -976,6 +976,7 @@
976976
"wildcardMentionAllDmDescription": "Оповестить получателей",
977977
"@wildcardMentionAllDmDescription": {
978978
"description": "Description for \"@all\" and \"@everyone\" wildcard-mention autocomplete options when writing a DM message."
979+
<<<<<<< HEAD
979980
},
980981
"errorServerVersionUnsupportedMessage": "{url} использует Zulip Server {zulipVersion}, который не поддерживается. Минимальная поддерживаемая версия — Zulip Server {minSupportedZulipVersion}.",
981982
"@errorServerVersionUnsupportedMessage": {
@@ -1006,5 +1007,7 @@
10061007
"experimentalFeatureSettingsWarning": "Эти параметры включают функции, которые все еще находятся в стадии разработки и не готовы. Они могут не работать и вызывать проблемы в других местах приложения.\n\nЦель этих настроек — экспериментирование людьми, работающими над разработкой Zulip.",
10071008
"@experimentalFeatureSettingsWarning": {
10081009
"description": "Warning text on settings page for experimental, in-development features"
1010+
=======
1011+
>>>>>>> 22bb6120 (l10n: Update translations from Weblate.)
10091012
}
10101013
}

lib/generated/l10n/zulip_localizations.dart

+25-61
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import 'zulip_localizations_nb.dart';
1212
import 'zulip_localizations_pl.dart';
1313
import 'zulip_localizations_ru.dart';
1414
import 'zulip_localizations_sk.dart';
15-
import 'zulip_localizations_uk.dart';
1615

1716
// ignore_for_file: type=lint
1817

@@ -68,17 +67,15 @@ import 'zulip_localizations_uk.dart';
6867
/// be consistent with the languages listed in the ZulipLocalizations.supportedLocales
6968
/// property.
7069
abstract class ZulipLocalizations {
71-
ZulipLocalizations(String locale)
72-
: localeName = intl.Intl.canonicalizedLocale(locale.toString());
70+
ZulipLocalizations(String locale) : localeName = intl.Intl.canonicalizedLocale(locale.toString());
7371

7472
final String localeName;
7573

7674
static ZulipLocalizations of(BuildContext context) {
7775
return Localizations.of<ZulipLocalizations>(context, ZulipLocalizations)!;
7876
}
7977

80-
static const LocalizationsDelegate<ZulipLocalizations> delegate =
81-
_ZulipLocalizationsDelegate();
78+
static const LocalizationsDelegate<ZulipLocalizations> delegate = _ZulipLocalizationsDelegate();
8279

8380
/// A list of this localizations delegate along with the default localizations
8481
/// delegates.
@@ -90,13 +87,12 @@ abstract class ZulipLocalizations {
9087
/// Additional delegates can be added by appending to this list in
9188
/// MaterialApp. This list does not have to be used at all if a custom list
9289
/// of delegates is preferred or required.
93-
static const List<LocalizationsDelegate<dynamic>> localizationsDelegates =
94-
<LocalizationsDelegate<dynamic>>[
95-
delegate,
96-
GlobalMaterialLocalizations.delegate,
97-
GlobalCupertinoLocalizations.delegate,
98-
GlobalWidgetsLocalizations.delegate,
99-
];
90+
static const List<LocalizationsDelegate<dynamic>> localizationsDelegates = <LocalizationsDelegate<dynamic>>[
91+
delegate,
92+
GlobalMaterialLocalizations.delegate,
93+
GlobalCupertinoLocalizations.delegate,
94+
GlobalWidgetsLocalizations.delegate,
95+
];
10096

10197
/// A list of this localizations delegate's supported locales.
10298
static const List<Locale> supportedLocales = <Locale>[
@@ -106,8 +102,7 @@ abstract class ZulipLocalizations {
106102
Locale('nb'),
107103
Locale('pl'),
108104
Locale('ru'),
109-
Locale('sk'),
110-
Locale('uk'),
105+
Locale('sk')
111106
];
112107

113108
/// Title for About Zulip page.
@@ -384,11 +379,7 @@ abstract class ZulipLocalizations {
384379
///
385380
/// In en, this message translates to:
386381
/// **'{num, plural, =1{File is} other{{num} files are}} larger than the server\'s limit of {maxFileUploadSizeMib} MiB and will not be uploaded:\n\n{listMessage}'**
387-
String errorFilesTooLarge(
388-
int num,
389-
int maxFileUploadSizeMib,
390-
String listMessage,
391-
);
382+
String errorFilesTooLarge(int num, int maxFileUploadSizeMib, String listMessage);
392383

393384
/// Error title when attached files are too large in size.
394385
///
@@ -466,11 +457,7 @@ abstract class ZulipLocalizations {
466457
///
467458
/// In en, this message translates to:
468459
/// **'Error handling a Zulip event from {serverUrl}; will retry.\n\nError: {error}\n\nEvent: {event}'**
469-
String errorHandlingEventDetails(
470-
String serverUrl,
471-
String error,
472-
String event,
473-
);
460+
String errorHandlingEventDetails(String serverUrl, String error, String event);
474461

475462
/// Error title when opening a link failed.
476463
///
@@ -842,11 +829,7 @@ abstract class ZulipLocalizations {
842829
///
843830
/// In en, this message translates to:
844831
/// **'{url} is running Zulip Server {zulipVersion}, which is unsupported. The minimum supported version is Zulip Server {minSupportedZulipVersion}.'**
845-
String errorServerVersionUnsupportedMessage(
846-
String url,
847-
String zulipVersion,
848-
String minSupportedZulipVersion,
849-
);
832+
String errorServerVersionUnsupportedMessage(String url, String zulipVersion, String minSupportedZulipVersion);
850833

851834
/// Error message in the dialog for invalid API key.
852835
///
@@ -1305,58 +1288,39 @@ abstract class ZulipLocalizations {
13051288
String get zulipAppTitle;
13061289
}
13071290

1308-
class _ZulipLocalizationsDelegate
1309-
extends LocalizationsDelegate<ZulipLocalizations> {
1291+
class _ZulipLocalizationsDelegate extends LocalizationsDelegate<ZulipLocalizations> {
13101292
const _ZulipLocalizationsDelegate();
13111293

13121294
@override
13131295
Future<ZulipLocalizations> load(Locale locale) {
1314-
return SynchronousFuture<ZulipLocalizations>(
1315-
lookupZulipLocalizations(locale),
1316-
);
1296+
return SynchronousFuture<ZulipLocalizations>(lookupZulipLocalizations(locale));
13171297
}
13181298

13191299
@override
1320-
bool isSupported(Locale locale) => <String>[
1321-
'ar',
1322-
'en',
1323-
'ja',
1324-
'nb',
1325-
'pl',
1326-
'ru',
1327-
'sk',
1328-
'uk',
1329-
].contains(locale.languageCode);
1300+
bool isSupported(Locale locale) => <String>['ar', 'en', 'ja', 'nb', 'pl', 'ru', 'sk'].contains(locale.languageCode);
13301301

13311302
@override
13321303
bool shouldReload(_ZulipLocalizationsDelegate old) => false;
13331304
}
13341305

13351306
ZulipLocalizations lookupZulipLocalizations(Locale locale) {
1307+
1308+
13361309
// Lookup logic when only language code is specified.
13371310
switch (locale.languageCode) {
1338-
case 'ar':
1339-
return ZulipLocalizationsAr();
1340-
case 'en':
1341-
return ZulipLocalizationsEn();
1342-
case 'ja':
1343-
return ZulipLocalizationsJa();
1344-
case 'nb':
1345-
return ZulipLocalizationsNb();
1346-
case 'pl':
1347-
return ZulipLocalizationsPl();
1348-
case 'ru':
1349-
return ZulipLocalizationsRu();
1350-
case 'sk':
1351-
return ZulipLocalizationsSk();
1352-
case 'uk':
1353-
return ZulipLocalizationsUk();
1311+
case 'ar': return ZulipLocalizationsAr();
1312+
case 'en': return ZulipLocalizationsEn();
1313+
case 'ja': return ZulipLocalizationsJa();
1314+
case 'nb': return ZulipLocalizationsNb();
1315+
case 'pl': return ZulipLocalizationsPl();
1316+
case 'ru': return ZulipLocalizationsRu();
1317+
case 'sk': return ZulipLocalizationsSk();
13541318
}
13551319

13561320
throw FlutterError(
13571321
'ZulipLocalizations.delegate failed to load unsupported locale "$locale". This is likely '
13581322
'an issue with the localizations generation tool. Please file an issue '
13591323
'on GitHub with a reproducible sample app and the gen-l10n configuration '
1360-
'that was used.',
1324+
'that was used.'
13611325
);
13621326
}

0 commit comments

Comments
 (0)