public static string GetTranslation(Phrases phrase, Languages language) { switch (language) { case Languages.English: return(Dictionary_en.ResourceManager.GetString(phrase.ToString())); case Languages.Russian: return(Dictionary_ru.ResourceManager.GetString(phrase.ToString())); case Languages.Ukrainian: return(Dictionary_ua.ResourceManager.GetString(phrase.ToString())); default: return(string.Empty); } }
static public string GetPhrase(Phrases phraseId) { return(LanguagePhrases.ContainsKey(phraseId.ToString()) ? LanguagePhrases[phraseId.ToString()] : string.Empty); }