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

Francesco Poli (wintermute) invernomuto at paranoici.org
Sat Jul 20 18:13:46 UTC 2013


The following commit has been merged in the master branch:
commit 8bb9c8c772815710d1f52bf805b72be90dc1ed2e
Author: Francesco Poli (wintermute) <invernomuto at paranoici.org>
Date:   Wed Jul 17 23:53:42 2013 +0200

    clarify states in HTML bug lists
    
    "Human-readable" pending-state categories are now used; the HTML page title
    has also been made clearer.

diff --git a/debian/changelog b/debian/changelog
index 559dcb8..0d25063 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,7 @@ apt-listbugs (0.1.10) UNRELEASED; urgency=low
     [pending,forwarded,pending-fixed,fixed,done]
   * improved internationalization
   * dropped the deprecated tempfile in the cron.daily job (replaced by mktemp)
+  * improved HTML bug lists
 
  -- Francesco Poli (wintermute) <invernomuto at paranoici.org>  Sat, 29 Jun 2013 17:18:26 +0200
 
diff --git a/lib/apt-listbugs/logic.rb b/lib/apt-listbugs/logic.rb
index f09782f..817ca48 100644
--- a/lib/apt-listbugs/logic.rb
+++ b/lib/apt-listbugs/logic.rb
@@ -603,8 +603,7 @@ class Viewer
         sub = bugs.sub("stat", stat)
         if sub.size > 0
           o.puts "<table border=2 width=100%>"
-          # TRANSLATORS: %s is a bug status such as forwarded, done, pending, pending-fixed, etc. see the -S option in the man page.
-          o.puts sprintf(" <caption>" + _("Bug reports which are marked as %s in the bug tracking system") + "</caption>", stat)
+          o.puts " <caption>" + @config.statmap(stat) + "</caption>"
           o.puts " <tr><th>" + _("package") + "</th><th>" + _("severity") + "</th><th>" + _("bug number") + "</th><th>" + _("description") + "</th></tr>"
           yield sub
           o.puts "</table><br>"
@@ -619,8 +618,8 @@ class Viewer
       displayed_pkgs = []
 
       tmp = HtmlTempfile.new("apt-listbugs")
-      tmp.puts "<html><head><title>" + _("Critical bugs for your upgrade") + "</title><meta http-equiv=\"Content-Type\" content=\"text/html; charset=#{Locale.charset}\"></head><body>"
-      tmp.puts "<h1 align=\"center\">" + _("Critical bugs for your upgrade") + "</h1>"
+      tmp.puts "<html><head><title>" + _("Relevant bugs for your upgrade") + "</title><meta http-equiv=\"Content-Type\" content=\"text/html; charset=#{Locale.charset}\"></head><body>"
+      tmp.puts "<h1 align=\"center\">" + _("Relevant bugs for your upgrade") + "</h1>"
       tmp.puts "<p align=\"right\">" + _("by apt-listbugs") + "</p><hr>"
       tmp.puts "<h2>" + _("Bug reports") + "</h2>"
 

-- 
apt-listbugs development tree



More information about the Apt-listbugs-commits mailing list