Browse Source

Extracted string

Neeraj Gupta 2 years ago
parent
commit
fb3d2dae74

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

@@ -884,6 +884,7 @@ class MessageLookup extends MessageLookupByLibrary {
                 "Photos added by you will be removed from the album"),
         "pickCenterPoint":
             MessageLookupByLibrary.simpleMessage("Pick center point"),
+        "pinAlbum": MessageLookupByLibrary.simpleMessage("Pin album"),
         "playStoreFreeTrialValidTill": m65,
         "playstoreSubscription":
             MessageLookupByLibrary.simpleMessage("PlayStore subscription"),
@@ -1243,6 +1244,7 @@ class MessageLookup extends MessageLookupByLibrary {
         "unhidingFilesToAlbum":
             MessageLookupByLibrary.simpleMessage("Unhiding files to album"),
         "unlock": MessageLookupByLibrary.simpleMessage("Unlock"),
+        "unpinAlbum": MessageLookupByLibrary.simpleMessage("Unpin album"),
         "unselectAll": MessageLookupByLibrary.simpleMessage("Unselect all"),
         "update": MessageLookupByLibrary.simpleMessage("Update"),
         "updateAvailable":

+ 20 - 0
lib/generated/l10n.dart

@@ -7334,6 +7334,26 @@ class S {
       args: [],
     );
   }
+
+  /// `Unpin album`
+  String get unpinAlbum {
+    return Intl.message(
+      'Unpin album',
+      name: 'unpinAlbum',
+      desc: '',
+      args: [],
+    );
+  }
+
+  /// `Pin album`
+  String get pinAlbum {
+    return Intl.message(
+      'Pin album',
+      name: 'pinAlbum',
+      desc: '',
+      args: [],
+    );
+  }
 }
 
 class AppLocalizationDelegate extends LocalizationsDelegate<S> {

+ 3 - 1
lib/l10n/intl_en.arb

@@ -1076,6 +1076,8 @@
   },
   "maps" : "Maps",
   "enableMaps": "Enable Maps",
-  "enableMapsDesc" : "This will show your photos on a world map.\n\nThis map is hosted by Open Street Map, and the exact locations of your photos are never shared.\n\nYou can disable this feature anytime from Settings."
+  "enableMapsDesc" : "This will show your photos on a world map.\n\nThis map is hosted by Open Street Map, and the exact locations of your photos are never shared.\n\nYou can disable this feature anytime from Settings.",
+  "unpinAlbum": "Unpin album",
+  "pinAlbum": "Pin album"
 }
 

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

@@ -362,7 +362,9 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {
                   padding: EdgeInsets.all(8),
                 ),
                 Text(
-                  widget.collection!.isPinned ? "Unpin album" : "Pin album",
+                  widget.collection!.isPinned
+                      ? S.of(context).unpinAlbum
+                      : S.of(context).pinAlbum,
                 ),
               ],
             ),