Beispiel #1
0
        private ItemTranslation GetTranslation(Int32 idLanguage, Int32 idDefault)
        {
            ItemTranslation translation = GetTranslation(idLanguage);

            if (translation == null)
            {
                translation = GetTranslation(idDefault);
                if (translation == null && Translations.Any())
                {
                    translation = Translations.FirstOrDefault();
                }
            }
            return(translation);
        }
Beispiel #2
0
        public String GetTooltip(Int32 idLanguage, Int32 idDefault)
        {
            ItemTranslation t = GetTranslation(idLanguage, idDefault);

            return((t == null) ? "" : t.Tooltip);
        }
Beispiel #3
0
        public String GetDescription(Int32 idLanguage, Int32 idDefault)
        {
            ItemTranslation t = GetTranslation(idLanguage, idDefault);

            return((t == null) ? "" : t.Description);
        }