Author: marcus
Date: Tue Jun 10 18:27:56 2014
New Revision: 1601728
URL: http://svn.apache.org/r1601728
Log:
Changed variable assignments to be able to use localized webpage files
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=1601728&r1=1601727&r2=1601728&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/test/download.js (original)
+++ openoffice/ooo-site/trunk/content/download/test/download.js Tue Jun 10
18:27:56 2014
@@ -591,11 +591,8 @@ function getLinkSel() {
// In general, reset the data for link, text and title of all
elements.
resetElements();
- // Set the URL to the archive as download link.
- LINK_FULL = FILE_PORTING;
-
- // Set the values for only one download text button.
- document.getElementById( "dl_f_link" ).href =
LINK_FULL;
+ // Set the values for the single download text button.
+ document.getElementById( "dl_f_link" ).href =
l10n_download_porting_link;
document.getElementById( "dl_f_link" ).target =
"_blank";
document.getElementById( "dl_f_link" ).innerHTML =
l10n_download_full_link_porting_text;
document.getElementById( "dl_f_link" ).title =
l10n_download_full_link_porting_title;
@@ -614,11 +611,8 @@ function getLinkSel() {
// In general, reset the data for link, text and title of all
elements.
resetElements();
- // Set the URL to the archive as download link.
- LINK_FULL = FILE_ARCHIVE;
-
- // Set the values for only one download text button.
- document.getElementById( "dl_f_link" ).href =
LINK_FULL;
+ // Set the values for the single download text button.
+ document.getElementById( "dl_f_link" ).href =
l10n_download_archive_link;
document.getElementById( "dl_f_link" ).target =
"_blank";
document.getElementById( "dl_f_link" ).innerHTML =
l10n_download_full_link_archive_text;
document.getElementById( "dl_f_link" ).title =
l10n_download_full_link_archive_title;
@@ -732,19 +726,19 @@ function getLinkSel() {
document.getElementById( "dl_hlp_img" ).src =
FILE_FULL_LP_IMG;
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 =
FILE_FULL_LP;
+ 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 =
FILE_CHECKSUMS_IMG;
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 =
FILE_CHECKSUMS;
+ 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 =
FILE_ANALYZE_IMG;
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 =
FILE_ANALYZE;
+ 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;