Return-Path: X-Original-To: apmail-openoffice-commits-archive@www.apache.org Delivered-To: apmail-openoffice-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9A76911FF8 for ; Sat, 26 Jul 2014 15:13:20 +0000 (UTC) Received: (qmail 67793 invoked by uid 500); 26 Jul 2014 15:13:20 -0000 Delivered-To: apmail-openoffice-commits-archive@openoffice.apache.org Received: (qmail 67751 invoked by uid 500); 26 Jul 2014 15:13:20 -0000 Mailing-List: contact commits-help@openoffice.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openoffice.apache.org Delivered-To: mailing list commits@openoffice.apache.org Received: (qmail 67742 invoked by uid 99); 26 Jul 2014 15:13:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Jul 2014 15:13:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Jul 2014 15:13:22 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 2A3EF2388831; Sat, 26 Jul 2014 15:12:57 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1613648 - /openoffice/ooo-site/trunk/content/download/download.js Date: Sat, 26 Jul 2014 15:12:57 -0000 To: commits@openoffice.apache.org From: marcus@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20140726151257.2A3EF2388831@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: marcus Date: Sat Jul 26 15:12:56 2014 New Revision: 1613648 URL: http://svn.apache.org/r1613648 Log: Convert 'pt-pt' or '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=1613648&r1=1613647&r2=1613648&view=diff ============================================================================== --- openoffice/ooo-site/trunk/content/download/download.js (original) +++ openoffice/ooo-site/trunk/content/download/download.js Sat Jul 26 15:12:56 2014 @@ -187,6 +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. @@ -206,11 +212,6 @@ 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[ "-" ];