Kaynağa Gözat

l10n: extract fixed notification strings

Neeraj Gupta 2 yıl önce
ebeveyn
işleme
248b3fbb7e

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

@@ -547,6 +547,7 @@ class MessageLookup extends MessageLookupByLibrary {
             MessageLookupByLibrary.simpleMessage("Privacy Policy"),
         "publicLinkEnabled":
             MessageLookupByLibrary.simpleMessage("Public link enabled"),
+        "rateTheApp": MessageLookupByLibrary.simpleMessage("Rate the app"),
         "rateUs": MessageLookupByLibrary.simpleMessage("Rate us"),
         "rateUsOnStore": m17,
         "recover": MessageLookupByLibrary.simpleMessage("Recover"),

+ 10 - 0
lib/generated/l10n.dart

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

+ 2 - 1
lib/l10n/intl_en.arb

@@ -638,5 +638,6 @@
   },
   "leaveFamily": "Leave family",
   "areYouSureThatYouWantToLeaveTheFamily": "Are you sure that you want to leave the family plan?",
-  "leave": "Leave"
+  "leave": "Leave",
+  "rateTheApp": "Rate the app"
 }

+ 3 - 2
lib/ui/notification/update/change_log_page.dart

@@ -1,6 +1,7 @@
 import "dart:io";
 
 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/components/buttons/button_widget.dart';
@@ -67,7 +68,7 @@ class _ChangeLogPageState extends State<ChangeLogPage> {
                     ButtonWidget(
                       buttonType: ButtonType.trailingIconPrimary,
                       buttonSize: ButtonSize.large,
-                      labelText: "Continue",
+                      labelText: S.of(context).continueLabel,
                       icon: Icons.arrow_forward_outlined,
                       onTap: () async {
                         await UpdateService.instance.hideChangeLog();
@@ -82,7 +83,7 @@ class _ChangeLogPageState extends State<ChangeLogPage> {
                     ButtonWidget(
                       buttonType: ButtonType.trailingIconSecondary,
                       buttonSize: ButtonSize.large,
-                      labelText: "Rate the app",
+                      labelText: S.of(context).rateTheApp,
                       icon: Icons.favorite_rounded,
                       iconColor: enteColorScheme.primary500,
                       onTap: () async {