Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob][photos] Extract strings

Neeraj Guptaf777bdba1b09
diff --git a/mobile/lib/generated/intl/messages_en.dart b/mobile/lib/generated/intl/messages_en.dart
index 4de38ce120..5c5a9fd4c6 100644
--- a/mobile/lib/generated/intl/messages_en.dart
+++ b/mobile/lib/generated/intl/messages_en.dart
@@ -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"),
diff --git a/mobile/lib/generated/l10n.dart b/mobile/lib/generated/l10n.dart
index 7f5dc96144..7af032ce1e 100644
--- a/mobile/lib/generated/l10n.dart
+++ b/mobile/lib/generated/l10n.dart
@@ -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> {
diff --git a/mobile/lib/l10n/intl_en.arb b/mobile/lib/l10n/intl_en.arb
index ee00499357..0404e33f0f 100644
--- a/mobile/lib/l10n/intl_en.arb
+++ b/mobile/lib/l10n/intl_en.arb
@@ -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."
}
\ No newline at end of file
diff --git a/mobile/lib/ui/cast/choose.dart b/mobile/lib/ui/cast/choose.dart
index 0b82ea299e..f3ab39a628 100644
--- a/mobile/lib/ui/cast/choose.dart
+++ b/mobile/lib/ui/cast/choose.dart
@@ -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);
- }
}