Translate() public method

public Translate ( string input ) : string
input string
return string
コード例 #1
0
        public void Translate(TranslatorLanguage language)
        {
            Translator tr = new Translator();
            tr.ToLanguage = language;

            Summary = tr.Translate(Summary);
            Tagline = tr.Translate(Tagline);

            string tmp = tr.Translate(Genres.ToString());
            Genres.Clear();
            foreach (string currGenre in tmp.Split('|'))
                if (currGenre.Trim().Length > 0)
                    Genres.Add(currGenre.Trim());
        }
コード例 #2
0
ファイル: DBBasicInfo.cs プロジェクト: andrewjswan/mvcentral
        public void Translate(TranslatorLanguage language)
        {
            Translator tr = new Translator();
              tr.ToLanguage = language;

              bioSummary = tr.Translate(bioSummary);
              bioContent = tr.Translate(bioContent);
        }