Author: marcus
Date: Sat Jul 26 16:26:45 2014
New Revision: 1613671
URL: http://svn.apache.org/r1613671
Log:
Convert 'pt-pt' or 'pt-PT' into 'pt', otherwise the ISO code cannot be
processed correctly
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=1613671&r1=1613670&r2=1613671&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/index.html (original)
+++ openoffice/ooo-site/trunk/content/index.html Sat Jul 26 16:26:45 2014
@@ -112,6 +112,11 @@
};
}
+ // Fix for Portuguese (European) as they are named only "pt" without
region code!
+ if( lang_iso === "pt-pt" || lang_iso === "pt-PT" ) {
+ lang_iso = "pt";
+ }
+
// 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 ) {