]> 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:45 +0000 (00:02 +0200)
committerMarc Schumann <wurblzap@gmail.com>
Sat, 14 Apr 2012 22:02:45 +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 703c23e7b662b3de4325eddf1bcd2f3e664d6c61..ce61f6ba071cfabf0681dab94b7facf1f9aedccf 100644 (file)
@@ -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 ){
index 0bdb375869c5023daccf618eabb8a97ed34fd76b..4a433230b302bbaa2efd46e63eb5fd7d3ddb1815 100644 (file)
               [% END %]
             >reply</a>]
             <script type="text/javascript"><!--
-              addCollapseLink([% count %]); // -->
+              addCollapseLink([% count %], 'Toggle comment display'); // -->
             </script>
           </span>
         [% END %]