aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Schumann <wurblzap@gmail.com>2012-04-15 00:02:45 +0200
committerMarc Schumann <wurblzap@gmail.com>2012-04-15 00:02:45 +0200
commit3988beb8e294613fb4e9ae47ec1d3d8b8e1c4d23 (patch)
treead3b84f6f81d5d6d80c449e409d404c5c36b7138
parent20e47ded48b99a57569c702529a3cb886099c9e4 (diff)
downloadbugs-3988beb8e294613fb4e9ae47ec1d3d8b8e1c4d23.tar
bugs-3988beb8e294613fb4e9ae47ec1d3d8b8e1c4d23.tar.gz
bugs-3988beb8e294613fb4e9ae47ec1d3d8b8e1c4d23.tar.bz2
bugs-3988beb8e294613fb4e9ae47ec1d3d8b8e1c4d23.tar.xz
bugs-3988beb8e294613fb4e9ae47ec1d3d8b8e1c4d23.zip
Comment toggling text is not localizable because it's in a .js file.
r/a=LpSolit https://bugzilla.mozilla.org/show_bug.cgi?id=745460
-rw-r--r--js/comments.js6
-rw-r--r--template/en/default/bug/comments.html.tmpl2
2 files changed, 3 insertions, 5 deletions
diff --git a/js/comments.js b/js/comments.js
index 703c23e7b..ce61f6ba0 100644
--- a/js/comments.js
+++ b/js/comments.js
@@ -52,13 +52,11 @@ function toggle_all_comments(action) {
function collapse_comment(link, comment) {
link.innerHTML = "[+]";
- link.title = "Expand the comment.";
YAHOO.util.Dom.addClass(comment, 'collapsed');
}
function expand_comment(link, comment) {
link.innerHTML = "[-]";
- link.title = "Collapse the comment";
YAHOO.util.Dom.removeClass(comment, 'collapsed');
}
@@ -112,11 +110,11 @@ function wrapReplyText(text) {
/* This way, we are sure that browsers which do not support JS
* won't display this link */
-function addCollapseLink(count) {
+function addCollapseLink(count, title) {
document.write(' <a href="#" class="bz_collapse_comment"' +
' id="comment_link_' + count +
'" onclick="toggle_comment_display(this, ' + count +
- '); return false;" title="Collapse the comment.">[-]<\/a> ');
+ '); return false;" title="' + title + '">[-]<\/a> ');
}
function goto_add_comments( anchor ){
diff --git a/template/en/default/bug/comments.html.tmpl b/template/en/default/bug/comments.html.tmpl
index 0bdb37586..4a433230b 100644
--- a/template/en/default/bug/comments.html.tmpl
+++ b/template/en/default/bug/comments.html.tmpl
@@ -146,7 +146,7 @@
[% END %]
>reply</a>]
<script type="text/javascript"><!--
- addCollapseLink([% count %]); // -->
+ addCollapseLink([% count %], 'Toggle comment display'); // -->
</script>
</span>
[% END %]