From 27973b378d1f8a1da88e29aaf6de09325d4be8e0 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Thu, 20 Apr 2023 16:09:14 +0200 Subject: [PATCH] neon: Fix localizations formatting --- .../neon/neon/lib/l10n/localizations.dart | 19 +++++++------------ .../neon/neon/lib/l10n/localizations_en.dart | 15 ++++++++++----- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/packages/neon/neon/lib/l10n/localizations.dart b/packages/neon/neon/lib/l10n/localizations.dart index 24f665fa..71ceaab7 100644 --- a/packages/neon/neon/lib/l10n/localizations.dart +++ b/packages/neon/neon/lib/l10n/localizations.dart @@ -87,9 +87,7 @@ abstract class AppLocalizations { ]; /// A list of this localizations delegate's supported locales. - static const List supportedLocales = [ - Locale('en') - ]; + static const List supportedLocales = [Locale('en')]; /// No description provided for @appImplementationName. /// @@ -1200,17 +1198,14 @@ class _AppLocalizationsDelegate extends LocalizationsDelegate } AppLocalizations lookupAppLocalizations(Locale locale) { - - // Lookup logic when only language code is specified. switch (locale.languageCode) { - case 'en': return AppLocalizationsEn(); + case 'en': + return AppLocalizationsEn(); } - throw FlutterError( - 'AppLocalizations.delegate failed to load unsupported locale "$locale". This is likely ' - 'an issue with the localizations generation tool. Please file an issue ' - 'on GitHub with a reproducible sample app and the gen-l10n configuration ' - 'that was used.' - ); + throw FlutterError('AppLocalizations.delegate failed to load unsupported locale "$locale". This is likely ' + 'an issue with the localizations generation tool. Please file an issue ' + 'on GitHub with a reproducible sample app and the gen-l10n configuration ' + 'that was used.'); } diff --git a/packages/neon/neon/lib/l10n/localizations_en.dart b/packages/neon/neon/lib/l10n/localizations_en.dart index 58506ceb..d120be57 100644 --- a/packages/neon/neon/lib/l10n/localizations_en.dart +++ b/packages/neon/neon/lib/l10n/localizations_en.dart @@ -42,7 +42,8 @@ class AppLocalizationsEn extends AppLocalizations { String get errorCredentialsForAccountNoLongerMatch => 'The credentials for this account no longer match'; @override - String get errorServerHadAProblemProcessingYourRequest => 'The server had a problem while processing your request. You might want to try again'; + String get errorServerHadAProblemProcessingYourRequest => + 'The server had a problem while processing your request. You might want to try again'; @override String get errorSomethingWentWrongTryAgainLater => 'Something went wrong. Please try again later'; @@ -59,10 +60,12 @@ class AppLocalizationsEn extends AppLocalizations { String get errorConnectionTimedOut => 'Connection has timed out'; @override - String get errorNoCompatibleNextcloudAppsFound => 'No compatible Nextcloud apps could be found.\nWe are working hard to implement more and more apps!'; + String get errorNoCompatibleNextcloudAppsFound => + 'No compatible Nextcloud apps could be found.\nWe are working hard to implement more and more apps!'; @override - String get errorServerInMaintenanceMode => 'The server is in maintenance mode. Please try again later or contact the server admin.'; + String get errorServerInMaintenanceMode => + 'The server is in maintenance mode. Please try again later or contact the server admin.'; @override String errorMissingPermission(String name) { @@ -123,7 +126,8 @@ class AppLocalizationsEn extends AppLocalizations { String get nextPushSupported => 'NextPush is supported!'; @override - String get nextPushSupportedText => 'NextPush is a FOSS way of receiving push notifications using the UnifiedPush protocol via a Nextcloud instance.\nYou can install NextPush from the F-Droid app store.'; + String get nextPushSupportedText => + 'NextPush is a FOSS way of receiving push notifications using the UnifiedPush protocol via a Nextcloud instance.\nYou can install NextPush from the F-Droid app store.'; @override String get nextPushSupportedInstall => 'Install NextPush'; @@ -203,7 +207,8 @@ class AppLocalizationsEn extends AppLocalizations { String get globalOptionsPushNotificationsEnabled => 'Enabled'; @override - String get globalOptionsPushNotificationsEnabledDisabledNotice => 'No UnifiedPush distributor could be found or you denied the permission for showing notifications. Please go to the app settings and allow notifications and go to https://unifiedpush.org/users/distributors and setup any of the listed distributors. Then re-open this app and you should be able to enable notifications'; + String get globalOptionsPushNotificationsEnabledDisabledNotice => + 'No UnifiedPush distributor could be found or you denied the permission for showing notifications. Please go to the app settings and allow notifications and go to https://unifiedpush.org/users/distributors and setup any of the listed distributors. Then re-open this app and you should be able to enable notifications'; @override String get globalOptionsPushNotificationsDistributor => 'UnifiedPush Distributor';