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
This commit is contained in:
cweiske 2010-09-27 20:43:35 +00:00
parent eb105d379b
commit f0456530b4
2 changed files with 21 additions and 8 deletions

View File

@ -140,14 +140,26 @@ if (empty($_REQUEST['popup']) && (!isset($showdelete) || !$showdelete)) {
<p> <p>
<script type="text/javascript"> <script type="text/javascript">
var browser=navigator.appName; var browser=navigator.appName;
if (browser == "Opera") if (browser == "Opera") {
{ document.write(
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>'); <?php echo json_encode(
} sprintf(
else 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']
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>'); )
} ); ?> + ':</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 = ''; var selection = '';
if (window.getSelection) { if (window.getSelection) {
selection = 'window.getSelection()'; selection = 'window.getSelection()';

View File

@ -7,6 +7,7 @@ ChangeLog for SemantiScuttle
- Show error message on mysqli connection errors - Show error message on mysqli connection errors
- Implement patch #3059829: update FR_CA translation - Implement patch #3059829: update FR_CA translation
- Fix bug #3073215: Updating bookmark time does not work - Fix bug #3073215: Updating bookmark time does not work
- Fix bug #3074816: French translation breaks edit javascript
0.97.0 - 2010-06-09 0.97.0 - 2010-06-09