diff --git a/mobile/assets/i18n/en-US.json b/mobile/assets/i18n/en-US.json index a5d9db8618..03c6aed40b 100644 --- a/mobile/assets/i18n/en-US.json +++ b/mobile/assets/i18n/en-US.json @@ -112,6 +112,7 @@ "control_bottom_app_bar_delete": "Delete", "control_bottom_app_bar_favorite": "Favorite", "control_bottom_app_bar_archive": "Archive", + "control_bottom_app_bar_unarchive": "Unarchive", "control_bottom_app_bar_share": "Share", "create_album_page_untitled": "Untitled", "create_shared_album_page_create": "Create", @@ -135,6 +136,7 @@ "experimental_settings_subtitle": "Use at your own risk!", "experimental_settings_title": "Experimental", "favorites_page_title": "Favorites", + "favorites_page_no_favorites": "No favorite assets found", "home_page_add_to_album_conflicts": "Added {added} assets to album {album}. {failed} assets are already in the album.", "home_page_add_to_album_err_local": "Can not add local assets to albums yet, skipping", "home_page_add_to_album_success": "Added {added} assets to album {album}.", @@ -272,5 +274,6 @@ "advanced_settings_troubleshooting_subtitle": "Enable additional features for troubleshooting", "description_input_submit_error": "Error updating description, check the log for more details", "description_input_hint_text": "Add description...", - "archive_page_title": "Archive ({})" + "archive_page_title": "Archive ({})", + "archive_page_no_archived_assets": "No archived assets found" } diff --git a/mobile/lib/modules/album/views/sharing_page.dart b/mobile/lib/modules/album/views/sharing_page.dart index 54807ffe79..68a2dda855 100644 --- a/mobile/lib/modules/album/views/sharing_page.dart +++ b/mobile/lib/modules/album/views/sharing_page.dart @@ -85,15 +85,15 @@ class SharingPage extends HookConsumerWidget { ), ), subtitle: isOwner - ? const Text( - 'Owned', - style: TextStyle( + ? Text( + 'album_thumbnail_owned'.tr(), + style: const TextStyle( fontSize: 12.0, ), ) : album.ownerName != null ? Text( - 'Shared by ${album.ownerName!}', + 'album_thumbnail_shared_by'.tr(args: [album.ownerName!]), style: const TextStyle( fontSize: 12.0, ), diff --git a/mobile/lib/modules/archive/views/archive_page.dart b/mobile/lib/modules/archive/views/archive_page.dart index 5b8eb26fb0..b884a41009 100644 --- a/mobile/lib/modules/archive/views/archive_page.dart +++ b/mobile/lib/modules/archive/views/archive_page.dart @@ -80,8 +80,10 @@ class ArchivePage extends HookConsumerWidget { leading: const Icon( Icons.unarchive_rounded, ), - title: - const Text("Unarchive", style: TextStyle(fontSize: 14)), + title: Text( + 'control_bottom_app_bar_unarchive'.tr(), + style: const TextStyle(fontSize: 14), + ), onTap: () { if (selection.value.isNotEmpty) { ref @@ -112,8 +114,8 @@ class ArchivePage extends HookConsumerWidget { return Scaffold( appBar: buildAppBar(), body: archivedAssets.value.isEmpty - ? const Center( - child: Text('No archived assets found.'), + ? Center( + child: Text('archive_page_no_archived_assets'.tr()), ) : Stack( children: [ diff --git a/mobile/lib/modules/asset_viewer/views/gallery_viewer.dart b/mobile/lib/modules/asset_viewer/views/gallery_viewer.dart index d1508225c5..b5ad98ddfc 100644 --- a/mobile/lib/modules/asset_viewer/views/gallery_viewer.dart +++ b/mobile/lib/modules/asset_viewer/views/gallery_viewer.dart @@ -1,5 +1,5 @@ import 'dart:io'; - +import 'package:easy_localization/easy_localization.dart'; import 'package:auto_route/auto_route.dart'; import 'package:cached_network_image/cached_network_image.dart'; import 'package:flutter/material.dart'; @@ -338,22 +338,26 @@ class GalleryViewerPage extends HookConsumerWidget { showSelectedLabels: false, showUnselectedLabels: false, items: [ - const BottomNavigationBarItem( - icon: Icon(Icons.ios_share_rounded), - label: 'Share', - tooltip: 'Share', - ), BottomNavigationBarItem( - icon: currentAsset.isArchived - ? const Icon(Icons.unarchive_rounded) - : const Icon(Icons.archive_outlined), - label: 'Archive', - tooltip: 'Archive', + icon: const Icon(Icons.ios_share_rounded), + label: 'control_bottom_app_bar_share'.tr(), + tooltip: 'control_bottom_app_bar_share'.tr(), ), - const BottomNavigationBarItem( - icon: Icon(Icons.delete_outline), - label: 'Delete', - tooltip: 'Delete', + currentAsset.isArchived + ? BottomNavigationBarItem( + icon: const Icon(Icons.unarchive_rounded), + label: 'control_bottom_app_bar_unarchive'.tr(), + tooltip: 'control_bottom_app_bar_unarchive'.tr(), + ) + : BottomNavigationBarItem( + icon: const Icon(Icons.archive_outlined), + label: 'control_bottom_app_bar_archive'.tr(), + tooltip: 'control_bottom_app_bar_archive'.tr(), + ), + BottomNavigationBarItem( + icon: const Icon(Icons.delete_outline), + label: 'control_bottom_app_bar_delete'.tr(), + tooltip: 'control_bottom_app_bar_delete'.tr(), ), ], onTap: (index) { diff --git a/mobile/lib/modules/favorite/views/favorites_page.dart b/mobile/lib/modules/favorite/views/favorites_page.dart index d4182e4698..ff7e6ae62a 100644 --- a/mobile/lib/modules/favorite/views/favorites_page.dart +++ b/mobile/lib/modules/favorite/views/favorites_page.dart @@ -27,8 +27,8 @@ class FavoritesPage extends HookConsumerWidget { return Scaffold( appBar: buildAppBar(), body: ref.watch(favoriteAssetProvider).isEmpty - ? const Center( - child: Text('No favorite assets found.'), + ? Center( + child: Text('favorites_page_no_favorites'.tr()), ) : ImmichAssetGrid( assets: ref.watch(favoriteAssetProvider),