[mob][photos] Extract strings
This commit is contained in:
parent
36dbda895c
commit
f777bdba1b
4 changed files with 33 additions and 14 deletions
4
mobile/lib/generated/intl/messages_en.dart
generated
4
mobile/lib/generated/intl/messages_en.dart
generated
|
@ -358,6 +358,8 @@ class MessageLookup extends MessageLookupByLibrary {
|
|||
"authenticationSuccessful":
|
||||
MessageLookupByLibrary.simpleMessage("Authentication successful!"),
|
||||
"autoPair": MessageLookupByLibrary.simpleMessage("Auto pair"),
|
||||
"autoPairGoogle": MessageLookupByLibrary.simpleMessage(
|
||||
"Auto Pair requires connecting to Google servers and only works with Chromecast supported devices. Google will not receive sensitive data, such as your photos."),
|
||||
"available": MessageLookupByLibrary.simpleMessage("Available"),
|
||||
"backedUpFolders":
|
||||
MessageLookupByLibrary.simpleMessage("Backed up folders"),
|
||||
|
@ -903,6 +905,8 @@ class MessageLookup extends MessageLookupByLibrary {
|
|||
"manageParticipants": MessageLookupByLibrary.simpleMessage("Manage"),
|
||||
"manageSubscription":
|
||||
MessageLookupByLibrary.simpleMessage("Manage subscription"),
|
||||
"manualPairDesc": MessageLookupByLibrary.simpleMessage(
|
||||
"Pair with PIN works for any large screen device you want to play your album on."),
|
||||
"map": MessageLookupByLibrary.simpleMessage("Map"),
|
||||
"maps": MessageLookupByLibrary.simpleMessage("Maps"),
|
||||
"mastodon": MessageLookupByLibrary.simpleMessage("Mastodon"),
|
||||
|
|
20
mobile/lib/generated/l10n.dart
generated
20
mobile/lib/generated/l10n.dart
generated
|
@ -8583,6 +8583,26 @@ class S {
|
|||
args: [],
|
||||
);
|
||||
}
|
||||
|
||||
/// `Auto Pair requires connecting to Google servers and only works with Chromecast supported devices. Google will not receive sensitive data, such as your photos.`
|
||||
String get autoPairGoogle {
|
||||
return Intl.message(
|
||||
'Auto Pair requires connecting to Google servers and only works with Chromecast supported devices. Google will not receive sensitive data, such as your photos.',
|
||||
name: 'autoPairGoogle',
|
||||
desc: '',
|
||||
args: [],
|
||||
);
|
||||
}
|
||||
|
||||
/// `Pair with PIN works for any large screen device you want to play your album on.`
|
||||
String get manualPairDesc {
|
||||
return Intl.message(
|
||||
'Pair with PIN works for any large screen device you want to play your album on.',
|
||||
name: 'manualPairDesc',
|
||||
desc: '',
|
||||
args: [],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class AppLocalizationDelegate extends LocalizationsDelegate<S> {
|
||||
|
|
|
@ -1214,5 +1214,7 @@
|
|||
"endpointUpdatedMessage": "Endpoint updated successfully",
|
||||
"customEndpoint": "Connected to {endpoint}",
|
||||
"createCollaborativeLink": "Create collaborative link",
|
||||
"search": "Search"
|
||||
"search": "Search",
|
||||
"autoPairGoogle": "Auto Pair requires connecting to Google servers and only works with Chromecast supported devices. Google will not receive sensitive data, such as your photos.",
|
||||
"manualPairDesc": "Pair with PIN works for any large screen device you want to play your album on."
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
import "package:flutter/material.dart";
|
||||
import "package:photos/generated/l10n.dart";
|
||||
import "package:photos/service_locator.dart";
|
||||
import "package:photos/l10n/l10n.dart";
|
||||
import "package:photos/theme/ente_theme.dart";
|
||||
import "package:photos/ui/components/buttons/button_widget.dart";
|
||||
import "package:photos/ui/components/models/button_type.dart";
|
||||
|
@ -11,10 +11,10 @@ class CastChooseDialog extends StatefulWidget {
|
|||
}) : super(key: key) {}
|
||||
|
||||
@override
|
||||
State<CastChooseDialog> createState() => _AutoCastDialogState();
|
||||
State<CastChooseDialog> createState() => _CastChooseDialogState();
|
||||
}
|
||||
|
||||
class _AutoCastDialogState extends State<CastChooseDialog> {
|
||||
class _CastChooseDialogState extends State<CastChooseDialog> {
|
||||
final bool doesUserExist = true;
|
||||
|
||||
@override
|
||||
|
@ -22,7 +22,7 @@ class _AutoCastDialogState extends State<CastChooseDialog> {
|
|||
final textStyle = getEnteTextTheme(context);
|
||||
final AlertDialog alert = AlertDialog(
|
||||
title: Text(
|
||||
"Play album on TV",
|
||||
context.l10n.playOnTv,
|
||||
style: textStyle.largeBold,
|
||||
),
|
||||
content: Column(
|
||||
|
@ -31,7 +31,7 @@ class _AutoCastDialogState extends State<CastChooseDialog> {
|
|||
children: [
|
||||
const SizedBox(height: 8),
|
||||
Text(
|
||||
"Auto Pair requires connecting to Google servers and only works with Chromecast supported devices. Google will not receive sensitive data, such as your photos.",
|
||||
S.of(context).autoPairGoogle,
|
||||
style: textStyle.bodyMuted,
|
||||
),
|
||||
const SizedBox(height: 12),
|
||||
|
@ -50,7 +50,7 @@ class _AutoCastDialogState extends State<CastChooseDialog> {
|
|||
),
|
||||
const SizedBox(height: 36),
|
||||
Text(
|
||||
"Pair with PIN works for any large screen device you want to play your album on.",
|
||||
S.of(context).manualPairDesc,
|
||||
style: textStyle.bodyMuted,
|
||||
),
|
||||
const SizedBox(height: 12),
|
||||
|
@ -73,11 +73,4 @@ class _AutoCastDialogState extends State<CastChooseDialog> {
|
|||
);
|
||||
return alert;
|
||||
}
|
||||
|
||||
Future<void> _connectToYourApp(
|
||||
BuildContext context,
|
||||
Object castDevice,
|
||||
) async {
|
||||
await castService.connectDevice(context, castDevice);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue