Author: marcus
Date: Thu May 29 00:03:56 2014
New Revision: 1598175

URL: http://svn.apache.org/r1598175
Log:
Updated the error texts

Modified:
    openoffice/ooo-site/trunk/content/download/test/download_droplist.js

Modified: openoffice/ooo-site/trunk/content/download/test/download_droplist.js
URL: 
http://svn.apache.org/viewvc/openoffice/ooo-site/trunk/content/download/test/download_droplist.js?rev=1598175&r1=1598174&r2=1598175&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/test/download_droplist.js 
(original)
+++ openoffice/ooo-site/trunk/content/download/test/download_droplist.js Thu 
May 29 00:03:56 2014
@@ -920,16 +920,16 @@ function showErrorMessage( error_text ) 
        document.getElementById( "dl_f_lnk"     ).style.display = "inline";
        document.getElementById( "dl_f_lnk"     ).style.cursor  = "not-allowed";
        document.getElementById( "dl_f_lnk"     ).href          = 
"javascript:void( 0 )";
-       document.getElementById( "dl_f_lnk"     ).innerHTML     = error_text[ 0 
];
-       document.getElementById( "dl_f_lnk"     ).title         = error_text[ 1 
];
+       document.getElementById( "dl_f_lnk"     ).innerHTML     = "No full 
installation available";
+       document.getElementById( "dl_f_lnk"     ).title         = "Please 
select another language, platform or version.";
        document.getElementById( "dl_lp_lnk"    ).style.display = "inline";
        document.getElementById( "dl_lp_lnk"    ).style.cursor  = "not-allowed";
        document.getElementById( "dl_lp_lnk"    ).href          = 
"javascript:void( 0 )";
-       document.getElementById( "dl_lp_lnk"    ).innerHTML     = error_text[ 2 
];
-       document.getElementById( "dl_lp_lnk"    ).title         = error_text[ 3 
];
+       document.getElementById( "dl_lp_lnk"    ).innerHTML     = "No language 
pack available";
+       document.getElementById( "dl_lp_lnk"    ).title         = "Please 
select another language, platform or version.";
        document.getElementById( "dl_f_size_hl" ).style.display = "inline";
        document.getElementById( "dl_f_size_hl" ).style.cursor  = "default";
-       document.getElementById( "dl_f_size_hl" ).innerHTML     = error_text[ 4 
];
+       document.getElementById( "dl_f_size_hl" ).innerHTML     = error_text;
 
        SF      = false;
        OTHER   = false;
@@ -1135,7 +1135,7 @@ function getLink( rel_mode ) {
  * Depends on chosen OS, language and type
  */
 function getLinkSel( rel_mode ) {
-       var error_text;
+       var error_text = "";
 
        // Reset all error flags.
        SF      = false;
@@ -1173,10 +1173,8 @@ function getLinkSel( rel_mode ) {
        // If version is '4.1.0' (or newer) + platform is 'Mac OS X <= 10.6', 
show the none-availability to the user.
        if( VERSION_SEL == "4.1.0" && URL_PLATFORM == "MacOS_x86_install" ) {
                // Show an error message that the chosen items do not lead to a 
download.
-               error_text =  [ "No full installation available", "Please 
select another language, platform or version.",
-                               "No language pack available", "Please select 
another language, platform or version.",
-                               "Apache OpenOffice " + VERSION_SEL + " for <b>" 
+ UI_PLATFORM + "</b> is not available. "
-                             + "<br />Please select version 4.0.1 or older." ];
+               error_text = "Apache OpenOffice " + VERSION_SEL + " is not 
available for <b>" + UI_PLATFORM + "</b>."
+                            + "<br />Please select version 4.0.1 or older.";
 
                showErrorMessage( error_text );
 
@@ -1186,10 +1184,8 @@ function getLinkSel( rel_mode ) {
        // If version is '4.0.1' (or older) + platform is 'Mac OS X => 10.7', 
show the none-availability to the user.
        if( ( VERSION_SEL == "4.0.1" || VERSION_SEL == "4.0.0" ) && 
URL_PLATFORM == "MacOS_x86-64_install" ) {
                // Set the values for all elements that should not be empty.
-               error_text =  [ "No full installation available", "Please 
select another language, platform or version.",
-                               "No language pack available", "Please select 
another language, platform or version.",
-                               "Apache OpenOffice " + VERSION_SEL + " for <b>" 
+ UI_PLATFORM + "</b> is not available. "
-                             + "<br />Please select version 4.1.0 or newer." ];
+               error_text = "Apache OpenOffice " + VERSION_SEL + " is not 
available for <b>" + UI_PLATFORM + "</b>."
+                            + "<br />Please select version 4.1.0 or newer.";
 
                showErrorMessage( error_text );
 
@@ -1199,10 +1195,8 @@ function getLinkSel( rel_mode ) {
        // If recognized platform is not 'Windows', 'Linux' or 'Mac', show the 
none-availability to the user.
        if( UI_PLATFORM_NO_SUP != "" ) {
                // Show an error message that the chosen items do not lead to a 
download.
-               error_text =  [ "No full installation available", "Please 
select another language, platform or version.",
-                               "No language pack available", "Please select 
another language, platform or version.",
-                               "Apache OpenOffice " + VERSION_SEL + " for <b>" 
+ UI_PLATFORM_NO_SUP + "</b> is not "
-                             + "available. <br />Please select a platform for 
Windows, Linux or OS X." ];
+               error_text = "Apache OpenOffice " + VERSION_SEL + " is not 
available for <b>" + UI_PLATFORM_NO_SUP + "</b>."
+                            + "<br />Please select a platform for Windows, 
Linux or OS X.";
 
                showErrorMessage( error_text );
 
@@ -1226,11 +1220,8 @@ function getLinkSel( rel_mode ) {
                        LINK_LP       = LINK_LP;
                }
                // Show an error message that the chosen items do not lead to a 
download.
-               error_text =  [ "No full installation available", "Please 
select another language, platform or version.",
-                               "No language pack available", "Please select 
another language, platform or version.",
-                               "Apache OpenOffice " + VERSION_SEL + " for <b>" 
+ RELEASE_MATRIX_LANG[ 1 ]
-                             + " (" + RELEASE_MATRIX_LANG[ 2 ] + ")</b> is not 
available. "
-                             + "<br />Please choose another language or 
version." ];
+               error_text = "Apache OpenOffice " + VERSION_SEL + " is not 
available for <b>" + RELEASE_MATRIX_LANG[ 1 ]
+                            + " (" + RELEASE_MATRIX_LANG[ 2 ] + ")</b>.<br 
/>Please choose another language or version.";
                showErrorMessage( error_text );
 
                return;


Reply via email to