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 2014/07/12 19:50:31 UTC
svn commit: r1610012 -
/openoffice/ooo-site/trunk/content/download/download.js
Author: marcus
Date: Sat Jul 12 17:50:30 2014
New Revision: 1610012
URL: http://svn.apache.org/r1610012
Log:
Commented out the code parts that do a special treatment for Portuguese (European)
Modified:
openoffice/ooo-site/trunk/content/download/download.js
Modified: openoffice/ooo-site/trunk/content/download/download.js
URL: http://svn.apache.org/viewvc/openoffice/ooo-site/trunk/content/download/download.js?rev=1610012&r1=1610011&r2=1610012&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/download.js (original)
+++ openoffice/ooo-site/trunk/content/download/download.js Sat Jul 12 17:50:30 2014
@@ -161,11 +161,12 @@ DL.getLanguage = function() {
if( !language || language === "" || language == null || language === "en" ) {
language = "en-US";
}
+/*
// Assign "pt-PT" if only "pt" is set.
if( language === "pt" ) {
language = "pt-PT";
}
-
+*/
// Konqueror uses '_' where other browsers use '-'.
if( language.indexOf( "_" ) !== -1 ) {
// Change a contained '_' into a '-'.
@@ -186,11 +187,12 @@ DL.getLanguage = function() {
}
if( regionCode != null ) {
+/*
// Fix for Portuguese (European) downloads as they are named only "pt" without region code!
if( languageCode === "pt" && regionCode === "pt" ) {
language = languageCode;
}
-
+*/
// If an additional region code was found.
if( thisLanguageSet[ regionCode ] != null ) {
// Assign langCode-regionCode.