I'm trying to find out program's language and change my string for this language
CultureInfo culture = new CultureInfo("en");
CultureInfo currentCulture = Thread.CurrentThread.CurrentUICulture;
string msg="";
if (currentCulture == culture)
{
msg = "Some words";
}
Even though values of culture and currentCulture are the same if
statement is not working and my msg string is not changing.
Here is my debug results
Name--Value--Type
culture -- {en} -- System.Globalization.CultureInfo
currentCulture -- {en} -- System.Globalization.CultureInfo