/// <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)); }
/// <summary> /// Checks if translations can be applied. /// </summary> public TranslationServiceResponse CheckTranslation() { return(TranslationServiceResponse.CreateSuccessResult()); }