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/03/16 18:33:37 UTC

svn commit: r1578122 - /openoffice/ooo-site/trunk/content/download/test/l10n/index_en.html

Author: marcus
Date: Sun Mar 16 17:33:36 2014
New Revision: 1578122

URL: http://svn.apache.org/r1578122
Log:
Updated variables and text

Modified:
    openoffice/ooo-site/trunk/content/download/test/l10n/index_en.html

Modified: openoffice/ooo-site/trunk/content/download/test/l10n/index_en.html
URL: http://svn.apache.org/viewvc/openoffice/ooo-site/trunk/content/download/test/l10n/index_en.html?rev=1578122&r1=1578121&r2=1578122&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/test/l10n/index_en.html (original)
+++ openoffice/ooo-site/trunk/content/download/test/l10n/index_en.html Sun Mar 16 17:33:36 2014
@@ -24,7 +24,7 @@
   </style>
   <script>
     if (window.document.referrer.indexOf("shell.windows.com") != -1)
-       location.href = "/why/why_odf.html";
+       location.href = "../../../why/why_odf.html";
 
     function shareFacebook() {
       _gaq.push(['_trackEvent','social', 'shareDownload', 'facebook']); 
@@ -49,9 +49,97 @@
   <script type="text/javascript">
   <!--
   // Set a specific language ISO code to force to assemble a certain localized build as download URL
-  var NL_LANGUAGE = "";
-
-  writeGreenBox();
+  var NL_LANGUAGE = "de";
+  // Get the download URL for released install files (0 = release mode)
+  var LINK        = getLink( 0 );
+/*
+  document.write ( "Language ISO: " + LANG_ISO + " - has MirrorLink()?: " + hasMirrorLink() + "<br />"
+  + "SourceForge: " + SOURCEFORGE + " - Other: " + OTHER + " - Archive: " + ARCHIVE + "<br />"
+  + "UI_PLATFORM: " + UI_PLATFORM + " - URL_PLATFORM: " + URL_PLATFORM + " - EXTENSION: " + EXTENSION + "<br />"
+  + "LINK: " + LINK );
+*/
+  if ( hasMirrorLink() ) {
+    if ( SOURCEFORGE ) {
+      // If download URL contains "sourceforge" (-> normal and correct download link),
+      // then download from Sourceforge with displayed platform and language.
+      document.write( "<div class=\"first button green\" id=\"optionitem1\" onclick=\"openItem('optionitem1','"
+        + LINK + "');" + "return false;\">"
+        + "<h2><a href='" + LINK
+        + "' title='Version " + VERSION + " - Milestone " + MILESTONE + " - Build ID " + BUILD + " - SVN " + SVN_REV
+        + " | Released: " + REL_DATE + "'>" + green_box_headline + green_box_aoo + VERSION + "</a></h2>"
+        + "<p><a href='" + LINK
+        + "' title='Version " + VERSION + " - Milestone " + MILESTONE + " - Build ID " + BUILD + " - SVN " + SVN_REV
+        + " | Released: " + REL_DATE + "'>" + green_box_click + "<br />"
+        + "<b>" + UI_PLATFORM + "</b>" + green_box_and + "<b>" + LANG_ARRAY[ 2 ] + "</b> "
+        + " | ~" + FILESIZE + green_box_megabyte + " | Released:&nbsp;" + REL_DATE + "<br /></a></p>"
+      + "</div>" );
+    } else if ( OTHER ) {
+      // If download URL contains "other" (-> platform, OS or package manager was not recognized),
+      // then use "other.html" as download link.
+      document.write( "<div class=\"first button green\" id=\"optionitem1\" onclick=\"openItem('optionitem1','"
+        + LINK + "');" + "return false;\">"
+        + "<h2><a href='" + LINK + "' title='" + LINK + "'>" + green_box_aoo + " " + VERSION + "</a></h2>"
+        + "<p><a href='" + LINK + "' title='" + LINK + "'>" + green_box_no_build1 + "<br />"
+        + "<b>" + UI_PLATFORM + "</b> " + green_box_and + " <b>" + LANG_ARRAY[ 2 ] + " (" + LANG_ARRAY[ 1 ] + ")</b><br />"
+        + green_box_no_build2 + "</a></p>"
+      + "</div>" );
+    } else if ( ARCHIVE ) {
+      // If download URL contains "archive" (-> platform/OS is no longer supported),
+      // then provide a download link to the previous version.
+      document.write( "<div class=\"first button green\" id=\"optionitem1\" onclick=\"openItem('optionitem1','"
+        + LINK + "');" + "return false;\">"
+        + "<h2><a href='" + LINK + "' title='" + LINK + "'>" + green_box_aoo + " " + VERSION + "</a></h2>"
+        + "<p><a href='" + LINK + "' title='" + LINK + "'>" + green_box_no_build1 + "<br />"
+        + "<b>" + UI_PLATFORM + "</b> " + green_box_and + " <b>" + LANG_ARRAY[ 2 ] + " (" + LANG_ARRAY[ 1 ] + ")</b><br />"
+        + green_box_no_build3 + PRE_VERSION + "</a></p>"
+      + "</div>" );
+    }
+  } else {
+    // If browser language do not match with AOO languages, then download from an alternative webpage.
+    document.write( "<div class=\"first button green\" id=\"optionitem1\" onclick=\"openItem('optionitem1','"
+      + LANG_ARRAY[ 3 ] + "');" + "return false;\">"
+      + "<h2><a href='" + LANG_ARRAY[ 4 ] + "' title='" + LANG_ARRAY[ 4 ] + "'>" + green_box_aoo + " " + VERSION + "</a>"
+      + "</h2>"
+      + "<p><a href='" + LANG_ARRAY[ 4 ] + "' title='" + LANG_ARRAY[ 4 ] + "'>" + green_box_no_build1 + "<br />"
+      + "<b>" + UI_PLATFORM + "</b> " + green_box_and + " <b>" + LANG_ARRAY[ 2 ] + " (" + LANG_ARRAY[ 1 ] + ")</b><br />"
+      + green_box_no_build4 + "</a></p>"
+    + "</div>" );
+  }
+  // Show some helpful links for SDK, source, checksums, release notes, legacy version.
+  document.write( "<div class=\"sub-green\">" );
+  document.write( "<p>" );
+  if ( CHECKSUM_ASC ) {
+    document.write( sub_green_box_hash_text + " "
+    + "<a href='" + CHECKSUM_KEYS   + "' + title='KEYS "   + sub_green_box_signature_title + "'>KEYS</a> , "
+    + "<a href='" + CHECKSUM_ASC    + "' + title='ASC "    + sub_green_box_signature_title + "'>ASC</a> , "
+    + "<a href='" + CHECKSUM_MD5    + "' + title='MD5 "    + sub_green_box_hash_title + "'>MD5</a> , "
+    + "<a href='" + CHECKSUM_SHA256 + "' + title='SHA256 " + sub_green_box_hash_title + "'>SHA256</a> , "
+    + "<a href='../checksums.html' "
+    + "title='" + sub_green_box_verify_title + "'>"
+    + sub_green_box_verify_text + "</a> | ");
+  }
+  if ( ARCHIVE ) {
+    VERSION = PRE_VERSION;
+  }
+  document.write( "<a href='" + sub_green_box_release_notes_link + "' "
+    + "title='" + sub_green_box_release_notes_title + " " + VERSION + "?'>"
+    + sub_green_box_release_notes_text + "</a> | <br />"
+    + "<a href='other.html' "
+    + "title='" + sub_green_box_other_title + "'>"
+    + sub_green_box_other_text + "</a> | "
+    + "<a href='other.html#source' "
+    + "title='" + sub_green_box_source_title + "'>"
+    + sub_green_box_source_text + "</a> | <br />"
+    + "<a href='../../porting/index.html' "
+    + "title='" + sub_green_box_ports_title + "'>"
+    + sub_green_box_ports_text + "</a> | " + sub_green_box_old_legacy_text + " "
+    + "<a href='other-341.html' "
+    + "title='" + sub_green_box_old_title + " " + OLDVERSION + "'>"
+    + "<b>" + OLDVERSION + "</b></a> + "
+    + "<a href='../legacy/index.html' "
+    + "title='" + sub_green_box_legacy_title + " " + LEGACYVERSION + "'>"
+    + "<b>" + LEGACYVERSION + "</b></a></p>"
+  + "</div>" );
 
   entourage.initialize();
   //-->