aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2011-02-15 07:49:58 +0100
committerChristian Weiske <cweiske@cweiske.de>2011-02-15 07:49:58 +0100
commit60814a1bd3d3ac2b8ee7c985f6e7f14a00282571 (patch)
tree6642eeab8a24f32b5cc4b85dcf6e96212f1c0710
parent67db678292bea9d89fe66b30a87483b6c18b1411 (diff)
downloadsemanticscuttle-60814a1bd3d3ac2b8ee7c985f6e7f14a00282571.tar.gz
semanticscuttle-60814a1bd3d3ac2b8ee7c985f6e7f14a00282571.tar.bz2
Fix bug #3074816: French translation breaks edit javascript
Also fixes #3094047 and #3178592 git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@757 b3834d28-1941-0410-a4f8-b48e95affb8f (cherry picked from commit f0456530b4940918efba25ea15e22532c682fb70) Conflicts: doc/ChangeLog
-rw-r--r--data/templates/editbookmark.tpl.php28
-rw-r--r--doc/ChangeLog2
2 files changed, 22 insertions, 8 deletions
diff --git a/data/templates/editbookmark.tpl.php b/data/templates/editbookmark.tpl.php
index c58bd1b..dd6b100 100644
--- a/data/templates/editbookmark.tpl.php
+++ b/data/templates/editbookmark.tpl.php
@@ -140,14 +140,26 @@ if (empty($_REQUEST['popup']) && (!isset($showdelete) || !$showdelete)) {
<p>
<script type="text/javascript">
var browser=navigator.appName;
-if (browser == "Opera")
- {
- document.write('<?php echo sprintf(T_("Click one of the following bookmarklets to add a button you can click whenever you want to add the page you are on to %s"), jsEscTitle($GLOBALS['sitename'])); ?>:</p>');
- }
-else
- {
- document.write('<?php echo sprintf(T_("Drag one of the following bookmarklets to your browser's bookmarks and click it whenever you want to add the page you are on to %s"), jsEscTitle($GLOBALS['sitename'])); ?>:</p>');
- }
+if (browser == "Opera") {
+ document.write(
+ <?php echo json_encode(
+ sprintf(
+ T_("Click one of the following bookmarklets to add a button you can click whenever you want to add the page you are on to %s"),
+ $GLOBALS['sitename']
+ )
+ ); ?> + ':</p>'
+ );
+} else {
+ document.write(
+ <?php echo json_encode(
+ sprintf(
+ T_("Drag one of the following bookmarklets to your browser's bookmarks and click it whenever you want to add the page you are on to %s"),
+ $GLOBALS['sitename']
+ )
+ );
+ ?> + ':</p>'
+ );
+}
var selection = '';
if (window.getSelection) {
selection = 'window.getSelection()';
diff --git a/doc/ChangeLog b/doc/ChangeLog
index 48ca425..5925a85 100644
--- a/doc/ChangeLog
+++ b/doc/ChangeLog
@@ -4,6 +4,8 @@ ChangeLog for SemantiScuttle
0.97.2 - 2011-02-XX
-------------------
- Fix bug #3178597: Broken link to context in gsearch admin index page
+- Fix bug #3074816: French translation breaks edit javascript
+ This also fixes #3094047 and #3178592
0.97.1 - 2010-09-30