mirror of
https://github.com/ShareX/ShareX.git
synced 2024-06-29 03:30:43 +12:00
Make Image History Title summary localizable
This commit is contained in:
parent
6b8754b3db
commit
44fe75544c
|
@ -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)
|
||||
|
|
18
ShareX.HistoryLib/Properties/Resources.Designer.cs
generated
18
ShareX.HistoryLib/Properties/Resources.Designer.cs
generated
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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>
|
Loading…
Reference in a new issue