diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gallery/css/l10n_client.css | 2 | ||||
-rw-r--r-- | modules/gallery/js/l10n_client.js | 6 | ||||
-rw-r--r-- | modules/gallery/views/l10n_client.html.php | 4 |
3 files changed, 7 insertions, 5 deletions
diff --git a/modules/gallery/css/l10n_client.css b/modules/gallery/css/l10n_client.css index ecec859d..51cbc753 100644 --- a/modules/gallery/css/l10n_client.css +++ b/modules/gallery/css/l10n_client.css @@ -38,7 +38,7 @@ display:none;} /* Panel toggle button (span) */ -#l10n-client .labels .toggle { +#l10n-client-toggler { cursor:pointer; display:block; position:absolute; right:0em; diff --git a/modules/gallery/js/l10n_client.js b/modules/gallery/js/l10n_client.js index 4936d1cc..7e29849d 100644 --- a/modules/gallery/js/l10n_client.js +++ b/modules/gallery/js/l10n_client.js @@ -58,7 +58,7 @@ jQuery.extend(Gallery, { case 1: $('#l10n-client-string-select, #l10n-client-string-editor, #l10n-client .labels .label').show(); $('#l10n-client').height('22em').removeClass('hidden'); - $('#l10n-client .labels .toggle').text('X'); + $('#l10n-client-toggler').text(MSG_CLOSE_X); /* * This CSS clashes with Gallery's CSS, probably due to * YUI's grid / floats. @@ -72,7 +72,7 @@ jQuery.extend(Gallery, { $('#l10n-client-string-select, #l10n-client-string-editor, #l10n-client .labels .label').hide(); $('#l10n-client').height('2em').addClass('hidden'); // TODO: Localize this message - $('#l10n-client .labels .toggle').text('Translate Text'); + $('#l10n-client-toggler').text(MSG_TRANSLATE_TEXT); /* if(!$.browser.msie) { $('body').css('border-bottom', '0px'); @@ -171,7 +171,7 @@ Gallery.behaviors.l10nClient = function(context) { }); // When l10n_client window is clicked, toggle based on current state. - $('#l10n-client .labels .toggle').click(function() { + $('#l10n-client-toggler').click(function() { if($('#l10n-client').is('.hidden')) { Gallery.l10nClient.toggle(1); } else { diff --git a/modules/gallery/views/l10n_client.html.php b/modules/gallery/views/l10n_client.html.php index c15f4b0e..38e92e3e 100644 --- a/modules/gallery/views/l10n_client.html.php +++ b/modules/gallery/views/l10n_client.html.php @@ -1,7 +1,7 @@ <?php defined("SYSPATH") or die("No direct script access.") ?> <div id="l10n-client" class="hidden"> <div class="labels"> - <span class="toggle"><?= t("Translate Text") ?></span> + <span id="l10n-client-toggler">X</span> <div class="label strings"><h2><?= t("Page Text") ?> <? if (!Input::instance()->get('show_all_l10n_messages')): ?> <a style="background-color:#fff" href="<?= url::site("admin/languages?show_all_l10n_messages=1") ?>"><?= t("(Show All)") ?></a> @@ -67,6 +67,8 @@ </div> </div> <script type="text/javascript"> + var MSG_TRANSLATE_TEXT = "<?= t("Translate Text") ?>"; + var MSG_CLOSE_X = "<?= t("X") ?>"; var l10n_client_data = <?= json_encode($string_list) ?>; var plural_forms = <?= json_encode($plural_forms) ?>; </script> |