Author: marcus
Date: Thu May 17 13:47:39 2012
New Revision: 1339602
URL: http://svn.apache.org/viewvc?rev=1339602&view=rev
Log:
Fixed a problem when the browser doesn't provide a preferred language and
therefore no language is recognized
Modified:
incubator/ooo/ooo-site/trunk/content/download/download_new_dl.js
Modified: incubator/ooo/ooo-site/trunk/content/download/download_new_dl.js
URL:
http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/download/download_new_dl.js?rev=1339602&r1=1339601&r2=1339602&view=diff
==============================================================================
--- incubator/ooo/ooo-site/trunk/content/download/download_new_dl.js (original)
+++ incubator/ooo/ooo-site/trunk/content/download/download_new_dl.js Thu May 17
13:47:39 2012
@@ -273,7 +273,7 @@ function getArray() {
// Convert "en" to "en-US" as well since en-US build is the canonical
// translation, and thus better tested.
- if (language == "" || language == "null" || language == "en") language
= "en-US";
+ if (!language || language == "" || language == "null" || language ==
"en") language = "en-US";
// Konqueror uses '_' where other browsers use '-'.
if (language.indexOf("_") != -1) {