Пример #1
0
        public WikitionaryService()
        {
            Url = new Uri("http://wiktionary.org");
            Name = "wiktionary_org";
            CompanyName = "Wikimedia Foundation, Inc.";
            Copyright = "GNU Free Documentation License";
            IconUrl = new Uri("http://en.wikipedia.org/favicon.ico");
            FullName = "The free dictionary that anyone can edit";
            IconResourceName = "Translate.Wiki.Service.ico";

            WiktionarySearchEngine se = new WiktionarySearchEngine("wiktionary.org");
            AddBilingualDictionary(se);
            AddBilingualDictionary(new WictionaryDictionary(se, "wiktionary.org"));
        }
Пример #2
0
        public WikitionaryService()
        {
            Url              = new Uri("http://wiktionary.org");
            Name             = "wiktionary_org";
            CompanyName      = "Wikimedia Foundation, Inc.";
            Copyright        = "GNU Free Documentation License";
            IconUrl          = new Uri("http://en.wikipedia.org/favicon.ico");
            FullName         = "The free dictionary that anyone can edit";
            IconResourceName = "Translate.Wiki.Service.ico";

            WiktionarySearchEngine se = new WiktionarySearchEngine("wiktionary.org");

            AddBilingualDictionary(se);
            AddBilingualDictionary(new WictionaryDictionary(se, "wiktionary.org"));
        }
Пример #3
0
        public WictionaryDictionary(WiktionarySearchEngine searchEngine, string searchHost)
        {
            this.searchEngine = searchEngine;
            this.searchHost   = searchHost;

            SortedDictionary <Language, string> tmp = new SortedDictionary <Language, string>(WikiUtils.LangToKey);

            foreach (Language from in WikiUtils.LangToKey.Keys)
            {
                foreach (Language to in tmp.Keys)
                {
                    AddSupportedTranslation(new LanguagePair(from, to));
                }
            }

            AddSupportedSubject(SubjectConstants.Common);

            Name       = "_dictionary";
            CharsLimit = 50;
        }
        public WictionaryDictionary(WiktionarySearchEngine searchEngine, string searchHost)
        {
            this.searchEngine = searchEngine;
            this.searchHost = searchHost;

            SortedDictionary<Language, string> tmp = new SortedDictionary<Language, string>(WikiUtils.LangToKey);

            foreach(Language from in WikiUtils.LangToKey.Keys)
            {
                foreach(Language to in tmp.Keys)
                {
                      AddSupportedTranslation(new LanguagePair(from, to));
                }
            }

            AddSupportedSubject(SubjectConstants.Common);

            Name = "_dictionary";
            CharsLimit = 50;
        }