From f99f289f74061d7489cba386c5e4046e2087d287 Mon Sep 17 00:00:00 2001 From: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> Date: Wed, 12 Jun 2024 13:13:10 +0200 Subject: [PATCH] fix(web): small translation issues + remove unused (#10200) * fix(web): small translation issues + remove unused * more unused keys * formatting * fix(web): incorrectly used translations * fix and remove unused translations --------- Co-authored-by: Zack Pollard --- .../storage-template-settings.svelte | 2 +- .../asset-viewer/asset-viewer-nav-bar.svelte | 4 ++-- .../asset-viewer/photo-viewer.svelte | 4 ++-- .../faces-page/person-side-panel.svelte | 6 +++--- .../forms/admin-registration-form.svelte | 4 ++-- .../photos-page/actions/archive-action.svelte | 2 +- .../actions/favorite-action.svelte | 2 +- web/src/lib/i18n/en.json | 20 +++---------------- .../(user)/sharing/sharedlinks/+page.svelte | 2 +- .../[[assetId=id]]/+page.svelte | 2 +- 10 files changed, 17 insertions(+), 31 deletions(-) diff --git a/web/src/lib/components/admin-page/settings/storage-template/storage-template-settings.svelte b/web/src/lib/components/admin-page/settings/storage-template/storage-template-settings.svelte index cef0f6c96c..fbbf6b7b68 100644 --- a/web/src/lib/components/admin-page/settings/storage-template/storage-template-settings.svelte +++ b/web/src/lib/components/admin-page/settings/storage-template/storage-template-settings.svelte @@ -55,7 +55,7 @@ const substitutions: Record = { filename: 'IMAGE_56437', ext: 'jpg', - filetype: $t('img').toUpperCase(), + filetype: 'IMG', filetypefull: 'IMAGE', assetId: 'a8312960-e277-447d-b4ea-56717ccba856', album: $t('album_name'), diff --git a/web/src/lib/components/asset-viewer/asset-viewer-nav-bar.svelte b/web/src/lib/components/asset-viewer/asset-viewer-nav-bar.svelte index 746871516f..9656da0f24 100644 --- a/web/src/lib/components/asset-viewer/asset-viewer-nav-bar.svelte +++ b/web/src/lib/components/asset-viewer/asset-viewer-nav-bar.svelte @@ -177,7 +177,7 @@ color="opaque" icon={asset.isFavorite ? mdiHeart : mdiHeartOutline} on:click={() => dispatch('favorite')} - title={asset.isFavorite ? $t('unfavorite') : $t('favorite')} + title={asset.isFavorite ? $t('unfavorite') : $t('to_favorite')} /> {/if} @@ -242,7 +242,7 @@ onMenuClick('toggleArchive')} icon={asset.isArchived ? mdiArchiveArrowUpOutline : mdiArchiveArrowDownOutline} - text={asset.isArchived ? $t('unarchive') : $t('archive')} + text={asset.isArchived ? $t('unarchive') : $t('to_archive')} /> { - if (window.getSelection()?.type === $t('range')) { + if (window.getSelection()?.type === 'Range') { return; } event.preventDefault(); @@ -112,7 +112,7 @@ ]} /> {#if imageError} -
Error loading image
+
{$t('error_loading_image')}
{/if}
@@ -309,7 +309,7 @@ { const isConfirmed = await dialogController.show({ id: 'delete-shared-link', - title: 'Delete shared link', + title: $t('delete_shared_link'), prompt: 'Are you sure you want to delete this shared link?', confirmText: 'Delete', }); diff --git a/web/src/routes/(user)/trash/[[photos=photos]]/[[assetId=id]]/+page.svelte b/web/src/routes/(user)/trash/[[photos=photos]]/[[assetId=id]]/+page.svelte index 4f8c0a6ad4..624698334d 100644 --- a/web/src/routes/(user)/trash/[[photos=photos]]/[[assetId=id]]/+page.svelte +++ b/web/src/routes/(user)/trash/[[photos=photos]]/[[assetId=id]]/+page.svelte @@ -107,7 +107,7 @@ handleEmptyTrash()} disabled={$isMultiSelectState}>
- Empty trash + {$t('empty_trash')}