Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
 static public string GetPhrase(Phrases phraseId)
 {
     return(LanguagePhrases.ContainsKey(phraseId.ToString()) ? LanguagePhrases[phraseId.ToString()] : string.Empty);
 }