Beispiel #1
0
        public string GetText(LangText record, Languages lang)
        {
            switch (lang)
            {
            case Languages.English:
                return(record.English ?? "(not found)");

            case Languages.French:
                return(record.French ?? "(not found)");

            case Languages.German:
                return(record.German ?? "(not found)");

            case Languages.Spanish:
                return(record.Spanish ?? "(not found)");

            case Languages.Italian:
                return(record.Italian ?? "(not found)");

            case Languages.Japanish:
                return(record.Japanish ?? "(not found)");

            case Languages.Dutsh:
                return(record.Dutsh ?? "(not found)");

            case Languages.Portugese:
                return(record.Portugese ?? "(not found)");

            case Languages.Russish:
                return(record.Russish ?? "(not found)");

            default:
                return("(not found)");
            }
        }
Beispiel #2
0
 public string GetText(LangText record)
 {
     return(this.GetText(record, this.GetDefaultLanguage()));
 }