com web/php: use the document language: js/common.js

From: Date: Wed, 29 Dec 2010 19:05:39 +0000
Subject: com web/php: use the document language: js/common.js
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-23720@lists.php.net to get a copy of this message
Commit: bb8f85adb47395b5e026baa8c0f270ff670c0130 Author: Hannes Magnusson <bjori@php.net> Wed, 29 Dec 2010 19:05:39 +0000 Parents: 8786ac9fd61d2a34be3c9b5cd452e860970e5d0b Branches: master Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=bb8f85adb47395b5e026baa8c0f270ff670c0130 Log: use the document language Changed paths: M js/common.js Diff: diff --git a/js/common.js b/js/common.js index 73905f2..a25a97c 100644 --- a/js/common.js +++ b/js/common.js @@ -113,10 +113,9 @@ function getDefaultSearchText() /** * Determine what language to present to the user. - * - * @todo make this detect the user's language. */ function getLanguage() { - return "en"; + return document.documentElement.lang; } +

« previous php.webmaster (#23720) next »