diff options
author | Andy Staudacher <andy.st@gmail.com> | 2009-06-19 03:44:05 +0800 |
---|---|---|
committer | <unostar@danalan.info> | 2009-06-20 09:40:57 +0800 |
commit | 2d54edc50e281016fca9f4b2710dd9f305051393 (patch) | |
tree | 17afa27c3f2e27e625d47ce9ee8bec152e2c5fe1 /modules/gallery/js/l10n_client.js | |
parent | 1d9f9138fb1ab67866f611a92527304a937b9ad8 (diff) |
Fix format of source message in l10n client (adding a newline between plural forms)
Signed-off-by: <unostar@danalan.info>
Diffstat (limited to 'modules/gallery/js/l10n_client.js')
-rw-r--r-- | modules/gallery/js/l10n_client.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/gallery/js/l10n_client.js b/modules/gallery/js/l10n_client.js index 89c4a57d..4936d1cc 100644 --- a/modules/gallery/js/l10n_client.js +++ b/modules/gallery/js/l10n_client.js @@ -93,12 +93,13 @@ jQuery.extend(Gallery, { // Display the source message this.showSourceMessage = function(source, is_plural) { if (is_plural) { - var pretty_source = '[one] - ' + source['one'] + "\n"; - pretty_source += '[other] - ' + source['other']; + var pretty_source = $('#source-text-tmp-space').text('[one] - ' + source['one']).html(); + pretty_source += '<br/>'; + pretty_source += $('#source-text-tmp-space').text('[other] - ' + source['other']).html(); } else { - var pretty_source = source; + var pretty_source = $('#source-text-tmp-space').text(source).html(); } - $('#l10n-client-string-editor .source-text').text(pretty_source); + $('#l10n-client-string-editor .source-text').html(pretty_source); } this.isPluralMessage = function(message) { return typeof(message) == 'object'; |