diff --git a/include/langchooser.inc b/include/langchooser.inc index f86ef8e83f..40790ad9d2 100644 --- a/include/langchooser.inc +++ b/include/langchooser.inc @@ -50,9 +50,6 @@ function language_choose_code() // Specified for the request (GET/POST parameter) if (!empty($_REQUEST['lang']) && is_string($_REQUEST['lang'])) { $explicitly_specified = language_add(htmlspecialchars($_REQUEST['lang'], ENT_QUOTES, 'UTF-8'), $languages); - - // Set the language in a cookie for a year - mirror_setcookie("LAST_LANG", $explicitly_specified, 60 * 60 * 24 * 365); } // Specified in a shortcut URL (eg. /en/echo or /pt_br/echo) @@ -82,9 +79,6 @@ function language_choose_code() if (empty($explicitly_specified)) { $explicitly_specified = $flang; } - - // Set the language in a cookie for a year - mirror_setcookie("LAST_LANG", $flang, 60 * 60 * 24 * 365); } // Honor the users own language setting (if available) diff --git a/my.php b/my.php index a2c4d7c931..dd68a9d3bd 100644 --- a/my.php +++ b/my.php @@ -94,9 +94,8 @@ If you use a shortcut or search for a function, the language used is determined by checking for the following settings. The list is in priority order, the first is the most important. Normally you don't - need to set your preferred language, as your last seen language is - always remembered, and is a good estimate of your preferred language - most of the time. + need to set your preferred language, as your browser's language preferences + are detected automatically using the Accept-Language header.