diff options
author | cweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2010-09-27 20:43:35 +0000 |
---|---|---|
committer | cweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2010-09-27 20:43:35 +0000 |
commit | f0456530b4940918efba25ea15e22532c682fb70 (patch) | |
tree | 580357e0d4a590ac0eaf7bf372c3bb839f3ab5b0 /data | |
parent | eb105d379bc2283e2bf2ea33bf455ec9caf5c7ee (diff) | |
download | semanticscuttle-f0456530b4940918efba25ea15e22532c682fb70.tar.gz semanticscuttle-f0456530b4940918efba25ea15e22532c682fb70.tar.bz2 |
Fix bug #3074816: French translation breaks edit javascript
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@757 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/editbookmark.tpl.php | 28 |
1 files changed, 20 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()'; |