/// <summary> /// Actualizes translation. /// </summary> public void ActualizeTranslation() { try { TranslationActualizer.ActualizeTranslation(TranslationActualizedOn); SysSettings.SetDefValue(UserConnection, TranslationActualizedOnSysSettingCode, DateTime.UtcNow); } catch (Exception ex) { MsgChannelUtilities.PostMessage(UserConnection, TranslationActualizedErrorMessageName, ex.Message); throw; } }
/// <summary> /// Applies translation. /// </summary> public TranslationServiceResponse ApplyTranslation() { try { ClearUnusedReference(); TranslationActualizer.WriteLocalizableValueError += OnWriteLocalizableValueError; TranslationActualizer.ActualizeLocalizableValues(); } catch (Exception e) { return(TranslationServiceResponse.CreateFailureResult(e)); } finally { TranslationActualizer.WriteLocalizableValueError -= OnWriteLocalizableValueError; } return(TranslationServiceResponse.CreateSuccessResult(TranslationApplyingLog)); }