コード例 #1
0
        public ImportTranslationResultLogLine(int sid, string originalString, string originalInFileString, string translatedString, ImportTranslationStringErrorReason errorReason)
        {
            __Sid                  = sid;
            __OriginalString       = originalString;
            __OriginalInFileString = originalInFileString;
            __TranslatedString     = translatedString;

            __ErrorReason = errorReason;
        }
コード例 #2
0
        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("");
        }