mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
Removed unneeded file.
This commit is contained in:
parent
0323705513
commit
44fba68477
1 changed files with 0 additions and 39 deletions
|
@ -1,39 +0,0 @@
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Resources;
|
|
||||||
using System.Globalization;
|
|
||||||
using System.Threading;
|
|
||||||
using Greenshot.Configuration;
|
|
||||||
using System.Diagnostics;
|
|
||||||
|
|
||||||
|
|
||||||
namespace Greenshot
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// Description of Language.
|
|
||||||
/// </summary>
|
|
||||||
public class Language
|
|
||||||
{
|
|
||||||
private ResourceManager rm;
|
|
||||||
private static Language uniqueInstance;
|
|
||||||
private Language() {
|
|
||||||
rm = new ResourceManager("Greenshot.UI", System.Reflection.Assembly.GetExecutingAssembly());
|
|
||||||
SetLanguage(AppConfig.GetInstance().Ui_Language);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static Language GetInstance() {
|
|
||||||
if(uniqueInstance == null) {
|
|
||||||
uniqueInstance = new Language();
|
|
||||||
}
|
|
||||||
return uniqueInstance;
|
|
||||||
|
|
||||||
}
|
|
||||||
public void SetLanguage(string cultureInfo) {
|
|
||||||
Thread.CurrentThread.CurrentUICulture = new CultureInfo(cultureInfo);
|
|
||||||
}
|
|
||||||
public string GetString(string id) {
|
|
||||||
string s = rm.GetString(id);
|
|
||||||
return (s != null) ? s : "string ###"+id+"### not found";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue