Index: ajax.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/l10n_server/l10n_community/Attic/ajax.inc,v retrieving revision 1.1.2.10 diff -u -p -r1.1.2.10 ajax.inc --- ajax.inc 23 Feb 2008 10:52:10 -0000 1.1.2.10 +++ ajax.inc 7 Mar 2008 18:11:11 -0000 @@ -63,7 +63,7 @@ function l10n_community_string_details($ $decline_button = $perm == L10N_PERM_ALL ? theme('l10n_community_button', 'decline', 'decline', 'onclick="return l10nCommunity.declineSuggestion('. $suggestion->tid .','. $suggestion->sid .');" title="'. t('Decline suggestion.') .'"') : ''; - $copy_button = theme('l10n_community_button', 'edit', 'copy', 'onclick="return l10nCommunity.copySuggestion('. $suggestion->sid .',\''. check_plain(str_replace(array("'", "\0"), array("\\'", "\O"), $suggestion->translation)) .'\');" title="'. t('Copy suggestion text to the edit field.') .'"'); + $copy_button = theme('l10n_community_button', 'edit', 'copy', 'onclick="return l10nCommunity.copySuggestion('. $suggestion->sid .',\''. check_plain(drupal_to_js($suggestion->translation)) .'\');" title="'. t('Copy suggestion text to the edit field.') .'"'); // Plural versions are shown in a short form. $translation = check_plain(strpos($suggestion->translation, "\0") ? str_replace(chr(0), '; ', $suggestion->translation) : $suggestion->translation);