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/06/10 20:02:56 UTC

svn commit: r1601711 - /openoffice/ooo-site/trunk/content/download/download.js

Author: marcus
Date: Tue Jun 10 18:02:55 2014
New Revision: 1601711

URL: http://svn.apache.org/r1601711
Log:
Changed variable assignments to be able to use localized webpage files

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=1601711&r1=1601710&r2=1601711&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/download.js (original)
+++ openoffice/ooo-site/trunk/content/download/download.js Tue Jun 10 18:02:55 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;