/// <summary> ///Delete translation for po /// </summary> /// <param name="po">persistent object</param> /// <returns>true if no active language or translation deleted</returns> public static Boolean Delete(PO po) { if (!TranslationTable.IsActiveLanguages(false)) { return(true); } TranslationTable table = TranslationTable.Get(po.Get_TableName()); return(table.DeleteTranslation(po)); }
/// <summary> ///Save translation for po /// </summary> /// <param name="po">persistent object</param> /// <param name="newRecord">newRecord new</param> /// <returns>true if no active language or translation saved/reset</returns> public static bool Save(PO po, bool newRecord) { if (!TranslationTable.IsActiveLanguages(false)) { return(true); } TranslationTable table = TranslationTable.Get(po.Get_TableName()); if (newRecord) { return(table.CreateTranslation(po)); } return(table.ResetTranslationFlag(po)); }