https://bugzilla.wikimedia.org/show_bug.cgi?id=18848


Brion Vibber <br...@wikimedia.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |br...@wikimedia.org




--- Comment #1 from Brion Vibber <br...@wikimedia.org>  2009-05-19 23:07:47 UTC 
---
Here's the offending code on the site:

http://sv.wikipedia.org/wiki/MediaWiki:Common.js

// Sökfunktion med flera sökmotorer
/** Change Special:Search to use a radio menu
*******************************************************
   *
   *  Description: Change Special:Search to use a radio menu, with the default
being
   *               the internal MediaWiki engine
   *  Created and maintained by: [[:fr:User:Pmartin]]
   */

if ((wgNamespaceNumber == -1) && (wgCanonicalSpecialPageName == "Search")) {
        var searchEngines = {
          mediawiki: {
            ShortName: "Wikipedia-sök",
            Template: "/w/index.php?search={searchTerms}"
          },
          yahoo: {
            ShortName: "Yahoo!",
            Template: "http://"; + wgUserLanguage +
".search.yahoo.com/search?p={searchTerms}&vs=" + wgServer
          },
[snip]

wgUserLanguage will be 'sv', 'en', 'fr', etc... whereas the hostnames vary, but
seem to be using country codes:
* se.search.yahoo.com
* fr.search.yahoo.com
* de.search.yahoo.com
* jp.search.yahoo.com -> search.yahoo.jp
* us.search.yahoo.com

Language codes just don't work except in a few countries/language that happen
to match up like fr and de. If the language code can't be appended, it should
just head straight to the Swedish server.


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to