Browse Source

neon: Fix localizations formatting

pull/266/head
jld3103 2 years ago
parent
commit
27973b378d
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 15
      packages/neon/neon/lib/l10n/localizations.dart
  2. 15
      packages/neon/neon/lib/l10n/localizations_en.dart

15
packages/neon/neon/lib/l10n/localizations.dart

@ -87,9 +87,7 @@ abstract class AppLocalizations {
]; ];
/// A list of this localizations delegate's supported locales. /// A list of this localizations delegate's supported locales.
static const List<Locale> supportedLocales = <Locale>[ static const List<Locale> supportedLocales = <Locale>[Locale('en')];
Locale('en')
];
/// No description provided for @appImplementationName. /// No description provided for @appImplementationName.
/// ///
@ -1200,17 +1198,14 @@ class _AppLocalizationsDelegate extends LocalizationsDelegate<AppLocalizations>
} }
AppLocalizations lookupAppLocalizations(Locale locale) { AppLocalizations lookupAppLocalizations(Locale locale) {
// Lookup logic when only language code is specified. // Lookup logic when only language code is specified.
switch (locale.languageCode) { switch (locale.languageCode) {
case 'en': return AppLocalizationsEn(); case 'en':
return AppLocalizationsEn();
} }
throw FlutterError( throw FlutterError('AppLocalizations.delegate failed to load unsupported locale "$locale". This is likely '
'AppLocalizations.delegate failed to load unsupported locale "$locale". This is likely '
'an issue with the localizations generation tool. Please file an issue ' 'an issue with the localizations generation tool. Please file an issue '
'on GitHub with a reproducible sample app and the gen-l10n configuration ' 'on GitHub with a reproducible sample app and the gen-l10n configuration '
'that was used.' 'that was used.');
);
} }

15
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'; String get errorCredentialsForAccountNoLongerMatch => 'The credentials for this account no longer match';
@override @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 @override
String get errorSomethingWentWrongTryAgainLater => 'Something went wrong. Please try again later'; 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'; String get errorConnectionTimedOut => 'Connection has timed out';
@override @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 @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 @override
String errorMissingPermission(String name) { String errorMissingPermission(String name) {
@ -123,7 +126,8 @@ class AppLocalizationsEn extends AppLocalizations {
String get nextPushSupported => 'NextPush is supported!'; String get nextPushSupported => 'NextPush is supported!';
@override @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 @override
String get nextPushSupportedInstall => 'Install NextPush'; String get nextPushSupportedInstall => 'Install NextPush';
@ -203,7 +207,8 @@ class AppLocalizationsEn extends AppLocalizations {
String get globalOptionsPushNotificationsEnabled => 'Enabled'; String get globalOptionsPushNotificationsEnabled => 'Enabled';
@override @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 @override
String get globalOptionsPushNotificationsDistributor => 'UnifiedPush Distributor'; String get globalOptionsPushNotificationsDistributor => 'UnifiedPush Distributor';

Loading…
Cancel
Save