]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Comment toggling text is not localizable because it's in a .js file.
authorMarc Schumann <wurblzap@gmail.com>
Sat, 14 Apr 2012 22:02:17 +0000 (00:02 +0200)
committerMarc Schumann <wurblzap@gmail.com>
Sat, 14 Apr 2012 22:02:17 +0000 (00:02 +0200)
r/a=LpSolit

https://bugzilla.mozilla.org/show_bug.cgi?id=745460

js/comments.js
template/en/default/bug/comments.html.tmpl

index f46499b62f37676ff28229957ed41aae34b2464d..e7163a0fd21e695549cdc192e71648225a255882 100644 (file)
@@ -67,13 +67,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');
 }
 
@@ -127,11 +125,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 ){
index 208ea092a3bdab7c38a8adbb90c4b0f4a3fc9738..170c69349a2c5f60fc15e833fa367938e5fdb4e0 100644 (file)
           <span class="bz_comment_actions">
             <script type="text/javascript"><!--
               addReplyLink([% count %], [% comment.id %]);
-              addCollapseLink([% count %]); // -->
+              addCollapseLink([% count %], 'Toggle comment display'); // -->
             </script>
           </span>
         [% END %]