public ImportTranslationResultLogLine(int sid, string originalString, string originalInFileString, string translatedString, ImportTranslationStringErrorReason errorReason) { __Sid = sid; __OriginalString = originalString; __OriginalInFileString = originalInFileString; __TranslatedString = translatedString; __ErrorReason = errorReason; }
private object GetErrorReasonString(ImportTranslationStringErrorReason importTranslationStringErrorReason) { switch (importTranslationStringErrorReason) { case ImportTranslationStringErrorReason.OriginalStringChanged: return(StringUtils.String("ImportTranslationLogOriginalStringChanged")); case ImportTranslationStringErrorReason.StringNotFound: return(StringUtils.String("ImportTranslationLogStringNotFound")); case ImportTranslationStringErrorReason.TranslationIsTheSame: return(StringUtils.String("ImportTranslationTranslationIsTheSame")); } return(""); }