Package: reportbug-ng
Version: 1.23
Severity: minor
Tags: l10n patch

--- Please enter the report below this line. ---

Hi,
table columns do not have localizable captions.
Patch added.

Cheers,
Petr
--- a/src/rnggui.py	2010-08-07 03:17:23.000000000 +0200
+++ b/src/rnggui.py	2010-11-22 02:47:15.193457487 +0100
@@ -20,6 +20,7 @@
 import thread
 
 from PyQt4 import QtCore, QtGui
+from PyQt4.QtCore import QCoreApplication
 
 from ui import mainwindow
 from ui import submitdialog
@@ -453,8 +454,13 @@
         self.parent = parent
         self.logger = logging.getLogger("TableModel")
         self.elements = []
-        self.header = ["Bugnumber", "Package", "Summary", "Status", 
-                        "Severity", "Tags", "Last Action"]
+        self.header = [QCoreApplication.translate('TableModel', "Bugnumber"),
+	               QCoreApplication.translate('TableModel', "Package"),
+                       QCoreApplication.translate('TableModel', "Summary"),
+                       QCoreApplication.translate('TableModel', "Status"),
+                       QCoreApplication.translate('TableModel', "Severity"),
+                       QCoreApplication.translate('TableModel', "Tags"),
+                       QCoreApplication.translate('TableModel', "Last Action")]
  
     def rowCount(self, parent):
         return len(self.elements)

Reply via email to