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:38:24 UTC
svn commit: r1609929 -
/openoffice/ooo-site/trunk/content/download/test/analyze.html
Author: marcus
Date: Sat Jul 12 14:38:24 2014
New Revision: 1609929
URL: http://svn.apache.org/r1609929
Log:
Updated variables to use them as its object properties
Modified:
openoffice/ooo-site/trunk/content/download/test/analyze.html
Modified: openoffice/ooo-site/trunk/content/download/test/analyze.html
URL: http://svn.apache.org/viewvc/openoffice/ooo-site/trunk/content/download/test/analyze.html?rev=1609929&r1=1609928&r2=1609929&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/test/analyze.html (original)
+++ openoffice/ooo-site/trunk/content/download/test/analyze.html Sat Jul 12 14:38:24 2014
@@ -36,27 +36,27 @@
<script type="text/javascript">
<!--
document.write( ""
- + "<h1>" + l10n_download_analyze_headline_text + "</h1>"
+ + "<h1>" + l10n.dl_analyze_headline_text + "</h1>"
+ "<p>"
+ "<ol style='padding: 0px 0px 0px 15px; list-style: disc outside none;'>"
- + "<li>" + l10n_download_analyze_instruction_select_text + "</li>"
- + "<li>" + l10n_download_analyze_instruction_verify_text + "</li>"
- + "<li>" + l10n_download_analyze_instruction_click_text + "<b>[ " + l10n_download_analyze_update_button_text + " ]</b></li>"
- + "<li>" + l10n_download_analyze_instruction_click_text + "<b>[ " + l10n_download_analyze_select_button_text + " ]</b></li>"
- + "<li>" + l10n_download_analyze_instruction_copy_text + "<b>[ " + l10n_download_analyze_copy_button_text + " ]</b></li>"
+ + "<li>" + l10n.dl_analyze_instruction_select_text + "</li>"
+ + "<li>" + l10n.dl_analyze_instruction_verify_text + "</li>"
+ + "<li>" + l10n.dl_analyze_instruction_click_text + "<b>[ " + l10n.dl_analyze_update_button_text + " ]</b></li>"
+ + "<li>" + l10n.dl_analyze_instruction_click_text + "<b>[ " + l10n.dl_analyze_select_button_text + " ]</b></li>"
+ + "<li>" + l10n.dl_analyze_instruction_copy_text + "<b>[ " + l10n.dl_analyze_copy_button_text + " ]</b></li>"
+ "<br />"
- + "<li><b>" + l10n_download_analyze_instruction_new_mail_text + "</b></li>"
- + "<li>" + l10n_download_analyze_instruction_problem_text + "</li>"
- + "<li>" + l10n_download_analyze_instruction_details_text + "</li>"
- + "<li><b>" + l10n_download_analyze_instruction_paste_text + "</b></li>"
- + "<li>" + l10n_download_analyze_instruction_only_download_text + "</li>"
- + "<li><b>" + l10n_download_analyze_instruction_no_install_text + "</b></li>"
- + "<li>" + l10n_download_analyze_instruction_send_mail_text
+ + "<li><b>" + l10n.dl_analyze_instruction_new_mail_text + "</b></li>"
+ + "<li>" + l10n.dl_analyze_instruction_problem_text + "</li>"
+ + "<li>" + l10n.dl_analyze_instruction_details_text + "</li>"
+ + "<li><b>" + l10n.dl_analyze_instruction_paste_text + "</b></li>"
+ + "<li>" + l10n.dl_analyze_instruction_only_download_text + "</li>"
+ + "<li><b>" + l10n.dl_analyze_instruction_no_install_text + "</b></li>"
+ + "<li>" + l10n.dl_analyze_instruction_send_mail_text
+ "<a href='mailto:dev@openoffice.apache.org?subject=Reporting%20broken%20download%20link'"
- + "title='" + l10n_download_analyze_instruction_mailing_list_title + "'>"
- + "<b>" + l10n_download_analyze_instruction_mailing_list_text + "</b>"
+ + "title='" + l10n.dl_analyze_instruction_mailing_list_title + "'>"
+ + "<b>" + l10n.dl_analyze_instruction_mailing_list_text + "</b>"
+ "</a>. *)"
+ "</li>"
+ "</ol>"
@@ -64,12 +64,12 @@
+ "*) "
+ "<a href='http://openoffice.apache.org/mailing-lists.html' target='_blank'"
- + "title='" + l10n_download_analyze_instruction_learn_more_title + "'>"
- + "<b>" + l10n_download_analyze_instruction_learn_more_text + "</b>"
+ + "title='" + l10n.dl_analyze_instruction_learn_more_title + "'>"
+ + "<b>" + l10n.dl_analyze_instruction_learn_more_text + "</b>"
+ "</a>."
- + "<h3>" + l10n_download_analyze_instruction_answer_text
- + "<br />" + l10n_download_analyze_instruction_thanks_text + "</h3>"
+ + "<h3>" + l10n.dl_analyze_instruction_answer_text
+ + "<br />" + l10n.dl_analyze_instruction_thanks_text + "</h3>"
+ "<p> </p>"
+ "</p>" );
@@ -85,7 +85,7 @@
<!--
// The text in the H1 tag is intentionally shown as "display: none" (do not display).
// This is to please accessibility tools like a screen reader.
- document.write( "<h1 style='display: none;'>" + l10n_download_headline_text + "</h1>" );
+ document.write( "<h1 style='display: none;'>" + l10n.dl_headline_text + "</h1>" );
//-->
</script>
@@ -98,10 +98,10 @@
// Changed: The variable can now be found in the "msg_prop_l10n_<ISO_code>.js".
// Get the download box from a separate file.
- createDownloadBox();
+ DL.createDownloadBox();
// Fill the select boxes and wait for the user's choice.
- init( 1 );
+ DL.init( 1 );
entourage.initialize();
@@ -121,18 +121,18 @@ document.write( "<div style='clear: both
+ "<form name='update_and_copy'>"
+ "<input class='btn_analyze' type='button' name='update' href='javascript:void( 0 )'"
- + "title='" + l10n_download_analyze_update_button_title + "' onclick='updateTable(); return false;'"
- + "value='" + l10n_download_analyze_update_button_text + "' />"
+ + "title='" + l10n.dl_analyze_update_button_title + "' onclick='updateTable(); return false;'"
+ + "value='" + l10n.dl_analyze_update_button_text + "' />"
+ "</input>"
+ "<input class='btn_analyze' type='button' name='select' href='javascript:void( 0 )'"
- + "title='" + l10n_download_analyze_select_button_title + "' onclick='selectTable(); return false;'"
- + "value='" + l10n_download_analyze_select_button_text + "' />"
+ + "title='" + l10n.dl_analyze_select_button_title + "' onclick='selectTable(); return false;'"
+ + "value='" + l10n.dl_analyze_select_button_text + "' />"
+ "</input>"
+ "<input class='btn_analyze' type='button' name='copy' href='javascript:void( 0 )'"
- + "title='" + l10n_download_analyze_copy_button_title + "'"
- + "value='" + l10n_download_analyze_copy_button_text + "' disabled style='color: #000000; cursor: default;' />"
+ + "title='" + l10n.dl_analyze_copy_button_title + "'"
+ + "value='" + l10n.dl_analyze_copy_button_text + "' disabled style='color: #000000; cursor: default;' />"
+ "</form>"
+ "<p> </p>"
@@ -145,8 +145,8 @@ document.write( "<div style='clear: both
+ "<table class='tbl_analyze' id='table_data'>"
+ "<tbody>"
- + "<th style='width: 25%;'><b>" + l10n_download_analyze_table_browser_text + "</b></th>"
- + "<th style='width: 75%;'><b>" + l10n_download_analyze_table_values_text + "</b></th>"
+ + "<th style='width: 25%;'><b>" + l10n.dl_analyze_table_browser_text + "</b></th>"
+ + "<th style='width: 75%;'><b>" + l10n.dl_analyze_table_values_text + "</b></th>"
+ "<tr><td>navigator.appCodeName </td><td>" + navigator.appCodeName + "</td></tr>"
+ "<tr><td>navigator.appName </td><td>" + navigator.appName + "</td></tr>"
+ "<tr><td>navigator.appVersion </td><td>" + navigator.appVersion + "</td></tr>"
@@ -164,22 +164,22 @@ document.write( "<div style='clear: both
+ "<tr><td>navigator.userAgent </td><td>" + navigator.userAgent + "</td></tr>" );
if ( navigator.userAgent.toLowerCase().indexOf( "debian" ) != -1 )
- document.write( "<tr><td>Debian / Ubuntu / IceWeasel ?</td><td>" + l10n_download_analyze_table_yes_text + " / "
- + l10n_download_analyze_table_no_text + " / " + l10n_download_analyze_table_no_text + "</td></tr>" );
+ document.write( "<tr><td>Debian / Ubuntu / IceWeasel ?</td><td>" + l10n.dl_analyze_table_yes_text + " / "
+ + l10n.dl_analyze_table_no_text + " / " + l10n.dl_analyze_table_no_text + "</td></tr>" );
else if ( navigator.userAgent.toLowerCase().indexOf( "ubuntu" ) != -1 )
- document.write( "<tr><td>Debian / Ubuntu / IceWeasel ?</td><td>" + l10n_download_analyze_table_no_text + " / "
- + l10n_download_analyze_table_yes_text + " / " + l10n_download_analyze_table_no_text + "</td></tr>" );
+ document.write( "<tr><td>Debian / Ubuntu / IceWeasel ?</td><td>" + l10n.dl_analyze_table_no_text + " / "
+ + l10n.dl_analyze_table_yes_text + " / " + l10n.dl_analyze_table_no_text + "</td></tr>" );
else if ( navigator.userAgent.toLowerCase().indexOf( "iceWeasel" ) != -1 )
- document.write( "<tr><td>Debian / Ubuntu / IceWeasel ?</td><td>" + l10n_download_analyze_table_no_text + " / "
- + l10n_download_analyze_table_no_text + " / " + l10n_download_analyze_table_yes_text + "</td></tr>" );
+ document.write( "<tr><td>Debian / Ubuntu / IceWeasel ?</td><td>" + l10n.dl_analyze_table_no_text + " / "
+ + l10n.dl_analyze_table_no_text + " / " + l10n.dl_analyze_table_yes_text + "</td></tr>" );
else
- document.write( "<tr><td>Debian / Ubuntu / IceWeasel ?</td><td>" + l10n_download_analyze_table_no_text + " / "
- + l10n_download_analyze_table_no_text + " / " + l10n_download_analyze_table_no_text + "</td></tr>" );
+ document.write( "<tr><td>Debian / Ubuntu / IceWeasel ?</td><td>" + l10n.dl_analyze_table_no_text + " / "
+ + l10n.dl_analyze_table_no_text + " / " + l10n.dl_analyze_table_no_text + "</td></tr>" );
// List all variables and function's return values from scripting.
- document.write( "<tr><th><b>" + l10n_download_analyze_table_stable_release_text + "</b></th><th> </th></tr>"
- + "<th><b>" + l10n_download_analyze_table_javascript_text + "</b></th>"
- + "<th><b>" + l10n_download_analyze_table_values_text + "</b></th>"
+ document.write( "<tr><th><b>" + l10n.dl_analyze_table_stable_release_text + "</b></th><th> </th></tr>"
+ + "<th><b>" + l10n.dl_analyze_table_javascript_text + "</b></th>"
+ + "<th><b>" + l10n.dl_analyze_table_values_text + "</b></th>"
+ "<tr><td>Language ISO code </td><td></td></tr>" /* LANG_ISO */
+ "<tr><td>Language ISO code (from select box) </td><td></td></tr>" /* LANG_SEL */
+ "<tr><td>Release matrix platform position (full) </td><td></td></tr>" /* RELEASE_PLATFORM_POS_FULL */
@@ -221,8 +221,8 @@ function updateTable() {
DL.RELEASE_PLATFORM, DL.RELEASE_LANG, DL.UI_PLATFORM, DL.UI_PLATFORM_NO_SUP, DL.PLATFORM,
DL.PLATFORM_FULL, DL.PLATFORM_LP, DL.PLATFORM_SEL, DL.VERSION_SEL, DL.FILENAME_FULL, DL.FILENAME_LP,
DL.EXTENSION, DL.FILESIZE_FULL, DL.FILESIZE_LP, DL.REL_TEXT, DL.LINK_FULL, DL.LINK_LP,
- DL.LINK_CHK_MD5_FULL, DL.LINK_CHK_MD5_LP, DL.SF_BASE_URL, DL.ASF_ARC_BASE_URL, getLinkSelection(),
- isLanguageSupported(), DL.SHOW_SUB_BOX, DL.ERROR ];
+ DL.LINK_CHK_MD5_FULL, DL.LINK_CHK_MD5_LP, DL.SF_BASE_URL, DL.ASF_ARC_BASE_URL, DL.getLinkSelection(),
+ DL.isLanguageSupported(), DL.SHOW_SUB_BOX, DL.ERROR ];
// Start with the 20th row (i = 19) in the 2nd cell (1), count through the elements array (j)
// and assign the found values as innerHMTL to the table cells.