Author: buildbot
Date: Sun Jun 29 16:26:12 2014
New Revision: 914344
Log:
Staging update by buildbot for ooo-site
Modified:
websites/staging/ooo-site/trunk/cgi-bin/ (props changed)
websites/staging/ooo-site/trunk/content/ (props changed)
websites/staging/ooo-site/trunk/content/bg/index.html
Propchange: websites/staging/ooo-site/trunk/cgi-bin/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Sun Jun 29 16:26:12 2014
@@ -1 +1 @@
-1606532
+1606535
Propchange: websites/staging/ooo-site/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Sun Jun 29 16:26:12 2014
@@ -1 +1 @@
-1606532
+1606535
Modified: websites/staging/ooo-site/trunk/content/bg/index.html
==============================================================================
--- websites/staging/ooo-site/trunk/content/bg/index.html (original)
+++ websites/staging/ooo-site/trunk/content/bg/index.html Sun Jun 29 16:26:12
2014
@@ -37,37 +37,45 @@
function showAlertbox( show ) {
// More see "http://html-color-codes.info/"
var l10n_alert_box_background_color = "#F5A9A9";
- // Maximum 86 characters.
- var l10n_alert_box_headline_text = "We need your help to complete
support of Apache OpenOffice into Bulgarian!";
- // Maximum 517 characters.
- var l10n_alert_box_text1_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
Bulgarian translation. But we still need help with this website. <br /><br />
If you are interested in helping translate, please click the following link to
review the information. You can send a note to our mailing list,
\"[email protected]\", if you want to volunteer or if you have
questions.";
- // Maximum 517 characters.
- var l10n_alert_box_text2_text = "How to help with translation";
- var l10n_alert_box_text2_href =
"http://openoffice.apache.org/translate.html";
+ // 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 Bulgarian!";
+ // 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
Bulgarian 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
\"[email protected]\" if you want to volunteer or if you have
questions.";
// Show alert box or not?
if( show ) {
- // If no color value was set then use the default value.
+ // 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.
- document.write( "<div id='alert_box' style='background: " +
l10n_alert_box_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>" + l10n_alert_box_headline_text + "</h2>" );
+ 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>" );
+ }
- // If text without link is available then show it.
- if( l10n_alert_box_text1_text )
- document.write( "<p>" + l10n_alert_box_text1_text + "</p>" );
-
- // If text with link is available then show it.
- if( l10n_alert_box_text2_text ) {
- document.write( "<p>"
- + "<a href='" + l10n_alert_box_text2_href + "'
target='_blank'>"
- + l10n_alert_box_text2_text
- + "</a>"
- + "</p>" );
- }
document.write( "</div>" ); // Alert box
}
}