openoffice-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject svn commit: r1653096 - /openoffice/ooo-site/trunk/content/index.html
Date Mon, 19 Jan 2015 19:54:13 GMT
Author: marcus
Date: Mon Jan 19 19:54:13 2015
New Revision: 1653096

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

Modified:
    openoffice/ooo-site/trunk/content/index.html

Modified: openoffice/ooo-site/trunk/content/index.html
URL: http://svn.apache.org/viewvc/openoffice/ooo-site/trunk/content/index.html?rev=1653096&r1=1653095&r2=1653096&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/index.html (original)
+++ openoffice/ooo-site/trunk/content/index.html Mon Jan 19 19:54:13 2015
@@ -144,6 +144,12 @@
 		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 ) {



Mime
View raw message