diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-06-05 00:48:18 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-06-05 00:48:18 -0700 |
commit | b30645e36c0ed6db1c80459a8316a8ec967d5db9 (patch) | |
tree | a58a95d7f0f0ae29d894cb06cf1f1f4ff0257d08 | |
parent | 76abcb7520fc9b7300a22fad14b873d5ce2663a3 (diff) |
Localize the 'Add a comment' message
-rw-r--r-- | themes/default/js/ui.init.js | 4 | ||||
-rw-r--r-- | themes/default/views/photo.html.php | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/themes/default/js/ui.init.js b/themes/default/js/ui.init.js index ae6f1966..9d9d3079 100644 --- a/themes/default/js/ui.init.js +++ b/themes/default/js/ui.init.js @@ -12,7 +12,7 @@ var shortForms = new Array( ); $(document).ready(function() { - + // Initialize Superfish menus $("ul.gMenu").addClass("sf-menu"); $('ul.sf-menu').superfish({ @@ -64,7 +64,7 @@ $(document).ready(function() { // Collapse comments form, insert button to expand if ($("#gAddCommentForm").length) { - var showCommentForm = '<a href="#add_comment_form" class="showCommentForm gButtonLink ui-corner-all ui-icon-left ui-state-default right"><span class="ui-icon ui-icon-comment"></span>Add a comment</a>'; + var showCommentForm = '<a href="#add_comment_form" class="showCommentForm gButtonLink ui-corner-all ui-icon-left ui-state-default right"><span class="ui-icon ui-icon-comment"></span>' + ADD_A_COMMENT + '</a>'; $("#gAddCommentForm").hide(); $("#gComments").prepend(showCommentForm); $(".showCommentForm").click(function(){ diff --git a/themes/default/views/photo.html.php b/themes/default/views/photo.html.php index 85143da8..cc4cc750 100644 --- a/themes/default/views/photo.html.php +++ b/themes/default/views/photo.html.php @@ -41,5 +41,8 @@ <div><?= p::clean($item->description) ?></div> </div> + <script type="text/javascript"> + var ADD_A_COMMENT = "<?= t("Add a comment") ?>"; + </script> <?= $theme->photo_bottom() ?> </div> |