Skip to content

armgit / ente

Public Imported from GitHub
0

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

Extract strings

Neeraj Guptae64bfafa8f89
diff --git a/lib/generated/intl/messages_en.dart b/lib/generated/intl/messages_en.dart
index c764a611e8..7ba410d237 100644
--- a/lib/generated/intl/messages_en.dart
+++ b/lib/generated/intl/messages_en.dart
@@ -554,6 +554,8 @@ class MessageLookup extends MessageLookupByLibrary {
"details": MessageLookupByLibrary.simpleMessage("Details"),
"devAccountChanged": MessageLookupByLibrary.simpleMessage(
"The developer account we use to publish ente on App Store has changed. Because of this, you will need to login again.\n\nOur apologies for the inconvenience, but this was unavoidable."),
+ "deviceCodeHint":
+ MessageLookupByLibrary.simpleMessage("Enter the code"),
"deviceFilesAutoUploading": MessageLookupByLibrary.simpleMessage(
"Files added to this device album will automatically get uploaded to ente."),
"deviceLockExplanation": MessageLookupByLibrary.simpleMessage(
diff --git a/lib/generated/l10n.dart b/lib/generated/l10n.dart
index 65a3fe6ba2..77b5fa8fb0 100644
--- a/lib/generated/l10n.dart
+++ b/lib/generated/l10n.dart
@@ -8347,6 +8347,16 @@ class S {
args: [],
);
}
+
+ /// `Enter the code`
+ String get deviceCodeHint {
+ return Intl.message(
+ 'Enter the code',
+ name: 'deviceCodeHint',
+ desc: '',
+ args: [],
+ );
+ }
}
class AppLocalizationDelegate extends LocalizationsDelegate<S> {
diff --git a/lib/l10n/intl_en.arb b/lib/l10n/intl_en.arb
index ee02cb26b1..f133f8f8fd 100644
--- a/lib/l10n/intl_en.arb
+++ b/lib/l10n/intl_en.arb
@@ -1191,5 +1191,6 @@
"playOnTv": "Play album on TV",
"pair": "Pair",
"deviceNotFound": "Device not found",
- "castInstruction": "Visit cast.ente.io on the device you want to pair.\n\nEnter the code below to play the album on your TV."
+ "castInstruction": "Visit cast.ente.io on the device you want to pair.\n\nEnter the code below to play the album on your TV.",
+ "deviceCodeHint": "Enter the code"
}
diff --git a/lib/ui/viewer/gallery/gallery_app_bar_widget.dart b/lib/ui/viewer/gallery/gallery_app_bar_widget.dart
index c07fac6b91..ab1b15e04f 100644
--- a/lib/ui/viewer/gallery/gallery_app_bar_widget.dart
+++ b/lib/ui/viewer/gallery/gallery_app_bar_widget.dart
@@ -832,7 +832,7 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {
body: S.of(context).castInstruction,
submitButtonLabel: S.of(context).pair,
textInputType: TextInputType.streetAddress,
- hintText: "Enter the code",
+ hintText: context.l10n.deviceCodeHint,
onSubmit: (String text) async {
try {
String code = text.trim();