l10n: extract AboutSectionWidget strings
This commit is contained in:
parent
30f6957d9e
commit
bed799128a
|
@ -98,6 +98,7 @@ class MessageLookup extends MessageLookupByLibrary {
|
|||
|
||||
final messages = _notInlinedMessages(_notInlinedMessages);
|
||||
static Map<String, Function> _notInlinedMessages(_) => <String, Function>{
|
||||
"about": MessageLookupByLibrary.simpleMessage("About"),
|
||||
"accountWelcomeBack":
|
||||
MessageLookupByLibrary.simpleMessage("Welcome back!"),
|
||||
"ackPasswordLostWarningPart1": MessageLookupByLibrary.simpleMessage(
|
||||
|
@ -153,8 +154,11 @@ class MessageLookup extends MessageLookupByLibrary {
|
|||
MessageLookupByLibrary.simpleMessage("Change password"),
|
||||
"changePermissions":
|
||||
MessageLookupByLibrary.simpleMessage("Change permissions?"),
|
||||
"checkForUpdates":
|
||||
MessageLookupByLibrary.simpleMessage("Check for updates"),
|
||||
"checkInboxAndSpamFolder": MessageLookupByLibrary.simpleMessage(
|
||||
"Please check your inbox (and spam) to complete verification"),
|
||||
"checking": MessageLookupByLibrary.simpleMessage("Checking..."),
|
||||
"claimFreeStorage":
|
||||
MessageLookupByLibrary.simpleMessage("Claim free storage"),
|
||||
"claimMore": MessageLookupByLibrary.simpleMessage("Claim more!"),
|
||||
|
@ -381,6 +385,7 @@ class MessageLookup extends MessageLookupByLibrary {
|
|||
"pleaseTryAgain":
|
||||
MessageLookupByLibrary.simpleMessage("Please try again"),
|
||||
"pleaseWait": MessageLookupByLibrary.simpleMessage("Please wait..."),
|
||||
"privacy": MessageLookupByLibrary.simpleMessage("Privacy"),
|
||||
"privacyPolicy": MessageLookupByLibrary.simpleMessage("privacy policy"),
|
||||
"privacyPolicyTitle":
|
||||
MessageLookupByLibrary.simpleMessage("Privacy Policy"),
|
||||
|
@ -504,6 +509,7 @@ class MessageLookup extends MessageLookupByLibrary {
|
|||
"terminate": MessageLookupByLibrary.simpleMessage("Terminate"),
|
||||
"terminateSession":
|
||||
MessageLookupByLibrary.simpleMessage("Terminate session?"),
|
||||
"terms": MessageLookupByLibrary.simpleMessage("Terms"),
|
||||
"termsAgreePart1":
|
||||
MessageLookupByLibrary.simpleMessage("I agree to the "),
|
||||
"termsOfService":
|
||||
|
@ -550,6 +556,8 @@ class MessageLookup extends MessageLookupByLibrary {
|
|||
"viewRecoveryKey":
|
||||
MessageLookupByLibrary.simpleMessage("View recovery key"),
|
||||
"viewer": MessageLookupByLibrary.simpleMessage("Viewer"),
|
||||
"weAreOpenSource":
|
||||
MessageLookupByLibrary.simpleMessage("We are open source!"),
|
||||
"weakStrength": MessageLookupByLibrary.simpleMessage("Weak"),
|
||||
"welcomeBack": MessageLookupByLibrary.simpleMessage("Welcome back!"),
|
||||
"weveSentAMailTo":
|
||||
|
@ -559,6 +567,8 @@ class MessageLookup extends MessageLookupByLibrary {
|
|||
"yesDelete": MessageLookupByLibrary.simpleMessage("Yes, delete"),
|
||||
"yesRemove": MessageLookupByLibrary.simpleMessage("Yes, remove"),
|
||||
"you": MessageLookupByLibrary.simpleMessage("You"),
|
||||
"youAreOnTheLatestVersion": MessageLookupByLibrary.simpleMessage(
|
||||
"You are on the latest version"),
|
||||
"youCanAtMaxDoubleYourStorage": MessageLookupByLibrary.simpleMessage(
|
||||
"* You can at max double your storage"),
|
||||
"youCannotShareWithYourself": MessageLookupByLibrary.simpleMessage(
|
||||
|
|
|
@ -3035,6 +3035,76 @@ class S {
|
|||
args: [],
|
||||
);
|
||||
}
|
||||
|
||||
/// `About`
|
||||
String get about {
|
||||
return Intl.message(
|
||||
'About',
|
||||
name: 'about',
|
||||
desc: '',
|
||||
args: [],
|
||||
);
|
||||
}
|
||||
|
||||
/// `We are open source!`
|
||||
String get weAreOpenSource {
|
||||
return Intl.message(
|
||||
'We are open source!',
|
||||
name: 'weAreOpenSource',
|
||||
desc: '',
|
||||
args: [],
|
||||
);
|
||||
}
|
||||
|
||||
/// `Privacy`
|
||||
String get privacy {
|
||||
return Intl.message(
|
||||
'Privacy',
|
||||
name: 'privacy',
|
||||
desc: '',
|
||||
args: [],
|
||||
);
|
||||
}
|
||||
|
||||
/// `Terms`
|
||||
String get terms {
|
||||
return Intl.message(
|
||||
'Terms',
|
||||
name: 'terms',
|
||||
desc: '',
|
||||
args: [],
|
||||
);
|
||||
}
|
||||
|
||||
/// `Check for updates`
|
||||
String get checkForUpdates {
|
||||
return Intl.message(
|
||||
'Check for updates',
|
||||
name: 'checkForUpdates',
|
||||
desc: '',
|
||||
args: [],
|
||||
);
|
||||
}
|
||||
|
||||
/// `Checking...`
|
||||
String get checking {
|
||||
return Intl.message(
|
||||
'Checking...',
|
||||
name: 'checking',
|
||||
desc: '',
|
||||
args: [],
|
||||
);
|
||||
}
|
||||
|
||||
/// `You are on the latest version`
|
||||
String get youAreOnTheLatestVersion {
|
||||
return Intl.message(
|
||||
'You are on the latest version',
|
||||
name: 'youAreOnTheLatestVersion',
|
||||
desc: '',
|
||||
args: [],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class AppLocalizationDelegate extends LocalizationsDelegate<S> {
|
||||
|
|
|
@ -438,5 +438,12 @@
|
|||
"backupOverMobileData": "Backup over mobile data",
|
||||
"backupVideos": "Backup videos",
|
||||
"disableAutoLock": "Disable auto lock",
|
||||
"deviceLockExplanation": "Disable the device screen lock when ente is in the foreground and there is a backup in progress. This is normally not needed, but may help big uploads and initial imports of large libraries complete faster."
|
||||
"deviceLockExplanation": "Disable the device screen lock when ente is in the foreground and there is a backup in progress. This is normally not needed, but may help big uploads and initial imports of large libraries complete faster.",
|
||||
"about": "About",
|
||||
"weAreOpenSource": "We are open source!",
|
||||
"privacy": "Privacy",
|
||||
"terms": "Terms",
|
||||
"checkForUpdates": "Check for updates",
|
||||
"checking": "Checking...",
|
||||
"youAreOnTheLatestVersion": "You are on the latest version"
|
||||
}
|
|
@ -1,4 +1,5 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import "package:photos/generated/l10n.dart";
|
||||
import 'package:photos/services/update_service.dart';
|
||||
import 'package:photos/theme/ente_theme.dart';
|
||||
import 'package:photos/ui/common/web_page.dart';
|
||||
|
@ -17,7 +18,7 @@ class AboutSectionWidget extends StatelessWidget {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return ExpandableMenuItemWidget(
|
||||
title: "About",
|
||||
title: S.of(context).about,
|
||||
selectionOptionsWidget: _getSectionOptions(context),
|
||||
leadingIcon: Icons.info_outline,
|
||||
);
|
||||
|
@ -28,8 +29,8 @@ class AboutSectionWidget extends StatelessWidget {
|
|||
children: [
|
||||
sectionOptionSpacing,
|
||||
MenuItemWidget(
|
||||
captionedTextWidget: const CaptionedTextWidget(
|
||||
title: "We are open source!",
|
||||
captionedTextWidget: CaptionedTextWidget(
|
||||
title: S.of(context).weAreOpenSource,
|
||||
),
|
||||
pressedColor: getEnteColorScheme(context).fillFaint,
|
||||
trailingIcon: Icons.chevron_right_outlined,
|
||||
|
@ -39,13 +40,13 @@ class AboutSectionWidget extends StatelessWidget {
|
|||
},
|
||||
),
|
||||
sectionOptionSpacing,
|
||||
const AboutMenuItemWidget(
|
||||
title: "Privacy",
|
||||
AboutMenuItemWidget(
|
||||
title: S.of(context).privacy,
|
||||
url: "https://ente.io/privacy",
|
||||
),
|
||||
sectionOptionSpacing,
|
||||
const AboutMenuItemWidget(
|
||||
title: "Terms",
|
||||
AboutMenuItemWidget(
|
||||
title: S.of(context).termsOfServicesTitle,
|
||||
url: "https://ente.io/terms",
|
||||
),
|
||||
sectionOptionSpacing,
|
||||
|
@ -53,15 +54,15 @@ class AboutSectionWidget extends StatelessWidget {
|
|||
? Column(
|
||||
children: [
|
||||
MenuItemWidget(
|
||||
captionedTextWidget: const CaptionedTextWidget(
|
||||
title: "Check for updates",
|
||||
captionedTextWidget: CaptionedTextWidget(
|
||||
title: S.of(context).checkForUpdates,
|
||||
),
|
||||
pressedColor: getEnteColorScheme(context).fillFaint,
|
||||
trailingIcon: Icons.chevron_right_outlined,
|
||||
trailingIconIsMuted: true,
|
||||
onTap: () async {
|
||||
final dialog =
|
||||
createProgressDialog(context, "Checking...");
|
||||
createProgressDialog(context, S.of(context).checking);
|
||||
await dialog.show();
|
||||
final shouldUpdate =
|
||||
await UpdateService.instance.shouldUpdate();
|
||||
|
@ -79,7 +80,7 @@ class AboutSectionWidget extends StatelessWidget {
|
|||
} else {
|
||||
showShortToast(
|
||||
context,
|
||||
"You are on the latest version",
|
||||
S.of(context).youAreOnTheLatestVersion,
|
||||
);
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue