Permalink
Browse files

Changed default English mapping from en-us to en-ca because en-us has…

… a bing bug, and is returning a limited number of bing API results. Weird, Eh?
  • Loading branch information...
1 parent 2dcc1fb commit cc915370b1476de7204c0bf861d0ae8d725782fa @philip philip committed Jul 21, 2011
Showing with 7 additions and 6 deletions.
  1. +6 −5 include/languages.inc
  2. +1 −1 ws.php
View
@@ -85,14 +85,15 @@ $INACTIVE_ONLINE_LANGUAGES = array(
// Used for bing search
// Details: http://msdn.microsoft.com/en-us/library/dd251064.aspx
+// Note: Bing bug with en-us currently (limited results), so we're using en-ca
$LANGUAGES_MAP = array(
- 'en' => 'en-us',
+ 'en' => 'en-ca',
'ar' => 'ar-xa',
'bg' => 'bg-bg',
'zh' => 'zh-cn',
'hk' => 'zh-hk',
'tw' => 'zh-tw',
- 'ca' => 'en-us', // ? ca Catalan, ca-es not available (yet)
+ 'ca' => 'en-ca', // ? ca Catalan, ca-es not available (yet)
'cs' => 'cs-cz',
'da' => 'da-dk',
'nl' => 'nl-nl',
@@ -106,20 +107,20 @@ $LANGUAGES_MAP = array(
'kr' => 'ko-kr',
'lt' => 'lt-lt',
'no' => 'nb-no',
- 'fa' => 'en-us', // ? fa Persian, fa-fa not available (yet)
+ 'fa' => 'en-ca', // ? fa Persian, fa-fa not available (yet)
'pl' => 'pl-pl',
'pt' => 'pt-pt',
'pt_BR' => 'pt-br',
'ro' => 'ro-ro',
'ru' => 'ru-ru',
'sk' => 'sk-sk',
'sl' => 'sl-sl',
- 'sr' => 'en-us', // ? sr Serbian, sr-sr not available (yet)
+ 'sr' => 'en-ca', // ? sr Serbian, sr-sr not available (yet)
'es' => 'es-es', // ? es-xl?
'sv' => 'sv-se',
'tr' => 'tr-tr',
'he' => 'he-il',
- 'id' => 'en-us', // ? id Indonesian, in-id not available (yet)
+ 'id' => 'en-ca', // ? id Indonesian, in-id not available (yet)
);
$ACTIVE_ONLINE_LANGUAGES = array_diff($LANGUAGES, $INACTIVE_ONLINE_LANGUAGES);
View
2 ws.php
@@ -23,7 +23,7 @@
'talks'=>'talks.php.net',
);
-$market = 'en-us';
+$market = 'en-ca';
if(!empty($LANGUAGES_MAP[$l])) $market = $LANGUAGES_MAP[$l];
if(isset($sites[$_REQUEST['profile']])) {

0 comments on commit cc91537

Please sign in to comment.