]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
Fix bug #3074816: French translation breaks edit javascript
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Mon, 27 Sep 2010 20:43:35 +0000 (20:43 +0000)
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Mon, 27 Sep 2010 20:43:35 +0000 (20:43 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@757 b3834d28-1941-0410-a4f8-b48e95affb8f

data/templates/editbookmark.tpl.php
doc/ChangeLog

index c58bd1b5fdc5dae24375eaaf20e88c08eeb6e36a..dd6b10039555d8dc3fa72d44b40f5fd78859666a 100644 (file)
@@ -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()';
index 07b1e49ed7a6dd4cc408ff759262674977b08345..2633fc8822dcc3d25af6d04434c5d109f6eec538 100644 (file)
@@ -7,6 +7,7 @@ ChangeLog for SemantiScuttle
 - Show error message on mysqli connection errors
 - Implement patch #3059829: update FR_CA translation
 - Fix bug #3073215: Updating bookmark time does not work
+- Fix bug #3074816: French translation breaks edit javascript
 
 
 0.97.0 - 2010-06-09