ソースを参照

Extract strings

Neeraj Gupta 1 年間 前
コミット
e64bfafa8f

+ 2 - 0
lib/generated/intl/messages_en.dart

@@ -554,6 +554,8 @@ class MessageLookup extends MessageLookupByLibrary {
         "details": MessageLookupByLibrary.simpleMessage("Details"),
         "details": MessageLookupByLibrary.simpleMessage("Details"),
         "devAccountChanged": MessageLookupByLibrary.simpleMessage(
         "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."),
             "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(
         "deviceFilesAutoUploading": MessageLookupByLibrary.simpleMessage(
             "Files added to this device album will automatically get uploaded to ente."),
             "Files added to this device album will automatically get uploaded to ente."),
         "deviceLockExplanation": MessageLookupByLibrary.simpleMessage(
         "deviceLockExplanation": MessageLookupByLibrary.simpleMessage(

+ 10 - 0
lib/generated/l10n.dart

@@ -8347,6 +8347,16 @@ class S {
       args: [],
       args: [],
     );
     );
   }
   }
+
+  /// `Enter the code`
+  String get deviceCodeHint {
+    return Intl.message(
+      'Enter the code',
+      name: 'deviceCodeHint',
+      desc: '',
+      args: [],
+    );
+  }
 }
 }
 
 
 class AppLocalizationDelegate extends LocalizationsDelegate<S> {
 class AppLocalizationDelegate extends LocalizationsDelegate<S> {

+ 2 - 1
lib/l10n/intl_en.arb

@@ -1191,5 +1191,6 @@
   "playOnTv": "Play album on TV",
   "playOnTv": "Play album on TV",
   "pair": "Pair",
   "pair": "Pair",
   "deviceNotFound": "Device not found",
   "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"
 }
 }

+ 1 - 1
lib/ui/viewer/gallery/gallery_app_bar_widget.dart

@@ -832,7 +832,7 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {
       body: S.of(context).castInstruction,
       body: S.of(context).castInstruction,
       submitButtonLabel: S.of(context).pair,
       submitButtonLabel: S.of(context).pair,
       textInputType: TextInputType.streetAddress,
       textInputType: TextInputType.streetAddress,
-      hintText: "Enter the code",
+      hintText: context.l10n.deviceCodeHint,
       onSubmit: (String text) async {
       onSubmit: (String text) async {
         try {
         try {
           String code = text.trim();
           String code = text.trim();