Author: buildbot
Date: Tue Mar 25 22:04:05 2014
New Revision: 903622
Log:
Staging update by buildbot for ooo-site
Modified:
websites/staging/ooo-site/trunk/cgi-bin/ (props changed)
websites/staging/ooo-site/trunk/content/ (props changed)
websites/staging/ooo-site/trunk/content/download/download.js
Propchange: websites/staging/ooo-site/trunk/cgi-bin/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Tue Mar 25 22:04:05 2014
@@ -1 +1 @@
-1581554
+1581556
Propchange: websites/staging/ooo-site/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Tue Mar 25 22:04:05 2014
@@ -1 +1 @@
-1581554
+1581556
Modified: websites/staging/ooo-site/trunk/content/download/download.js
==============================================================================
--- websites/staging/ooo-site/trunk/content/download/download.js (original)
+++ websites/staging/ooo-site/trunk/content/download/download.js Tue Mar 25
22:04:05 2014
@@ -2,9 +2,9 @@
* Overview of all functions defined below
* ---------------------------------------
* function getLanguage ()
- * function hasMirrorLink ()
- * function getLink ()
- * function getPlatform ()
+ * function hasMirrorLink ( rel_mode )
+ * function getLink ( rel_mode )
+ * function getPlatform ( rel_mode )
* function openItem ( itemid, uri )
*/
@@ -108,13 +108,42 @@ function getLanguage() {
* Get flag for mirror link
* Depends on array-list
*/
-function hasMirrorLink() {
- // Check the flag in "languages.js", 'y' -> provide download link, 'n'
-> redirect to alternative webpage
+function hasMirrorLink( rel_mode ) {
+
+ if ( rel_mode == 0 ) {
+ // Release mode
+ // First check if the Beta release languages (not available as
current stable release !) are set in browser
+ if ( LANG_ISO == "bg" || LANG_ISO == "da" || LANG_ISO == "hi"
|| LANG_ISO == "nb" || LANG_ISO == "th" ) {
+ SOURCEFORGE = false;
+ OTHER = true;
+ ARCHIVE = false;
+ ERROR = true;
+ return false;
+ }
+ // Check the flag in "languages.js", 'y' -> provide download
link, 'n' -> redirect to alternative webpage
+ if ( LANG_ARRAY[ 3 ] == 'y' ) {
+ return true;
+ } else {
+ ERROR = true;
+ return false;
+ }
+ } else {
+ // Beta release mode
+ // Check the flag in "languages.js", 'y' -> provide download
link, 'n' -> redirect to alternative webpage
+ if ( LANG_ARRAY[ 3 ] == 'y' ) {
+ return true;
+ } else {
+ ERROR = true;
+ return false;
+ }
+ }
+/*
if ( LANG_ARRAY[ 3 ] == 'y' )
return true;
else
ERROR = true;
return false;
+*/
}
/*
@@ -130,7 +159,7 @@ function getLink( rel_mode ) {
getLanguage();
getPlatform( rel_mode );
- if ( hasMirrorLink() ) {
+ if ( hasMirrorLink( rel_mode ) ) {
getFilesize( rel_mode );
}
/*
@@ -144,7 +173,7 @@ function getLink( rel_mode ) {
*/
// If language is supported, then provide a download link.
- if ( hasMirrorLink() ) {
+ if ( hasMirrorLink( rel_mode ) ) {
// Release mode
if ( rel_mode == 0 ) {
// If platform is too old, then provide a general
download link to the archive.