You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ma...@apache.org on 2015/01/19 20:57:58 UTC

svn commit: r1653098 - /openoffice/ooo-site/trunk/content/scripts/ooo.js

Author: marcus
Date: Mon Jan 19 19:57:57 2015
New Revision: 1653098

URL: http://svn.apache.org/r1653098
Log:
Added a special case handling for English as main language for the website

Modified:
    openoffice/ooo-site/trunk/content/scripts/ooo.js

Modified: openoffice/ooo-site/trunk/content/scripts/ooo.js
URL: http://svn.apache.org/viewvc/openoffice/ooo-site/trunk/content/scripts/ooo.js?rev=1653098&r1=1653097&r2=1653098&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/scripts/ooo.js (original)
+++ openoffice/ooo-site/trunk/content/scripts/ooo.js Mon Jan 19 19:57:57 2015
@@ -282,6 +282,12 @@ INDEX.setRedirect = function() {
 		lang_iso = "pt";
 	}
 
+	// Fix for English as main language for the website, it does not need a language code.
+	if( lang_iso === "en-us" || lang_iso === "en-gb" || lang_iso === "en-uk" || lang_iso === "en" ||
+	    lang_iso === "en-US" || lang_iso === "en-GB" || lang_iso === "en-UK" ) {
+		lang_iso = "";
+	}
+
 	// Query if the browser language is one of the released languages.
 	// The array has 3 elements per language (defined in "/download/globalvars.js"
 	for( var i = 0, j = DL.SEL_LANG.length; i < j; i = i + 3 ) {