Make Image History Title summary localizable

This commit is contained in:
L1Q 2021-09-08 09:33:44 +03:00
parent 6b8754b3db
commit 44fe75544c
3 changed files with 25 additions and 1 deletions

View file

@ -91,7 +91,7 @@ public ImageHistoryForm(string historyPath, ImageHistorySettings settings, Actio
private void UpdateTitle(int total, int filtered)
{
Text = $"{defaultTitle} (Total: {total:N0} - Filtered: {filtered:N0})";
Text = $"{defaultTitle} ({Resources.Total}: {total:N0} - {Resources.Filtered}: {filtered:N0})";
}
private void RefreshHistoryItems(bool mockData = false)

View file

@ -89,6 +89,15 @@ internal class Resources {
}
}
/// <summary>
/// Looks up a localized string similar to Filtered.
/// </summary>
internal static string Filtered {
get {
return ResourceManager.GetString("Filtered", resourceCulture);
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
@ -473,5 +482,14 @@ internal class Resources {
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to Total.
/// </summary>
internal static string Total {
get {
return ResourceManager.GetString("Total", resourceCulture);
}
}
}
}

View file

@ -253,4 +253,10 @@
<data name="HistoryForm_Search_Watermark" xml:space="preserve">
<value>File name, window title, process name, etc.</value>
</data>
<data name="Total" xml:space="preserve">
<value>Total</value>
</data>
<data name="Filtered" xml:space="preserve">
<value>Filtered</value>
</data>
</root>