示例#1
0
        public virtual object Clone()
        {
            ItemBaseTranslation t = new ItemBaseTranslation();

            t.IdLanguage   = IdLanguage;
            t.LanguageCode = LanguageCode;
            t.LanguageName = LanguageName;
            t.Translation  = Translation.Copy();
            return(t);
        }
示例#2
0
        public virtual ItemBaseTranslation Copy(litePerson person, String ipAddress, String ipProxyAddress, String titlePrefix = "")
        {
            ItemBaseTranslation t = new ItemBaseTranslation();

            t.CreateMetaInfo(person, ipAddress, ipProxyAddress);

            t.IdLanguage   = IdLanguage;
            t.LanguageCode = LanguageCode;
            t.LanguageName = LanguageName;
            t.Translation  = Translation.Copy();
            if (!String.IsNullOrEmpty(titlePrefix))
            {
                t.Translation.Title = titlePrefix + t.Translation.Title;
            }
            return(t);
        }