mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 18:57:28 -07:00
General changes to the expert tab.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1809 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
8e4ac16006
commit
761b02df4d
8 changed files with 209 additions and 101 deletions
|
@ -485,6 +485,15 @@ namespace GreenshotPlugin.Core {
|
|||
return resources.ContainsKey(key);
|
||||
}
|
||||
|
||||
public static string Translate(object key) {
|
||||
string typename = key.GetType().Name;
|
||||
string enumKey = typename + "." + key.ToString();
|
||||
if (Language.hasKey(enumKey)) {
|
||||
return Language.GetString(enumKey);
|
||||
}
|
||||
return key.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get the resource for key
|
||||
/// </summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue