[Apt-listbugs-commits] [SCM] apt-listbugs development tree branch, master, updated. apt-listbugs/0.1.9-24-gee1a321

Francesco Poli (wintermute) invernomuto at paranoici.org
Sat Jul 27 19:52:40 UTC 2013


The following commit has been merged in the master branch:
commit d758fc841de8a45888c0479f19b4a19a3dd44b1c
Author: Francesco Poli (wintermute) <invernomuto at paranoici.org>
Date:   Sat Jul 27 19:02:55 2013 +0200

    add summary attribute to tables in HTML bug lists
    
    This should enhance accessibility: for more details, see
    http://www.w3.org/TR/2012/NOTE-WCAG20-TECHS-20120103/H73

diff --git a/lib/apt-listbugs/logic.rb b/lib/apt-listbugs/logic.rb
index 1533079..14d185b 100644
--- a/lib/apt-listbugs/logic.rb
+++ b/lib/apt-listbugs/logic.rb
@@ -608,7 +608,10 @@ class Viewer
       stats.each { |stat|
         sub = bugs.sub("stat", stat)
         if sub.size > 0
-          o.puts "\n    <table class=\"bug_table\">"
+          o.print "\n    <table class=\"bug_table\" summary=\""
+          # TRANSLATORS: this is a summary description of the structure of a table (for accessibility)
+          o.print _("The top row describes the meaning of the columns; the other rows describe bug reports, one per row")
+          o.print "\">\n"
           o.puts "      <caption>\n        " + @config.statmap(stat)
           o.puts "      </caption>"
           o.puts "\n      <tr class=\"header\">"

-- 
apt-listbugs development tree



More information about the Apt-listbugs-commits mailing list