Author: marcus
Date: Mon Jun 16 20:38:14 2014
New Revision: 1603002

URL: http://svn.apache.org/r1603002
Log:
Separated more strings from code, updated variables

Modified:
    openoffice/ooo-site/trunk/content/download/analyze.html

Modified: openoffice/ooo-site/trunk/content/download/analyze.html
URL: 
http://svn.apache.org/viewvc/openoffice/ooo-site/trunk/content/download/analyze.html?rev=1603002&r1=1603001&r2=1603002&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/analyze.html (original)
+++ openoffice/ooo-site/trunk/content/download/analyze.html Mon Jun 16 20:38:14 
2014
@@ -19,55 +19,72 @@
 
 <body>
 
-<div>
+<!-- No JavaScript enabled -->
+<noscript>
+  <h1>Apache OpenOffice Downloads - Analyze errors</h1>
+  <br />
+
+  <div class="notice">
+    <h2>JavaScript not enabled?</h2>
+
+    <p>JavaScript needs to be enabled to show the analysis data on this 
webpage.</p>
+  </div>
+</noscript>
+
+<div> <!-- introduction text -->
+
   <!-- What to do to report a broken link -->
   <script type="text/javascript">
   <!--
   document.write( ""
-    + "<h1>How to report a broken download link?</h1>"
+    + "<h1>" + l10n_analyze_headline_text + "</h1>"
 
     + "<p>"
       + "<ol style='padding: 0px 0px 0px 15px; list-style: disc outside 
none;'>"
-       + "<li><b>Select your favorites</b>: Operating system, language and 
version in the green below.</li>"
-       + "<li>Verify that these options <b>still do not</b> lead to valid 
download links.</li>"
-       + "<li>Click on the button <b>[Update the table]</b> below the green 
box.</li>"
-       + "<li>Click on the button <b>[Select the table]</b> below the green 
box.</li>"
-       + "<li><b>Copy via [Ctrl] + [C]</b> the selected table data into the 
clipboard.</li>"
+       + "<li>" + l10n_analyze_instruction_select_text + "</li>"
+       + "<li>" + l10n_analyze_instruction_verify_text + "</li>"
+       + "<li>" + l10n_analyze_instruction_click_text + "<b>[ " + 
l10n_analyze_update_button_text + " ]</b></li>"
+       + "<li>" + l10n_analyze_instruction_click_text + "<b>[ " + 
l10n_analyze_select_button_text + " ]</b></li>"
+       + "<li>" + l10n_analyze_instruction_copy_text + "<b>[ " + 
l10n_analyze_copy_button_text   + " ]</b></li>"
        + "<br />"
-       + "<li><b>Create a new mail</b>.</li>"
-       + "<li><b>Write a problem description</b> (what does not work and what 
do you expect).</li>"
-       + "<li>Also add <b>details about the operating system</b> you are 
using.</li>"
-       + "<li><b>Paste the copied data</b> at the end.</li>"
-       + "<li>Finally, <b>send the mail</b> to the: "
+       + "<li><b>" + l10n_analyze_instruction_new_mail_text + "</b></li>"
+       + "<li>" + l10n_analyze_instruction_problem_text + "</li>"
+       + "<li>" + l10n_analyze_instruction_details_text + "</li>"
+       + "<li><b>" + l10n_analyze_instruction_paste_text + "</b></li>"
+       + "<li>" + l10n_analyze_instruction_only_download_text + "</li>"
+       + "<li><b>" + l10n_analyze_instruction_no_install_text + "</b></li>"
+       + "<li>" + l10n_analyze_instruction_send_mail_text
          + "<a 
href='mailto:[email protected]&#63;subject=Reporting%20broken%20download%20link'"
-           + "title='Send the broken link report to the Apache OpenOffice 
developers mailing list'>"
-           + "<b>Apache OpenOffice Development Mailing List</b>"
+           + "title='" + l10n_analyze_instruction_mailing_list_title + "'>"
+           + "<b>" + l10n_analyze_instruction_mailing_list_text + "</b>"
          + "</a>. *)"
        + "</li>"
       + "</ol>"
       + "<br />"
 
       + "*) "
-      + "<a href='http://openoffice.apache.org/mailing-lists.html' 
title='Learn more about what a mailing list is'"
-      + "target='_blank'><b>Click here to learn more about what a mailing list 
is</b>"
+      + "<a href='http://openoffice.apache.org/mailing-lists.html'"
+       + "title='" + l10n_analyze_instruction_learn_more_title + "'"
+       + "target='_blank'><b>" + l10n_analyze_instruction_learn_more_text + 
"</b>"
       + "</a>."
 
-      + "<h3>We will try to respond as soon as we get the mail and the problem 
analyzed."
-      + "<br />Thank you for your report.</h3>"
+      + "<h3>" + l10n_analyze_instruction_answer_text
+      + "<br />" + l10n_analyze_instruction_thanks_text + "</h3>"
 
       + "<p>&nbsp;</p>"
     + "</p>" );
   //-->
   </script>
-</div>
+</div> <!-- introduction text -->
 
 <div class="optionset" style="float: left;">
+
   <!-- Text above the first colored box -->
   <script type="text/javascript">
   <!--
   // 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;'>Apache OpenOffice Download</h1>" 
);
+  document.write( "<h1 style='display: none;'>" + l10n_download_headline_text 
+ "</h1>" );
   //-->
   </script>
 
@@ -77,35 +94,32 @@
   <!--
 
   // Set a specific language ISO code to force to assemble a certain localized 
build as download link.
-  // The variable can be found in the "msg_prop_l10n_<ISO_code>.js".
+  // Changed: The variable can now be found in the 
"msg_prop_l10n_<ISO_code>.js".
 
   // Green colored box.
   // Show select boxes and both download text buttons.
   document.write( "<div class='first button green-sel' id='optionitem2'>"
     // Headline.
     + "<h2>"
-      + "<a title='Download Apache OpenOffice for your favorite operating 
system, language and version'>"
-        + "Download Apache OpenOffice"
-      + "</a>"
+      + "<a title='" + l10n_download_green_box_headline_title + "'>"    + 
l10n_download_green_box_headline_text + "</a>"
     + "</h2>"
 
     // Select text.
     + "<p style='padding-bottom: 0px;'>"
-      + "<a title='Apache OpenOffice binary files are hosted by 
Sourceforge.net - A trusted website'>"
-        + "(Hosted by Sourceforge.net - A trusted website)"
-      + "</a>"
-      + "<a title='Select your favorite operating system, language and 
version'>"
-        + "<b>Select your favorite operating system, language and version:</b>"
-      + "</a>"
+      + "<a title='" + l10n_download_green_box_subtext1_title + "'>("   + 
l10n_download_green_box_subtext1_text + ")</a>"
+      + "<a title='" + l10n_download_green_box_subtext2_title + "'><b>" + 
l10n_download_green_box_subtext2_text + ":</b></a>"
     + "</p>"
 
     // Select boxes.
     + "<form name='download'>"
-      + "<select class='sel-os' id='os' name='os' title='Select your favorite 
operating system' onchange='getLinkSel()'>"
+      + "<select class='sel-os' id='os' name='os' ' onchange='getLinkSel()'"
+        + "title='" + l10n_download_green_box_selectbox_os_title   + "'>"
       + "</select>"
-      + "<select class='sel-lang' id='lang' name='lang' title='Select your 
favorite language' onchange='getLinkSel()'>"
+      + "<select class='sel-lang' id='lang' name='lang' 
onchange='getLinkSel()'"
+        + "title='" + l10n_download_green_box_selectbox_lang_title + "' >"
       + "</select>"
-      + "<select class='sel-ver' id='ver' name='ver' title='Select your 
favorite release version' onchange='getLinkSel()'>"
+      + "<select class='sel-ver' id='ver' name='ver' onchange='getLinkSel()'"
+        + "title='" + l10n_download_green_box_selectbox_ver_title  + "'>"
       + "</select>"
     + "</form>"
 
@@ -188,70 +202,80 @@
   </script>
 
   <p>&nbsp;</p>
-</div>
-
-<div style="clear: both; float: left;">
-  <form name="update_and_copy">
-    <input class="btn_analyze" type="button" name="update" 
href="javascript:void( 0 )"
-      title="Put the selected options as values into the table below" 
onclick="updateTable(); return false;"
-      value="Click to update the table" />
-    </input>
-
-    <a style="padding: 0px 0px 0px 30px;"></a>
-
-    <input class="btn_analyze" type="button" name="select" 
href="javascript:void( 0 )"
-      title="Select all data in the table below" onclick="selectTable( 
'table_data' ); return false;"
-      value="Click to select the table" />
-    </input>
-
-    <a style="padding: 0px 0px 0px 30px;"></a>
-
-    <p class="btn_analyze" style="padding: 0px 5px 0px 5px; display: inline; 
cursor: default"
-      title="Copy the selected table data via [Ctrl] + [C] into the clipboard">
-      Copy with [Ctrl] + [C]
-    </p>
-  </form>
+</div> <!-- class "optionset" -->
 
-  <p>&nbsp;</p>
-</div>
-
-<div style="clear: both; float: left;">
-  <script type="text/javascript">
-
-    document.write( "<div style='float: left;'>"
+<!-- Grey: Buttons -->
+<!-- Update and select via buttons -->
+<script type="text/javascript">
+<!--
+document.write( "<div style='clear: both; float: left;'>"
+  + "<div>"
+
+  + "<form name='update_and_copy'>"
+    + "<input class='btn_analyze' type='button' name='update' 
href='javascript:void( 0 )'"
+      + "title='" + l10n_analyze_update_button_title + "' 
onclick='updateTable(); return false;'"
+      + "value='" + l10n_analyze_update_button_text  + "' />"
+    + "</input>"
+
+    + "<a style='padding: 0px 0px 0px 30px;'></a>"
+
+    + "<input class='btn_analyze' type='button' name='select' 
href='javascript:void( 0 )'"
+      + "title='" + l10n_analyze_select_button_title + "' 
onclick='selectTable( \"table_data\" ); return false;'"
+      + "value='" + l10n_analyze_select_button_text  + "' />"
+    + "</input>"
+
+    + "<a style='padding: 0px 0px 0px 30px;'></a>"
+
+    + "<p class='btn_analyze' style='padding: 0px 15px 0px 15px; display: 
inline; cursor: default'"
+      + "title='" + l10n_analyze_copy_button_title   + "'>"
+      + l10n_analyze_copy_button_text
+    + "</p>"
+  + "</form>"
 
-      // List some variables from browser's Document Object Model (DOM).
-      + "<table class='tbl_analyze' id='table_data' style='border-collapse: 
collapse; border-spacing: 2px; width: 100%;'>"
-      + "<tbody>"
-        + "<th style='width:25%;'><b>Browser variables</b>     </th 
style='75%;'><th><b>Values</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>"
-         + "<tr><td>navigator.platform                         </td><td>" + 
navigator.platform         + "</td></tr>"
-         + "<tr><td>navigator.oscpu                            </td><td>" + 
navigator.oscpu            + "</td></tr>"
-         + "<tr><td>navigator.cpuClass                         </td><td>" + 
navigator.cpuClass         + "</td></tr>"
-         + "<tr><td>navigator.product                          </td><td>" + 
navigator.product          + "</td></tr>"
-         + "<tr><td>navigator.productSub                       </td><td>" + 
navigator.productSub       + "</td></tr>"
-         + "<tr><td>navigator.vendor                           </td><td>" + 
navigator.vendor           + "</td></tr>"
-         + "<tr><td>navigator.vendorSub                        </td><td>" + 
navigator.vendorSub        + "</td></tr>"
-         + "<tr><td>navigator.language                         </td><td>" + 
navigator.language         + "</td></tr>"
-         + "<tr><td>navigator.browserLanguage                  </td><td>" + 
navigator.browserLanguage  + "</td></tr>"
-         + "<tr><td>navigator.userLanguage                     </td><td>" + 
navigator.userLanguage     + "</td></tr>"
-         + "<tr><td>navigator.systemLanguage                   </td><td>" + 
navigator.systemLanguage   + "</td></tr>"
-         + "<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>Yes / No / No</td></tr>" );
-         else if ( navigator.userAgent.toLowerCase().indexOf( "ubuntu"    ) != 
-1 )
-           document.write( "<tr><td>Debian / Ubuntu / IceWeasel ?      
</td><td>No / Yes / No</td></tr>" );
-         else if ( navigator.userAgent.toLowerCase().indexOf( "iceWeasel" ) != 
-1 )
-           document.write( "<tr><td>Debian / Ubuntu / IceWeasel ?      
</td><td>No / No / Yes</td></tr>" );
-         else
-           document.write( "<tr><td>Debian / Ubuntu / IceWeasel ?      
</td><td>No / No / No</td></tr>" );
+  + "<p>&nbsp;</p>"
+  + "</div>"
++ "</div>" // update and copy
+
++ "<div style='clear: both; float: left;'>"
+  // List some variables from browser's Document Object Model (DOM).
+  + "<div style='float: left;'>"
+    + "<table class='tbl_analyze' id='table_data' style='border-collapse: 
collapse; border-spacing: 2px; width: 100%;'>"
+    + "<tbody>"
+      + "<th style='width: 25%;'><b>" + l10n_analyze_table_browser_text + 
"</b></th>"
+      + "<th style='width: 75%;'><b>" + l10n_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>"
+       + "<tr><td>navigator.platform                           </td><td>" + 
navigator.platform         + "</td></tr>"
+       + "<tr><td>navigator.oscpu                              </td><td>" + 
navigator.oscpu            + "</td></tr>"
+       + "<tr><td>navigator.cpuClass                           </td><td>" + 
navigator.cpuClass         + "</td></tr>"
+       + "<tr><td>navigator.product                            </td><td>" + 
navigator.product          + "</td></tr>"
+       + "<tr><td>navigator.productSub                         </td><td>" + 
navigator.productSub       + "</td></tr>"
+       + "<tr><td>navigator.vendor                             </td><td>" + 
navigator.vendor           + "</td></tr>"
+       + "<tr><td>navigator.vendorSub                          </td><td>" + 
navigator.vendorSub        + "</td></tr>"
+       + "<tr><td>navigator.language                           </td><td>" + 
navigator.language         + "</td></tr>"
+       + "<tr><td>navigator.browserLanguage                    </td><td>" + 
navigator.browserLanguage  + "</td></tr>"
+       + "<tr><td>navigator.userLanguage                       </td><td>" + 
navigator.userLanguage     + "</td></tr>"
+       + "<tr><td>navigator.systemLanguage                     </td><td>" + 
navigator.systemLanguage   + "</td></tr>"
+       + "<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_analyze_table_yes_text + " / "
+         + l10n_analyze_table_no_text  + " / " + l10n_analyze_table_no_text  + 
"</td></tr>" );
+       else if ( navigator.userAgent.toLowerCase().indexOf( "ubuntu"    ) != 
-1 )
+         document.write( "<tr><td>Debian / Ubuntu / IceWeasel ?</td><td>" + 
l10n_analyze_table_no_text  + " / "
+         + l10n_analyze_table_yes_text + " / " + l10n_analyze_table_no_text  + 
"</td></tr>" );
+       else if ( navigator.userAgent.toLowerCase().indexOf( "iceWeasel" ) != 
-1 )
+         document.write( "<tr><td>Debian / Ubuntu / IceWeasel ?</td><td>" + 
l10n_analyze_table_no_text  + " / "
+         + l10n_analyze_table_no_text  + " / " + l10n_analyze_table_yes_text + 
"</td></tr>" );
+       else
+         document.write( "<tr><td>Debian / Ubuntu / IceWeasel ?</td><td>" + 
l10n_analyze_table_no_text  + " / "
+         + l10n_analyze_table_no_text  + " / " + l10n_analyze_table_no_text  + 
"</td></tr>" );
 
        // List all variables and function's return values from scripting.
-       document.write( "<th><b>Stable Release</b></th><th>&nbsp;</th>"
-         + "<tr><th><b>JavaScript&nbsp;functions/variables</b> 
</th><th><b>Values</b></th></tr>"
+       document.write( "<tr><th><b>" + l10n_analyze_table_stable_release_text 
+ "</b></th><th>&nbsp;</th></tr>"
+         + "<th><b>" + l10n_analyze_table_javascript_text                     
+ "</b></th>"
+         + "<th><b>" + l10n_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 */
@@ -279,76 +303,66 @@
          + "<tr><td>Base URL to Apache Archive                 
</td><td></td></tr>"    /* ASF_ARC_BASE_URL */
          + "<tr><td>getLinkSel()                               
</td><td></td></tr>"    /* getLinkSel() */
          + "<tr><td>isLangSupported() ?                        
</td><td></td></tr>"    /* isLangSupported() */
-         + "<tr><td>Old platform ?                             
</td><td></td></tr>"    /* OLD_PLATFORM */
-         + "<tr><td>Contains link to Sourgeforge ?             
</td><td></td></tr>"    /* SF */
-         + "<tr><td>Contains link to porting webpage ?         
</td><td></td></tr>"    /* OTHER */
-         + "<tr><td>Contains link to the archive ?             
</td><td></td></tr>"    /* ARCHIVE */
+         + "<tr><td>Download link is supported and OK ?        
</td><td></td></tr>"    /* SUPPORTED */
          + "<tr><td>General error ?                            
</td><td></td></tr>"    /* ERROR */
-      + "</tbody>"
-      + "</table>"
-    + "</div>" );
-
-    function updateTable() {
-       // All variables and functions that should be shown in the table.
-       elements = [    LANG_ISO, LANG_SEL, RELEASE_PLATFORM_POS_FULL, 
RELEASE_PLATFORM_POS_LP, RELEASE_PLATFORM,
-                       RELEASE_LANG, UI_PLATFORM, UI_PLATFORM_NO_SUP, 
PLATFORM, PLATFORM_FULL, PLATFORM_LP, PLATFORM_SEL,
-                       VERSION_SEL, FILENAME_FULL, FILENAME_LP, EXTENSION, 
FILESIZE_FULL, FILESIZE_LP, REL_TEXT, LINK_FULL,
-                       LINK_LP, LINK_CHK_MD5_FULL, LINK_CHK_MD5_LP, 
SOURCEFORGE_BASE_URL, ASF_ARC_BASE_URL, getLinkSel(),
-                       isLangSupported(), OLD_PLATFORM, SF, OTHER, ARCHIVE, 
ERROR ];
-
-       // Assign the respective table cell with the variable or function.
-       // Start with the 20th row (i = 19) in the 2nd cell (1), count through 
the elements array (j):
-       for( var i = 19, j = 0, k = elements.length; j < k; i++, j++ ) {
-               document.getElementById( "table_data" ).rows[ i ].cells[ 1 
].innerHTML = elements[ j ];
-       }
-
-       return;
-    }
-
-    function selectTable( table ) {
-       // Select all table data, so that the user can copy it manually into 
the clipboard.
-
-       var data = document.getElementById( table );
-       var selection      = window.getSelection();
-       var selected_range = document.createRange();
-
-       // All browsers but not MSIE < version 9.
-       if( window.getSelection ) {
-               selected_range.selectNodeContents( data );
-               selection.removeAllRanges();
-               selection.addRange( selected_range );
-
-       } else if( document.body.createTextRange ) {
-               // Only MSIE < version 9.
-               selected_range = document.body.createTextRange ();
-               selected_range.moveToElementText( data );
-               selected_range.select();
-
-       } else if( document.createRange && window.getSelection ) {
-               // All other browsers.
-               selected_range.selectNodeContents( table );
-               selection.removeAllRanges();
-               selection.addRange( selected_range );
-       }
-
-       return;
-    }
-  </script>
-</div>
+    + "</tbody>"
+    + "</table>"
+  + "</div>"
++ "</div>" ); // table
+
+function updateTable() {
+  // All variables and functions that should be shown in the table.
+
+  var vars = [ LANG_ISO, LANG_SEL, RELEASE_PLATFORM_POS_FULL, 
RELEASE_PLATFORM_POS_LP, RELEASE_PLATFORM, RELEASE_LANG,
+               UI_PLATFORM, UI_PLATFORM_NO_SUP, PLATFORM, PLATFORM_FULL, 
PLATFORM_LP, PLATFORM_SEL, VERSION_SEL,
+               FILENAME_FULL, FILENAME_LP, EXTENSION, FILESIZE_FULL, 
FILESIZE_LP, REL_TEXT, LINK_FULL, LINK_LP,
+               LINK_CHK_MD5_FULL, LINK_CHK_MD5_LP, SOURCEFORGE_BASE_URL, 
ASF_ARC_BASE_URL, getLinkSel(), isLangSupported(),
+               SUPPORTED, ERROR ];
+
+  // Assign the respective table cell with the variable or function.
+  // Start with the 20th row (i = 19) in the 2nd cell (1), count through the 
elements array (j):
+  for( var i = 19, j = 0, k = vars.length; j < k; i++, j++ ) {
+       document.getElementById( "table_data" ).rows[ i ].cells[ 1 ].innerHTML 
= vars[ j ];
+  }
+
+  return;
+}
+
+function selectTable( table ) {
+  // Select all table data, so that the user can copy it manually into the 
clipboard.
+
+  var data = document.getElementById( table );
+  var selection           = window.getSelection();
+  var selected_range = document.createRange();
+
+  // All browsers but not MSIE < version 9.
+  if( window.getSelection ) {
+       selected_range.selectNodeContents( data );
+       selection.removeAllRanges();
+       selection.addRange( selected_range );
+
+  } else if( document.body.createTextRange ) {
+       // Only MSIE < version 9.
+       selected_range = document.body.createTextRange ();
+       selected_range.moveToElementText( data );
+       selected_range.select();
+
+  } else if( document.createRange && window.getSelection ) {
+       // All other browsers.
+       selected_range.selectNodeContents( table );
+       selection.removeAllRanges();
+       selection.addRange( selected_range );
+  }
+
+  return;
+}
+//-->
+</script>
 
 <!-- Every new element and text that is defined below the previous DIV will be 
actually dislayed wrapped below this DIV
 (because of "clear: both" instead of floated around the previous DIVs. This is 
really needed. -->
-<div style="clear: both;"></div>
-
-<!-- No JavaScript enabled -->
-<noscript>
-  <div class="notice">
-    <h1>Apache OpenOffice Downloads - Analyze errors</h1>
-    <br />
-    <h2>JavaScript not enabled?</h2>
-    <p>JavaScript needs to be enabled to show the analysis data on this 
webpage.</p>
-  </div>
-</noscript>
+<div style="clear: both;">
+</div>
 
 </body>
 </html>


Reply via email to