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/26 15:46:41 UTC

svn commit: r1613628 - /openoffice/ooo-site/trunk/content/xx/index.html

Author: marcus
Date: Sat Jul 26 13:46:41 2014
New Revision: 1613628

URL: http://svn.apache.org/r1613628
Log:
Updated 'showAlertBox()' function

Modified:
    openoffice/ooo-site/trunk/content/xx/index.html

Modified: openoffice/ooo-site/trunk/content/xx/index.html
URL: http://svn.apache.org/viewvc/openoffice/ooo-site/trunk/content/xx/index.html?rev=1613628&r1=1613627&r2=1613628&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/xx/index.html (original)
+++ openoffice/ooo-site/trunk/content/xx/index.html Sat Jul 26 13:46:41 2014
@@ -9,6 +9,7 @@
     <link href="https://plus.google.com/+openoffice" rel="publisher" />
     <title>Apache OpenOffice - The Free and Open Productivity Suite</title>
     <script type="text/javascript" src="../download/globalvars.js"></script>
+    <script type="text/javascript" src="msg_prop_l10n_xx.js"></script>
     <style type="text/css">
     /* <![CDATA[ */
     /*-------------------- Exceptions on standard css -----------------------*/
@@ -31,56 +32,50 @@
           window.open( "https://plus.google.com/+openoffice", "_blank" );
       }
 
-      function showAlertbox( show ) {
-	// More see "http://html-color-codes.info/"
-        var l10n_alert_box_background_color = "#F5A9A9";
-        // Make the whole alert box clickable with a link.
-        var l10n_alert_box_href		    = "http://openoffice.apache.org/translate.html";
-	// Maximum 49 characters.
-        var l10n_alert_box_headline_text    = "We need your help to complete translation into XX!";
-	// Maximum 630 characters.
-        var l10n_alert_box_text_text	    = "This note is in English because we have no one to translate this webpage "
-        				      + "and others into your language. The links on the page will help you "
-        				      + "download and install Apache OpenOffice with XX translation. But we "
-        				      + "still need help with this website. <br /><br /> If you are interested "
-        				      + "in helping translate, please click this text to review the information. "
-        				      + "You can send a note to our mailing list \"L10N@openoffice.apache.org\" "
-        				      + "if you want to volunteer or if you have questions."
-
-        // Show alert box or not?
-        if( show ) {
-          // If no background color value was set then use the default value.
-          if( ! l10n_alert_box_background_color )
-            var l10n_alert_box_background_color = "#FFD9A7";
-
-          // Show alert box with defined background color.
-          // Depending if link is available, make the whole DIV clickable or not.
-          if( l10n_alert_box_href ) {
-            // Show the text with link and cursor as poiner.
-            document.write( "<div id='alert_box' style='background: " + l10n_alert_box_background_color
-            + "; ' onclick='window.open(\"" + l10n_alert_box_href + "\", \"_blank\"); return false;'>" );
-
-            // Show headline.
-            document.write( "<h2 style='cursor: pointer;'>" + l10n_alert_box_headline_text + "</h2>" );
-
-            // Show text.
-            if( l10n_alert_box_text_text )
-              document.write( "<p style='cursor: pointer;'>" + l10n_alert_box_text_text + "</p>" );
-
-          } else {
-            // Show the text without link and normal cursor.
-            document.write( "<div id='alert_box' style='background: " + l10n_alert_box_background_color + "'>" );
-
-            // Show headline.
-            document.write( "<h2 style='cursor: default;'>" + l10n_alert_box_headline_text + "</h2>" );
-
-            // Shoe text.
-            if( l10n_alert_box_text_text )
-              document.write( "<p style='cursor: default;'>" + l10n_alert_box_text_text + "</p>" );
-          }
+      function showAlertBox() {
+	// The text is defined in "/msg_prop_l10n.js".
 
-          document.write( "</div>" ); // Alert box
-        }
+	// Show alert box or not?
+	if( l10n.index_alert_box_show ) {
+		// If no background color value was set then use the default value.
+		if( ! l10n.index_alert_box_background_color || l10n.index_alert_box_background_color === "" )
+			l10n.index_alert_box_background_color = "#FFD9A7";
+
+		// Show alert box with defined background color.
+		// Depending if link is available, make the whole DIV clickable or not.
+		if( l10n.index_alert_box_href ) {
+			// Show the text with link and cursor as poiner.
+			document.write( "<div id='alert_box' style='background: "
+			+ l10n.index_alert_box_background_color
+			+ "; ' onclick='window.open( \"" + l10n.index_alert_box_href
+			+ "\", \"_blank\" ); return false;'>" );
+
+			// Show headline.
+			document.write( "<h2 style='cursor: pointer;'>"
+			+ l10n.index_alert_box_headline_text + "</h2>" );
+
+			// Show text.
+			if( l10n.index_alert_box_text_text ) {
+				document.write( "<p style='cursor: pointer;'>"
+				+ l10n.index_alert_box_text_text + "</p>" );
+			}
+		} else {
+			// Show the text without link and normal cursor.
+			document.write( "<div id='alert_box' style='background: "
+			+ l10n.index_alert_box_background_color + "'>" );
+
+			// Show headline.
+			document.write( "<h2 style='cursor: default;'>"
+			+ l10n.index_alert_box_headline_text + "</h2>" );
+
+			// Show text.
+			if( l10n.index_alert_box_text_text ) {
+				document.write( "<p style='cursor: default;'>"
+				+ l10n.index_alert_box_text_text + "</p>" );
+			}
+		}
+		document.write( "</div>" ); // Alert box
+	}
       }
     </script>
 </head>
@@ -98,7 +93,7 @@ screen reader.
   <!--
   // Show alert box.
   // Change to 'true' if you want to show the text that is defined in the variables above.
-  showAlertbox( true );
+  showAlertBox();
   //-->
   </script>