Simplify translations (#1046)

This commit is contained in:
Leendert de Borst
2026-05-06 21:39:10 +02:00
parent d2df92ad4e
commit 8399f93a36
2 changed files with 5 additions and 30 deletions

View File

@@ -129,7 +129,7 @@ else
<SortableTableRow Class="@(logo.FirstItemId.HasValue ? "cursor-pointer" : string.Empty)" OnClick="@(logo.FirstItemId.HasValue ? EventCallback.Factory.Create(this, () => NavigateToItem(logo.FirstItemId!.Value)) : default)">
<SortableTableColumn IsPrimary="true">@logo.Source</SortableTableColumn>
<SortableTableColumn>@FormatSize(logo.SizeBytes)</SortableTableColumn>
<SortableTableColumn>@logo.ItemCount @Localizer["ItemsUsingLogoSuffix"]</SortableTableColumn>
<SortableTableColumn>@logo.ItemCount</SortableTableColumn>
</SortableTableRow>
}
</SortableTable>
@@ -144,7 +144,7 @@ else
{
<div class="mb-4">
<div class="flex justify-between text-sm text-gray-700 dark:text-gray-300 mb-1">
<span>@Localizer["RedownloadInProgress"]</span>
<span>@SharedLocalizer["Loading"]</span>
<span>@_redownloadProgress / @_redownloadTotal</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700">
@@ -389,7 +389,7 @@ else
_isDeletingLogos = true;
StateHasChanged();
GlobalLoadingSpinner.Show(Localizer["DeleteAllLogosProgressMessage"]);
GlobalLoadingSpinner.Show(SharedLocalizer["Loading"]);
try
{
@@ -420,7 +420,7 @@ else
await DbService.VacuumDatabaseAsync();
await DbService.SaveDatabaseAsync();
GlobalNotificationService.AddSuccessMessage(Localizer["DeleteAllLogosSuccessMessage"], true);
GlobalNotificationService.AddSuccessMessage(SharedLocalizer["Success"], true);
await LoadStatisticsAsync();
}
catch (Exception)
@@ -502,7 +502,6 @@ else
var ctx = await DbService.GetDbContextAsync();
var now = DateTime.UtcNow;
int updatedDomains = 0;
foreach (var (domain, bucket) in itemsByDomain)
{
@@ -545,8 +544,6 @@ else
item.UpdatedAt = now;
}
}
updatedDomains++;
}
await ctx.SaveChangesAsync();
@@ -558,7 +555,7 @@ else
}
else
{
GlobalNotificationService.AddSuccessMessage(string.Format(System.Globalization.CultureInfo.CurrentCulture, Localizer["RedownloadAllLogosSuccessMessage"], updatedDomains), true);
GlobalNotificationService.AddSuccessMessage(SharedLocalizer["Success"], true);
}
await LoadStatisticsAsync();

View File

@@ -134,12 +134,6 @@
<comment>Table column header for the number of items using a logo</comment>
</data>
<!-- Misc -->
<data name="ItemsUsingLogoSuffix">
<value>items</value>
<comment>Suffix shown after the count of items using a given logo (e.g. "3 items")</comment>
</data>
<!-- Logo management -->
<data name="LogoManagementTitle">
<value>Manage logos</value>
@@ -165,14 +159,6 @@
<value>This removes every stored logo from your vault and clears the logo on each credential. You can re-download them at any time. Continue?</value>
<comment>Confirmation modal body for delete-all-logos</comment>
</data>
<data name="DeleteAllLogosProgressMessage">
<value>Deleting all logos...</value>
<comment>Loading spinner message while logos are being deleted</comment>
</data>
<data name="DeleteAllLogosSuccessMessage">
<value>All logos have been deleted from your vault.</value>
<comment>Success notification after deleting every logo</comment>
</data>
<data name="RedownloadAllLogosConfirmTitle">
<value>Re-download all logos?</value>
<comment>Confirmation modal title for redownload-all-logos</comment>
@@ -181,14 +167,6 @@
<value>This re-fetches the favicon for every credential that has a website URL, replacing the existing logo. Depending on your vault size this may take a while. Continue?</value>
<comment>Confirmation modal body for redownload-all-logos</comment>
</data>
<data name="RedownloadInProgress">
<value>Re-downloading logos...</value>
<comment>Progress label shown next to the redownload progress bar</comment>
</data>
<data name="RedownloadAllLogosSuccessMessage">
<value>Re-downloaded logos for {0} domains.</value>
<comment>Success notification after redownload, with placeholder for count</comment>
</data>
<data name="RedownloadAllLogosNoItemsMessage">
<value>No items with a website URL were found, nothing to download.</value>
<comment>Notification shown when redownload was triggered but no items qualify</comment>