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 16:40:35 UTC
svn commit: r1609933 -
/openoffice/ooo-site/trunk/content/download/test/download.js
Author: marcus
Date: Sat Jul 12 14:40:34 2014
New Revision: 1609933
URL: http://svn.apache.org/r1609933
Log:
Updated variables to use them as its object properties
Modified:
openoffice/ooo-site/trunk/content/download/test/download.js
Modified: openoffice/ooo-site/trunk/content/download/test/download.js
URL: http://svn.apache.org/viewvc/openoffice/ooo-site/trunk/content/download/test/download.js?rev=1609933&r1=1609932&r2=1609933&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/test/download.js (original)
+++ openoffice/ooo-site/trunk/content/download/test/download.js Sat Jul 12 14:40:34 2014
@@ -34,7 +34,7 @@
* @param: release_mode - The release mode (stable, beta, etc.) that the scriping should work with
* @return: None
*/
-function init( release_mode ) {
+DL.init = function( release_mode ) {
// Set global variables.
DL.initVariables( 1 );
@@ -139,8 +139,8 @@ DL.getLanguage = function() {
var language = "";
// If available, use the manual set ISO code (see "index.html") that overrides $LANG_ISO.
- if( NL_LANG !== "" ) {
- language = NL_LANG;
+ if( DL.NL_LANG !== "" ) {
+ language = DL.NL_LANG;
// Else if available, use the selected language from select box.
} else if( DL.LANG_SEL !== "" ) {
@@ -241,11 +241,11 @@ DL.fillOSSelection = function() {
// Check if the option names are localized.
// If the first string in the array element is larger than 0, assume all are localized and should be used.
- if ( l10n_download_green_box_select_box_os_values[ 0 ].length > 0 ) {
+ if ( l10n.dl_green_box_select_box_os_values[ 0 ].length > 0 ) {
// Search through the localized names.
- for( i = 0, j = l10n_download_green_box_select_box_os_values.length; i < j; i++ ) {
+ for( i = 0, j = l10n.dl_green_box_select_box_os_values.length; i < j; i++ ) {
// Exchange only the default UI platform name with the localized name.
- selection.options[ i ].text = l10n_download_green_box_select_box_os_values[ i ];
+ selection.options[ i ].text = l10n.dl_green_box_select_box_os_values[ i ];
}
}
@@ -276,11 +276,11 @@ DL.fillLanguageSelection = function() {
// Check if the option names are localized.
// If the first string in the array element is larger than 0, assume all are localized and should be used.
- if ( l10n_download_green_box_select_box_language_values[ 0 ].length > 0 ) {
+ if ( l10n.dl_green_box_select_box_language_values[ 0 ].length > 0 ) {
// Search through the localized names.
- for( i = 0, j = l10n_download_green_box_select_box_language_values.length; i < j; i++ ) {
+ for( i = 0, j = l10n.dl_green_box_select_box_language_values.length; i < j; i++ ) {
// Exchange only the default language name with the localized name.
- selection.options[ i ].text = l10n_download_green_box_select_box_language_values[ i ];
+ selection.options[ i ].text = l10n.dl_green_box_select_box_language_values[ i ];
}
}
@@ -309,11 +309,11 @@ DL.fillVersionSelection = function() {
// Check if the option names are localized.
// If the first string in the array element is larger than 0, assume all are localized and should be used.
- if ( l10n_download_green_box_select_box_version_values[ 0 ].length > 0 ) {
+ if ( l10n.dl_green_box_select_box_version_values[ 0 ].length > 0 ) {
// Search through the localized names.
- for( i = 0, j = l10n_download_green_box_select_box_version_values.length; i < j; i++ ) {
+ for( i = 0, j = l10n.dl_green_box_select_box_version_values.length; i < j; i++ ) {
// Exchange only the default version name with the localized name.
- selection.options[ i ].text = l10n_download_green_box_select_box_version_values[ i ];
+ selection.options[ i ].text = l10n.dl_green_box_select_box_version_values[ i ];
}
}
@@ -542,17 +542,17 @@ DL.showErrorMessage = function( error_te
document.getElementById( "dl_f_link" ).style.display = "inline";
document.getElementById( "dl_f_link" ).style.cursor = "not-allowed";
document.getElementById( "dl_f_link" ).href = "javascript:void( 0 )";
- document.getElementById( "dl_f_link" ).innerHTML = l10n_download_full_link_error_text;
- document.getElementById( "dl_f_link" ).title = l10n_download_full_link_error_title;
+ document.getElementById( "dl_f_link" ).innerHTML = l10n.dl_full_link_error_text;
+ document.getElementById( "dl_f_link" ).title = l10n.dl_full_link_error_title;
document.getElementById( "dl_lp_link" ).style.display = "inline";
document.getElementById( "dl_lp_link" ).style.cursor = "not-allowed";
document.getElementById( "dl_lp_link" ).href = "javascript:void( 0 )";
- document.getElementById( "dl_lp_link" ).innerHTML = l10n_download_langpack_link_error_text;
- document.getElementById( "dl_lp_link" ).title = l10n_download_langpack_link_error_title;
+ document.getElementById( "dl_lp_link" ).innerHTML = l10n.dl_langpack_link_error_text;
+ document.getElementById( "dl_lp_link" ).title = l10n.dl_langpack_link_error_title;
- document.getElementById( "dl_err_img" ).src = l10n_download_error_problem_img_src;
- document.getElementById( "dl_err_img" ).title = l10n_download_error_problem_img_title;
- document.getElementById( "dl_err_img" ).alt = l10n_download_error_problem_img_alt;
+ document.getElementById( "dl_err_img" ).src = l10n.dl_error_problem_img_src;
+ document.getElementById( "dl_err_img" ).title = l10n.dl_error_problem_img_title;
+ document.getElementById( "dl_err_img" ).alt = l10n.dl_error_problem_img_alt;
document.getElementById( "dl_err_img" ).style.display = "inline-block";
document.getElementById( "dl_err" ).innerHTML = "<br />" + error_text;
document.getElementById( "dl_err" ).style.fontSize = "1.2em";
@@ -626,19 +626,19 @@ DL.checkForLinkExceptions = function() {
// Show an error message that the chosen items do not lead to a download.
// If a customized string is not available in the "msg_prop_l10n_XX.js" file.
- if( l10n_download_error_custom_4_text === "" ) {
+ if( l10n.dl_error_custom_4_text === "" ) {
// Show the default error text.
- var error_text = "<b>" + l10n_download_error_problem_text + "</b>"
- + l10n_download_error_aoo_text + DL.VERSION_SEL
- + l10n_download_error_not_available_for_text
+ var error_text = "<b>" + l10n.dl_error_problem_text + "</b>"
+ + l10n.dl_error_aoo_text + DL.VERSION_SEL
+ + l10n.dl_error_not_available_for_text
+ "<b>" + DL.RELEASE_LANG[ 1 ]
+ " (" + DL.RELEASE_LANG[ 2 ] + ") (" + DL.LANG_SEL + ")</b>."
+ "<br />"
- + "<b>" + l10n_download_error_solution_text + "</b>"
- + l10n_download_error_please_select_4_text;
+ + "<b>" + l10n.dl_error_solution_text + "</b>"
+ + l10n.dl_error_please_select_4_text;
} else {
// Show the customized error text.
- var error_text = l10n_download_error_custom_4_text;
+ var error_text = l10n.dl_error_custom_4_text;
}
DL.showErrorMessage( error_text );
@@ -649,18 +649,18 @@ DL.checkForLinkExceptions = function() {
// Show an error message that the chosen items do not lead to a download.
// If a customized string is not available in the "msg_prop_l10n_XX.js" file.
- if( l10n_download_error_custom_3_text === "" ) {
+ if( l10n.dl_error_custom_3_text === "" ) {
// Show the default error text.
- var error_text = "<b>" + l10n_download_error_problem_text + "</b>"
- + l10n_download_error_aoo_text + DL.VERSION_SEL
- + l10n_download_error_not_available_for_text
+ var error_text = "<b>" + l10n.dl_error_problem_text + "</b>"
+ + l10n.dl_error_aoo_text + DL.VERSION_SEL
+ + l10n.dl_error_not_available_for_text
+ "<b>" + DL.UI_PLATFORM_NO_SUP + "</b>."
+ "<br />"
- + "<b>" + l10n_download_error_solution_text + "</b>"
- + l10n_download_error_please_select_3_text;
+ + "<b>" + l10n.dl_error_solution_text + "</b>"
+ + l10n.dl_error_please_select_3_text;
} else {
// Show the customized error text.
- var error_text = l10n_download_error_custom_3_text;
+ var error_text = l10n.dl_error_custom_3_text;
}
DL.showErrorMessage( error_text );
@@ -671,18 +671,18 @@ DL.checkForLinkExceptions = function() {
// Show an error message that the chosen items do not lead to a download.
// If a customized string is not available in the "msg_prop_l10n_XX.js" file.
- if( l10n_download_error_custom_1_text === "" ) {
+ if( l10n.dl_error_custom_1_text === "" ) {
// Show the default error text.
- var error_text = "<b>" + l10n_download_error_problem_text + "</b>"
- + l10n_download_error_aoo_text + DL.VERSION_SEL
- + l10n_download_error_not_available_for_text
+ var error_text = "<b>" + l10n.dl_error_problem_text + "</b>"
+ + l10n.dl_error_aoo_text + DL.VERSION_SEL
+ + l10n.dl_error_not_available_for_text
+ "<b>" + DL.UI_PLATFORM + "</b>."
+ "<br />"
- + "<b>" + l10n_download_error_solution_text + "</b>"
- + l10n_download_error_please_select_1_text;
+ + "<b>" + l10n.dl_error_solution_text + "</b>"
+ + l10n.dl_error_please_select_1_text;
} else {
// Show the customized error text.
- var error_text = l10n_download_error_custom_1_text;
+ var error_text = l10n.dl_error_custom_1_text;
}
DL.showErrorMessage( error_text );
@@ -693,18 +693,18 @@ DL.checkForLinkExceptions = function() {
// Show an error message that the chosen items do not lead to a download.
// If a customized string is not available in the "msg_prop_l10n_XX.js" file.
- if( l10n_download_error_custom_2_text === "" ) {
+ if( l10n.dl_error_custom_2_text === "" ) {
// Show the default error text.
- var error_text = "<b>" + l10n_download_error_problem_text + "</b>"
- + l10n_download_error_aoo_text + DL.VERSION_SEL
- + l10n_download_error_not_available_for_text
+ var error_text = "<b>" + l10n.dl_error_problem_text + "</b>"
+ + l10n.dl_error_aoo_text + DL.VERSION_SEL
+ + l10n.dl_error_not_available_for_text
+ "<b>" + DL.UI_PLATFORM + "</b>."
+ "<br />"
- + "<b>" + l10n_download_error_solution_text + "</b>"
- + l10n_download_error_please_select_2_text;
+ + "<b>" + l10n.dl_error_solution_text + "</b>"
+ + l10n.dl_error_please_select_2_text;
} else {
// Show the customized error text.
- var error_text = l10n_download_error_custom_2_text;
+ var error_text = l10n.dl_error_custom_2_text;
}
DL.showErrorMessage( error_text );
@@ -716,9 +716,9 @@ DL.checkForLinkExceptions = function() {
DL.hideElements();
// Set the values for the single download text button.
- document.getElementById( "dl_f_link" ).href = l10n_download_aoo341_link;
- document.getElementById( "dl_f_link" ).innerHTML = l10n_download_full_link_archive_text;
- document.getElementById( "dl_f_link" ).title = l10n_download_full_link_archive_title;
+ document.getElementById( "dl_f_link" ).href = l10n.dl_aoo341_link;
+ document.getElementById( "dl_f_link" ).innerHTML = l10n.dl_full_link_archive_text;
+ document.getElementById( "dl_f_link" ).title = l10n.dl_full_link_archive_title;
document.getElementById( "dl_f_link" ).style.cursor = "pointer";
document.getElementById( "dl_f_link" ).style.display = "inline";
document.getElementById( "dl_lp_link" ).style.display = "none";
@@ -733,9 +733,9 @@ DL.checkForLinkExceptions = function() {
DL.hideElements();
// Set the values for the single download text button.
- document.getElementById( "dl_f_link" ).href = l10n_download_porting_link;
- document.getElementById( "dl_f_link" ).innerHTML = l10n_download_full_link_porting_text;
- document.getElementById( "dl_f_link" ).title = l10n_download_full_link_porting_title;
+ document.getElementById( "dl_f_link" ).href = l10n.dl_porting_link;
+ document.getElementById( "dl_f_link" ).innerHTML = l10n.dl_full_link_porting_text;
+ document.getElementById( "dl_f_link" ).title = l10n.dl_full_link_porting_title;
document.getElementById( "dl_f_link" ).style.cursor = "pointer";
document.getElementById( "dl_f_link" ).style.display = "inline";
document.getElementById( "dl_lp_link" ).style.display = "none";
@@ -750,9 +750,9 @@ DL.checkForLinkExceptions = function() {
DL.hideElements();
// Set the values for the single download text button.
- document.getElementById( "dl_f_link" ).href = l10n_download_archive_link;
- document.getElementById( "dl_f_link" ).innerHTML = l10n_download_full_link_archive_text;
- document.getElementById( "dl_f_link" ).title = l10n_download_full_link_archive_title;
+ document.getElementById( "dl_f_link" ).href = l10n.dl_archive_link;
+ document.getElementById( "dl_f_link" ).innerHTML = l10n.dl_full_link_archive_text;
+ document.getElementById( "dl_f_link" ).title = l10n.dl_full_link_archive_title;
document.getElementById( "dl_f_link" ).style.cursor = "pointer";
document.getElementById( "dl_f_link" ).style.display = "inline";
document.getElementById( "dl_lp_link" ).style.display = "none";
@@ -812,82 +812,82 @@ DL.getLinkSelection = function() {
// Set the values for both download text buttons and set the focus to the "full install".
document.getElementById( "dl_f_link" ).href = DL.LINK_FULL;
- document.getElementById( "dl_f_link" ).innerHTML = l10n_download_full_link_text;
- document.getElementById( "dl_f_link" ).title = l10n_download_full_link_title + DL.FILENAME_FULL;
+ document.getElementById( "dl_f_link" ).innerHTML = l10n.dl_full_link_text;
+ document.getElementById( "dl_f_link" ).title = l10n.dl_full_link_title + DL.FILENAME_FULL;
document.getElementById( "dl_f_link" ).focus()
document.getElementById( "dl_lp_link" ).href = DL.LINK_LP;
- document.getElementById( "dl_lp_link" ).innerHTML = l10n_download_langpack_link_text;
- document.getElementById( "dl_lp_link" ).title = l10n_download_langpack_link_title + DL.FILENAME_LP;
+ document.getElementById( "dl_lp_link" ).innerHTML = l10n.dl_langpack_link_text;
+ document.getElementById( "dl_lp_link" ).title = l10n.dl_langpack_link_title + DL.FILENAME_LP;
// Set the values in the sub-box for the 4 text lines.
// #1 Release data and link to release notes.
- document.getElementById( "dl_rel_info" ).innerHTML = "<b>" + l10n_download_rel_info_headline_text
+ document.getElementById( "dl_rel_info" ).innerHTML = "<b>" + l10n.dl_rel_info_headline_text
+ "</b> " + DL.REL_TEXT + " | ";
document.getElementById( "dl_rel_notes" ).href = DL.REL_NOTES;
- document.getElementById( "dl_rel_notes" ).innerHTML = l10n_download_rel_notes_text;
- document.getElementById( "dl_rel_notes" ).title = l10n_download_rel_notes_title + DL.VERSION_SEL;
+ document.getElementById( "dl_rel_notes" ).innerHTML = l10n.dl_rel_notes_text;
+ document.getElementById( "dl_rel_notes" ).title = l10n.dl_rel_notes_title + DL.VERSION_SEL;
// #2 Full install: Data and links
- document.getElementById( "dl_f_info" ).innerHTML = "<b>" + l10n_download_headline_full_text + "</b>"
- + l10n_download_filesize_text + DL.FILESIZE_FULL
- + l10n_download_megabyte_text + " | "
- + l10n_download_checksum_headline_text;
+ document.getElementById( "dl_f_info" ).innerHTML = "<b>" + l10n.dl_headline_full_text + "</b>"
+ + l10n.dl_filesize_text + DL.FILESIZE_FULL
+ + l10n.dl_megabyte_text + " | "
+ + l10n.dl_checksum_headline_text;
document.getElementById( "dl_f_chk_keys" ).href = DL.LINK_CHK_KEYS;
- document.getElementById( "dl_f_chk_keys" ).innerHTML = l10n_download_checksum_keys_text;
- document.getElementById( "dl_f_chk_keys" ).title = l10n_download_checksum_keys_title;
+ document.getElementById( "dl_f_chk_keys" ).innerHTML = l10n.dl_checksum_keys_text;
+ document.getElementById( "dl_f_chk_keys" ).title = l10n.dl_checksum_keys_title;
document.getElementById( "space1" ).innerHTML = " , ";
document.getElementById( "dl_f_chk_asc" ).href = DL.LINK_CHK_ASC_FULL;
- document.getElementById( "dl_f_chk_asc" ).innerHTML = l10n_download_checksum_asc_text;
- document.getElementById( "dl_f_chk_asc" ).title = l10n_download_checksum_asc_title + DL.FILENAME_FULL;
+ document.getElementById( "dl_f_chk_asc" ).innerHTML = l10n.dl_checksum_asc_text;
+ document.getElementById( "dl_f_chk_asc" ).title = l10n.dl_checksum_asc_title + DL.FILENAME_FULL;
document.getElementById( "space2" ).innerHTML = " , ";
document.getElementById( "dl_f_chk_md5" ).href = DL.LINK_CHK_MD5_FULL;
- document.getElementById( "dl_f_chk_md5" ).innerHTML = l10n_download_checksum_md5_text;
- document.getElementById( "dl_f_chk_md5" ).title = l10n_download_checksum_md5_title + DL.FILENAME_FULL;
+ document.getElementById( "dl_f_chk_md5" ).innerHTML = l10n.dl_checksum_md5_text;
+ document.getElementById( "dl_f_chk_md5" ).title = l10n.dl_checksum_md5_title + DL.FILENAME_FULL;
document.getElementById( "space3" ).innerHTML = " , ";
document.getElementById( "dl_f_chk_sha256" ).href = DL.LINK_CHK_SHA256_FULL;
- document.getElementById( "dl_f_chk_sha256" ).innerHTML = l10n_download_checksum_sha256_text;
- document.getElementById( "dl_f_chk_sha256" ).title = l10n_download_checksum_sha256_title + DL.FILENAME_FULL;
+ document.getElementById( "dl_f_chk_sha256" ).innerHTML = l10n.dl_checksum_sha256_text;
+ document.getElementById( "dl_f_chk_sha256" ).title = l10n.dl_checksum_sha256_title + DL.FILENAME_FULL;
// #3 Langpack: Data and links
- document.getElementById( "dl_lp_info" ).innerHTML = "<b>" + l10n_download_headline_langpack_text
- + "</b>" + l10n_download_filesize_text
- + DL.FILESIZE_LP + l10n_download_megabyte_text
- + " | " + l10n_download_checksum_headline_text;
+ document.getElementById( "dl_lp_info" ).innerHTML = "<b>" + l10n.dl_headline_langpack_text
+ + "</b>" + l10n.dl_filesize_text
+ + DL.FILESIZE_LP + l10n.dl_megabyte_text
+ + " | " + l10n.dl_checksum_headline_text;
document.getElementById( "dl_lp_chk_keys" ).href = DL.LINK_CHK_KEYS;
- document.getElementById( "dl_lp_chk_keys" ).innerHTML = l10n_download_checksum_keys_text;
- document.getElementById( "dl_lp_chk_keys" ).title = l10n_download_checksum_keys_title;
+ document.getElementById( "dl_lp_chk_keys" ).innerHTML = l10n.dl_checksum_keys_text;
+ document.getElementById( "dl_lp_chk_keys" ).title = l10n.dl_checksum_keys_title;
document.getElementById( "space4" ).innerHTML = " , ";
document.getElementById( "dl_lp_chk_asc" ).href = DL.LINK_CHK_ASC_LP;
- document.getElementById( "dl_lp_chk_asc" ).innerHTML = l10n_download_checksum_asc_text;
- document.getElementById( "dl_lp_chk_asc" ).title = l10n_download_checksum_asc_title + DL.FILENAME_LP;
+ document.getElementById( "dl_lp_chk_asc" ).innerHTML = l10n.dl_checksum_asc_text;
+ document.getElementById( "dl_lp_chk_asc" ).title = l10n.dl_checksum_asc_title + DL.FILENAME_LP;
document.getElementById( "space5" ).innerHTML = " , ";
document.getElementById( "dl_lp_chk_md5" ).href = DL.LINK_CHK_MD5_LP;
- document.getElementById( "dl_lp_chk_md5" ).innerHTML = l10n_download_checksum_md5_text;
- document.getElementById( "dl_lp_chk_md5" ).title = l10n_download_checksum_md5_title + DL.FILENAME_LP;
+ document.getElementById( "dl_lp_chk_md5" ).innerHTML = l10n.dl_checksum_md5_text;
+ document.getElementById( "dl_lp_chk_md5" ).title = l10n.dl_checksum_md5_title + DL.FILENAME_LP;
document.getElementById( "space6" ).innerHTML = " , ";
document.getElementById( "dl_lp_chk_sha256" ).href = DL.LINK_CHK_SHA256_LP;
- document.getElementById( "dl_lp_chk_sha256" ).innerHTML = l10n_download_checksum_sha256_text;
- document.getElementById( "dl_lp_chk_sha256" ).title = l10n_download_checksum_sha256_title + DL.FILENAME_LP;
+ document.getElementById( "dl_lp_chk_sha256" ).innerHTML = l10n.dl_checksum_sha256_text;
+ document.getElementById( "dl_lp_chk_sha256" ).title = l10n.dl_checksum_sha256_title + DL.FILENAME_LP;
// #4 Links: Full vs. lp + verify checksums + report broken link.
- document.getElementById( "dl_hlp_img" ).src = l10n_download_help_img_src;
- document.getElementById( "dl_hlp_img" ).title = l10n_download_help_img_title;
- document.getElementById( "dl_hlp_img" ).alt = l10n_download_help_img_alt;
- document.getElementById( "dl_hlp" ).href = l10n_download_help_link;
- document.getElementById( "dl_hlp" ).innerHTML = l10n_download_help_text;
- document.getElementById( "dl_hlp" ).title = l10n_download_help_title;
- document.getElementById( "dl_chk_img" ).src = l10n_download_checksum_img_src;
- document.getElementById( "dl_chk_img" ).title = l10n_download_checksum_img_title;
- document.getElementById( "dl_chk_img" ).alt = l10n_download_checksum_img_alt;
- document.getElementById( "dl_chk" ).href = l10n_download_checksum_link;
- document.getElementById( "dl_chk" ).innerHTML = l10n_download_checksum_text;
- document.getElementById( "dl_chk" ).title = l10n_download_checksum_title;
- document.getElementById( "dl_rpt_img" ).src = l10n_download_report_img_src;
- document.getElementById( "dl_rpt_img" ).title = l10n_download_report_img_title;
- document.getElementById( "dl_rpt_img" ).alt = l10n_download_report_img_alt;
- document.getElementById( "dl_rpt" ).href = l10n_download_report_link;
- document.getElementById( "dl_rpt" ).innerHTML = l10n_download_report_text;
- document.getElementById( "dl_rpt" ).title = l10n_download_report_title;
+ document.getElementById( "dl_hlp_img" ).src = l10n.dl_help_img_src;
+ document.getElementById( "dl_hlp_img" ).title = l10n.dl_help_img_title;
+ document.getElementById( "dl_hlp_img" ).alt = l10n.dl_help_img_alt;
+ document.getElementById( "dl_hlp" ).href = l10n.dl_help_link;
+ document.getElementById( "dl_hlp" ).innerHTML = l10n.dl_help_text;
+ document.getElementById( "dl_hlp" ).title = l10n.dl_help_title;
+ document.getElementById( "dl_chk_img" ).src = l10n.dl_checksum_img_src;
+ document.getElementById( "dl_chk_img" ).title = l10n.dl_checksum_img_title;
+ document.getElementById( "dl_chk_img" ).alt = l10n.dl_checksum_img_alt;
+ document.getElementById( "dl_chk" ).href = l10n.dl_checksum_link;
+ document.getElementById( "dl_chk" ).innerHTML = l10n.dl_checksum_text;
+ document.getElementById( "dl_chk" ).title = l10n.dl_checksum_title;
+ document.getElementById( "dl_rpt_img" ).src = l10n.dl_report_img_src;
+ document.getElementById( "dl_rpt_img" ).title = l10n.dl_report_img_title;
+ document.getElementById( "dl_rpt_img" ).alt = l10n.dl_report_img_alt;
+ document.getElementById( "dl_rpt" ).href = l10n.dl_report_link;
+ document.getElementById( "dl_rpt" ).innerHTML = l10n.dl_report_text;
+ document.getElementById( "dl_rpt" ).title = l10n.dl_report_title;
// Show the CSS style for the normal sub-box and hide all elements for error text.
document.getElementById( "sub_box" ).className = "sub-green-sel";
@@ -1119,7 +1119,7 @@ DL.getPlatform = function() {
// If nothing was recognized until now, set $DL.UI_PLATFORM_NO_SUP to show it to the user.
if( DL.UI_PLATFORM === "" ) {
- DL.UI_PLATFORM_NO_SUP = l10n_download_unknown_platform_text;
+ DL.UI_PLATFORM_NO_SUP = l10n.dl_unknown_platform_text;
DL.ERROR = true;
}
@@ -1208,13 +1208,13 @@ DL.getFileData = function( version ) {
DL.FILESIZE_LP = DL.release_matrix_410[ DL.LANG_ISO ][ DL.RELEASE_PLATFORM_POS_LP ][ 1 ];
// Assign all values from the release data.
- DL.REL_TEXT = l10n_download_rel_info_milestone_text + DL.release_matrix_410[ "src" ][ 1 ][ 0 ]
- + " | " + l10n_download_rel_info_buildid_text + DL.release_matrix_410[ "src" ][ 1 ][ 1 ]
- + " | " + l10n_download_rel_info_svn_text + DL.release_matrix_410[ "src" ][ 1 ][ 2 ]
- + " | " + l10n_download_rel_info_rel_date_text + DL.release_matrix_410[ "src" ][ 1 ][ 3 ];
+ DL.REL_TEXT = l10n.dl_rel_info_milestone_text + DL.release_matrix_410[ "src" ][ 1 ][ 0 ]
+ + " | " + l10n.dl_rel_info_buildid_text + DL.release_matrix_410[ "src" ][ 1 ][ 1 ]
+ + " | " + l10n.dl_rel_info_svn_text + DL.release_matrix_410[ "src" ][ 1 ][ 2 ]
+ + " | " + l10n.dl_rel_info_rel_date_text + DL.release_matrix_410[ "src" ][ 1 ][ 3 ];
// Assign the link for release notes, depending on the version.
- DL.REL_NOTES = l10n_download_rel_notes_aoo410_link;
+ DL.REL_NOTES = l10n.dl_rel_notes_aoo410_link;
break;
case "4.0.1":
// Assign all values from the release matrix of language and platform.
@@ -1229,13 +1229,13 @@ DL.getFileData = function( version ) {
DL.FILESIZE_LP = DL.release_matrix_401[ DL.LANG_ISO ][ DL.RELEASE_PLATFORM_POS_LP ][ 1 ];
// Assign all values from the release data.
- DL.REL_TEXT = l10n_download_rel_info_milestone_text + DL.release_matrix_401[ "src" ][ 1 ][ 0 ]
- + " | " + l10n_download_rel_info_buildid_text + DL.release_matrix_401[ "src" ][ 1 ][ 1 ]
- + " | " + l10n_download_rel_info_svn_text + DL.release_matrix_401[ "src" ][ 1 ][ 2 ]
- + " | " + l10n_download_rel_info_rel_date_text + DL.release_matrix_401[ "src" ][ 1 ][ 3 ];
+ DL.REL_TEXT = l10n.dl_rel_info_milestone_text + DL.release_matrix_401[ "src" ][ 1 ][ 0 ]
+ + " | " + l10n.dl_rel_info_buildid_text + DL.release_matrix_401[ "src" ][ 1 ][ 1 ]
+ + " | " + l10n.dl_rel_info_svn_text + DL.release_matrix_401[ "src" ][ 1 ][ 2 ]
+ + " | " + l10n.dl_rel_info_rel_date_text + DL.release_matrix_401[ "src" ][ 1 ][ 3 ];
// Assign the link for release notes, depending on the version.
- DL.REL_NOTES = l10n_download_rel_notes_aoo401_link;
+ DL.REL_NOTES = l10n.dl_rel_notes_aoo401_link;
break;
case "4.0.0":
// Assign all values from the release matrix of language and platform.
@@ -1250,23 +1250,23 @@ DL.getFileData = function( version ) {
DL.FILESIZE_LP = DL.release_matrix_400[ DL.LANG_ISO ][ DL.RELEASE_PLATFORM_POS_LP ][ 1 ];
// Assign all values from the release data.
- DL.REL_TEXT = l10n_download_rel_info_milestone_text + DL.release_matrix_400[ "src" ][ 1 ][ 0 ]
- + " | " + l10n_download_rel_info_buildid_text + DL.release_matrix_400[ "src" ][ 1 ][ 1 ]
- + " | " + l10n_download_rel_info_svn_text + DL.release_matrix_400[ "src" ][ 1 ][ 2 ]
- + " | " + l10n_download_rel_info_rel_date_text + DL.release_matrix_400[ "src" ][ 1 ][ 3 ];
+ DL.REL_TEXT = l10n.dl_rel_info_milestone_text + DL.release_matrix_400[ "src" ][ 1 ][ 0 ]
+ + " | " + l10n.dl_rel_info_buildid_text + DL.release_matrix_400[ "src" ][ 1 ][ 1 ]
+ + " | " + l10n.dl_rel_info_svn_text + DL.release_matrix_400[ "src" ][ 1 ][ 2 ]
+ + " | " + l10n.dl_rel_info_rel_date_text + DL.release_matrix_400[ "src" ][ 1 ][ 3 ];
// Assign the link for release notes, depending on the version.
- DL.REL_NOTES = l10n_download_rel_notes_aoo400_link;
+ DL.REL_NOTES = l10n.dl_rel_notes_aoo400_link;
break;
default:
DL.FILENAME_FULL = "";
DL.FILENAME_LP = "";
DL.FILESIZE_FULL = -1;
DL.FILESIZE_LP = -1;
- DL.REL_TEXT = l10n_download_rel_info_milestone_text + "? | "
- + l10n_download_rel_info_buildid_text + "? | "
- + l10n_download_rel_info_svn_text + "? | "
- + l10n_download_rel_info_rel_date_text + "?";
+ DL.REL_TEXT = l10n.dl_rel_info_milestone_text + "? | "
+ + l10n.dl_rel_info_buildid_text + "? | "
+ + l10n.dl_rel_info_svn_text + "? | "
+ + l10n.dl_rel_info_rel_date_text + "?";
DL.REL_NOTES = "";
DL.ERROR = true;
}