From 5e8e3ab6b59731733d830acadd4b218619eb3656 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Tue, 30 Jun 2009 18:28:55 -0700 Subject: Rejigger the way we handle "done" status in the upgrader. Now we present the done box if you're done and let you get rid of it if you want. It's not beautiful, by any means, but it gives you an easy link back to your Gallery when you're finished. Fixes ticket #479. --- modules/gallery/views/upgrader.html.php | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/gallery/views') diff --git a/modules/gallery/views/upgrader.html.php b/modules/gallery/views/upgrader.html.php index 90b03fce..f9e242a8 100644 --- a/modules/gallery/views/upgrader.html.php +++ b/modules/gallery/views/upgrader.html.php @@ -13,6 +13,7 @@
+ [x]

-- cgit v1.2.3 From a633c134b754305eaa611c5d67af4ca7c79beafe Mon Sep 17 00:00:00 2001 From: Andy Staudacher Date: Fri, 3 Jul 2009 16:14:05 -0700 Subject: Ticket 104: Adding "Copy sourc text" button to l10n UI (usability / productivity improvement) --- modules/gallery/js/l10n_client.js | 26 ++++++++++++++++++++++++++ modules/gallery/views/l10n_client.html.php | 2 ++ 2 files changed, 28 insertions(+) (limited to 'modules/gallery/views') diff --git a/modules/gallery/js/l10n_client.js b/modules/gallery/js/l10n_client.js index 7e29849d..f5be5058 100644 --- a/modules/gallery/js/l10n_client.js +++ b/modules/gallery/js/l10n_client.js @@ -140,6 +140,32 @@ jQuery.extend(Gallery, { } } } + + this.copySourceText = function() { + var index = Gallery.l10nClient.selected; + if (index >= 0) { + var source = Gallery.l10nClient.getString(index, 'source'); + var is_plural = Gallery.l10nClient.isPluralMessage(source); + if (is_plural) { + if (typeof(translation) != 'object') { + translation = {}; + } + var num_plural_forms = plural_forms.length; + for (var i = 0; i < num_plural_forms; i++) { + var form = plural_forms[i]; + var text = source['other']; + if (form == 'one') { + text = source['one']; + } + $('#l10n-edit-plural-translation-' + form) + .attr('value', text); + } + } else { + $('#l10n-edit-translation').attr('value', source); + } + + } + } }) }); diff --git a/modules/gallery/views/l10n_client.html.php b/modules/gallery/views/l10n_client.html.php index 38e92e3e..c0cbbfa2 100644 --- a/modules/gallery/views/l10n_client.html.php +++ b/modules/gallery/views/l10n_client.html.php @@ -63,6 +63,8 @@

"/> +
-- cgit v1.2.3