Ejemplo n.º 1
0
 public List <TranslatedItem> GetModule(Enum_LangModule Module)
 {
     if (Items.ContainsKey(Module.ToString()))
     {
         return(Items[Module.ToString()]);
     }
     return(null);
 }
Ejemplo n.º 2
0
        public string GetTranslatedText(string Original, Enum_LangModule Module, string ID)
        {
            string TextTranslated = "";

            if (!this.IsUserLang_RTL)
            {
                TextTranslated = Original;
            }
            else
            {
                List <TranslatedItem> ModuleItems = Items["MaskanWeb"];
                if (ModuleItems != null)
                {
                    TranslatedItem _TranslatedItem = ModuleItems.FirstOrDefault(T => T.id == ID);
                    if (_TranslatedItem != null)
                    {
                        TextTranslated = _TranslatedItem.c;
                    }
                }
            }
            return(TextTranslated);
        }