/// <summary> /// Changes the current lagnuage /// </summary> /// <param name="language">New Language</param> static public void ChangeLanguage(string language) { if (_stringProvider == null) { Load(language); } else { _stringProvider.ChangeLanguage(GetCultureName(language)); } }
public static void ChangeLanguage(string language) { GUIFontManager.ClearFontCache(); if (_stringProvider == null) { Load(language); } else { _stringProvider.ChangeLanguage(GetCultureName(language)); if (_stringProvider.Characters > GUIGraphicsContext.CharsInCharacterSet) { GUIGraphicsContext.CharsInCharacterSet = _stringProvider.Characters; } } }