diff --git a/lib/generated/l10n.dart b/lib/generated/l10n.dart index 95c756429..4d1cb702f 100644 --- a/lib/generated/l10n.dart +++ b/lib/generated/l10n.dart @@ -7384,6 +7384,36 @@ class S { args: [], ); } + + /// `No images with location` + String get noImagesWithLocation { + return Intl.message( + 'No images with location', + name: 'noImagesWithLocation', + desc: '', + args: [], + ); + } + + /// `No photos found here` + String get noPhotosFoundHere { + return Intl.message( + 'No photos found here', + name: 'noPhotosFoundHere', + desc: '', + args: [], + ); + } + + /// `Zoom out to see photos` + String get zoomOutToSeePhotos { + return Intl.message( + 'Zoom out to see photos', + name: 'zoomOutToSeePhotos', + desc: '', + args: [], + ); + } } class AppLocalizationDelegate extends LocalizationsDelegate { diff --git a/lib/ui/map/map_pull_up_gallery.dart b/lib/ui/map/map_pull_up_gallery.dart index db64fb31a..d6fdc084e 100644 --- a/lib/ui/map/map_pull_up_gallery.dart +++ b/lib/ui/map/map_pull_up_gallery.dart @@ -6,6 +6,7 @@ import "package:logging/logging.dart"; import "package:photos/core/event_bus.dart"; import "package:photos/events/files_updated_event.dart"; import "package:photos/events/local_photos_updated_event.dart"; +import "package:photos/generated/l10n.dart"; import "package:photos/models/file.dart"; import "package:photos/models/file_load_result.dart"; import "package:photos/models/gallery_type.dart"; @@ -133,12 +134,12 @@ class _MapPullUpGalleryState extends State { mainAxisSize: MainAxisSize.min, children: [ Text( - "No photos found here", + S.of(context).noPhotosFoundHere, style: textTheme.large, ), const SizedBox(height: 4), Text( - "Zoom out to see photos", + S.of(context).zoomOutToSeePhotos, style: textTheme.smallFaint, ) ], diff --git a/lib/ui/map/map_screen.dart b/lib/ui/map/map_screen.dart index 4eaf74f44..8934f2808 100644 --- a/lib/ui/map/map_screen.dart +++ b/lib/ui/map/map_screen.dart @@ -7,6 +7,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_map/flutter_map.dart'; import "package:latlong2/latlong.dart"; import "package:logging/logging.dart"; +import "package:photos/generated/l10n.dart"; import "package:photos/models/file.dart"; import "package:photos/theme/ente_theme.dart"; import "package:photos/ui/common/loading_widget.dart"; @@ -108,7 +109,7 @@ class _MapScreenState extends State { debugPrint("Info for map: center $center, initialZoom $initialZoom"); } } else { - showShortToast(context, "No images with location"); + showShortToast(context, S.of(context).noImagesWithLocation); } setState(() {