public static TypeTranslation FindByTypeAndLang(Type type, Language lang) { TypeTranslation[] translations = (TypeTranslation[]) ActiveRecordBase.FindAll( typeof(TypeTranslation), Expression.Eq("Type", type), Expression.Eq("Lang", lang)); if ((translations != null) && (translations.Length > 0)) return translations[0]; else return null; }
public TypeTranslation(Language lang, Type type, string translation) { _lang = lang; _type = type; _translation = translation; }
public static MenuTranslation FindByMenuAndLang(Menu menu, Language lang) { MenuTranslation[] translations = (MenuTranslation[]) ActiveRecordBase.FindAll( typeof(MenuTranslation), Expression.Eq("Menu", menu), Expression.Eq("Lang", lang)); if ((translations != null) && (translations.Length > 0)) return translations[0]; else return null; }
public MenuTranslation(Language lang, Menu menu, string translation) { _lang = lang; _menu = menu; _translation = translation; }
public static CategoryTranslation FindByCategoryAndLang(Category category, Language lang) { CategoryTranslation[] translations = (CategoryTranslation[]) ActiveRecordBase.FindAll( typeof(CategoryTranslation), Expression.Eq("Category", category), Expression.Eq("Lang", lang)); if ((translations != null) && (translations.Length > 0)) return translations[0]; else return null; }
public CategoryTranslation(Language lang, Category category, string translation) { _lang = lang; _category = category; _translation = translation; }