예제 #1
0
 /// <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;
     }
 }
예제 #2
0
 /// <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));
 }