svn: /web/php/trunk/js/ common.js
| From: | Hannes Magnusson | Date: | Wed, 29 Dec 2010 19:05:39 +0000 |
| Subject: | svn: /web/php/trunk/js/ common.js | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-9947@lists.php.net to get a copy of this message | ||
bjori Wed, 29 Dec 2010 19:05:39 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=306827
Log:
use the document language
Changed paths:
U web/php/trunk/js/common.js
Modified: web/php/trunk/js/common.js
===================================================================
--- web/php/trunk/js/common.js 2010-12-29 18:29:18 UTC (rev 306826)
+++ web/php/trunk/js/common.js 2010-12-29 19:05:39 UTC (rev 306827)
@@ -113,10 +113,9 @@
/**
* Determine what language to present to the user.
- *
- * @todo make this detect the user's language.
*/
function getLanguage()
{
- return "en";
+ return document.documentElement.lang;
}
+