public static bool ChangeLanguage(string language)
        {
            if (!LocalizedTextManager.GetLanguageIds(true).Any <string>((Func <string, bool>)(l => l == language)))
            {
                return(false);
            }
            string str = language;

            MBTextManager._languageProcessor = str == "Türkçe" ? (LanguageSpecificTextProcessor) new TurkishTextProcessor() : (str == "English" ? (LanguageSpecificTextProcessor) new EnglishTextProcessor() : (str == "Deutsch" ? (LanguageSpecificTextProcessor) new GermanTextProcessor() : (str == "Polski" ? (LanguageSpecificTextProcessor) new PolishTextProcessor() : (LanguageSpecificTextProcessor) new DefaultTextProcessor())));
            MBTextManager._currentLanguageId = language;
            MBTextManager.LoadFunctionsOnLanguageChange(MBTextManager._currentLanguageId);
            return(true);
        }