コード例 #1
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));
 }
コード例 #2
0
 /// <summary>
 /// Checks if translations can be applied.
 /// </summary>
 public TranslationServiceResponse CheckTranslation()
 {
     return(TranslationServiceResponse.CreateSuccessResult());
 }