svn: /web/php/trunk/ include/languages.inc ws.php
| From: | Philip Olson | Date: | Thu, 21 Jul 2011 03:07:07 +0000 |
| Subject: | svn: /web/php/trunk/ include/languages.inc ws.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-11714@lists.php.net to get a copy of this message | ||
philip Thu, 21 Jul 2011 03:07:07 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=313494
Log:
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?
Changed paths:
U web/php/trunk/include/languages.inc
U web/php/trunk/ws.php
Modified: web/php/trunk/include/languages.inc
===================================================================
--- web/php/trunk/include/languages.inc 2011-07-20 23:20:40 UTC (rev 313493)
+++ web/php/trunk/include/languages.inc 2011-07-21 03:07:07 UTC (rev 313494)
@@ -85,14 +85,15 @@
// 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,7 +107,7 @@
'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',
@@ -114,12 +115,12 @@
'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);
Modified: web/php/trunk/ws.php
===================================================================
--- web/php/trunk/ws.php 2011-07-20 23:20:40 UTC (rev 313493)
+++ web/php/trunk/ws.php 2011-07-21 03:07:07 UTC (rev 313494)
@@ -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']])) {