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/26 16:21:29 UTC
svn commit: r1613634 -
/openoffice/ooo-site/trunk/content/download/download.js
Author: marcus
Date: Sat Jul 26 14:21:29 2014
New Revision: 1613634
URL: http://svn.apache.org/r1613634
Log:
Convert 'pt-pt' into 'pt', otherwise the ISO code cannot be processed correctly
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=1613634&r1=1613633&r2=1613634&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/download.js (original)
+++ openoffice/ooo-site/trunk/content/download/download.js Sat Jul 26 14:21:29 2014
@@ -187,12 +187,6 @@ 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.
@@ -212,6 +206,11 @@ DL.getLanguage = function() {
language = languageCode;
}
}
+
+ // Fix for Portuguese (European) downloads as they are named only "pt" without region code!
+ if( languageCode === "pt" && regionCode.toLowerCase === "pt" ) {
+ language = languageCode;
+ }
} else {
// Choose the default for none given region code.
thisLanguage = thisLanguageSet[ "-" ];