[pyzo] 11/68: Add translations

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Sep 28 09:47:05 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/master
in repository pyzo.

commit d66cdaa882f3e29e9bba4a9e14deb323737ffc3a
Author: yltang <yltang52 at gmail.com>
Date:   Fri Jul 22 21:45:46 2016 +0800

    Add translations
---
 pyzo/tools/pyzoHistoryViewer.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/pyzo/tools/pyzoHistoryViewer.py b/pyzo/tools/pyzoHistoryViewer.py
index ef3ebc8..6336886 100644
--- a/pyzo/tools/pyzoHistoryViewer.py
+++ b/pyzo/tools/pyzoHistoryViewer.py
@@ -18,8 +18,8 @@ import pyzo
 from pyzo import translate
 from pyzo.core.menu import Menu
 
-tool_name = "History viewer"
-tool_summary = "Shows the last used commands."
+tool_name = translate("pyzoHistoryViewer", "History viewer")
+tool_summary = translate("pyzoHistoryViewer", "Shows the last used commands.")
 
 
 
@@ -127,7 +127,7 @@ class History(QtGui.QStringListModel):
             self.setStringList([line.rstrip() for line in lines])
             
         except Exception as e:
-            print ('An error occurred while loading the history: ' + str(e))
+            print (translate('pyzoHistoryViewer', 'An error occurred while loading the history: ' + str(e)))
             self._file = None
         
         # When data is appended for the first time, a marker will be appended first
@@ -202,4 +202,4 @@ if __name__ == '__main__':
     view = PyzoHistoryViewer()
     view.setModel(history)
     view.show()
-    history.append('test')
\ No newline at end of file
+    history.append('test')

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pyzo.git



More information about the debian-science-commits mailing list