[pyzo] 21/68: fix some translations (tool names cannot be translated at this point

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Sep 28 09:47:08 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 d78f1f567ed0e65a8295dd9f97ba5a36e018a0b2
Author: Almar Klein <almar.klein at gmail.com>
Date:   Fri Aug 19 09:25:35 2016 +0200

    fix some translations (tool names cannot be translated at this point
---
 pyzo/tools/pyzoFileBrowser/__init__.py | 4 ++--
 pyzo/tools/pyzoHistoryViewer.py        | 4 ++--
 pyzo/tools/pyzoInteractiveHelp.py      | 4 ++--
 pyzo/tools/pyzoLogger.py               | 4 ++--
 pyzo/tools/pyzoSourceStructure.py      | 6 ++++--
 pyzo/tools/pyzoWebBrowser.py           | 4 ++--
 pyzo/tools/pyzoWorkspace.py            | 4 ++--
 7 files changed, 16 insertions(+), 14 deletions(-)

diff --git a/pyzo/tools/pyzoFileBrowser/__init__.py b/pyzo/tools/pyzoFileBrowser/__init__.py
index 57c9e0b..1af5a8f 100644
--- a/pyzo/tools/pyzoFileBrowser/__init__.py
+++ b/pyzo/tools/pyzoFileBrowser/__init__.py
@@ -4,8 +4,8 @@
 # Pyzo is distributed under the terms of the (new) BSD License.
 # The full license can be found in 'license.txt'.
 
-tool_name = translate("pyzoFileBrowser", "File browser")
-tool_summary = translate("pyzoFileBrowser", "Browse the files in your projects.")
+tool_name = "File browser"
+tool_summary = "Browse the files in your projects."
 
 
 """ File browser tool
diff --git a/pyzo/tools/pyzoHistoryViewer.py b/pyzo/tools/pyzoHistoryViewer.py
index 6336886..335d396 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 = translate("pyzoHistoryViewer", "History viewer")
-tool_summary = translate("pyzoHistoryViewer", "Shows the last used commands.")
+tool_name = "History viewer"
+tool_summary = "Shows the last used commands."
 
 
 
diff --git a/pyzo/tools/pyzoInteractiveHelp.py b/pyzo/tools/pyzoInteractiveHelp.py
index 068ad7d..d2ead6e 100644
--- a/pyzo/tools/pyzoInteractiveHelp.py
+++ b/pyzo/tools/pyzoInteractiveHelp.py
@@ -9,8 +9,8 @@ import sys, os, time, re
 from pyzolib.qt import QtCore, QtGui
 import pyzo 
 
-tool_name = translate("pyzoInteractiveHelp", "Interactive help")
-tool_summary = translate("pyzoInteractiveHelp", "Shows help on an object when using up/down in autocomplete.")
+tool_name = "Interactive help"
+tool_summary = "Shows help on an object when using up/down in autocomplete."
 
 #
 htmlWrap = """<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
diff --git a/pyzo/tools/pyzoLogger.py b/pyzo/tools/pyzoLogger.py
index 4e31399..15a58f7 100644
--- a/pyzo/tools/pyzoLogger.py
+++ b/pyzo/tools/pyzoLogger.py
@@ -12,8 +12,8 @@ from pyzo.core.shell import BaseShell
 from pyzo.core.pyzoLogging import splitConsole
 
 
-tool_name = translate("pyzoLogger", "Logger")
-tool_summary = translate("pyzoLogger", "Logs messages, warnings and errors within Pyzo.")
+tool_name = "Logger"
+tool_summary = "Logs messages, warnings and errors within Pyzo."
  
 
 class PyzoLogger(BaseShell):
diff --git a/pyzo/tools/pyzoSourceStructure.py b/pyzo/tools/pyzoSourceStructure.py
index c7e0f16..fc0f3ae 100644
--- a/pyzo/tools/pyzoSourceStructure.py
+++ b/pyzo/tools/pyzoSourceStructure.py
@@ -9,8 +9,10 @@ import time
 from pyzolib.qt import QtCore, QtGui
 import pyzo
 
-tool_name = translate("pyzoSourceStructure", "Source structure")
-tool_summary = translate("pyzoSourceStructure", "Shows the structure of your source code.")
+from pyzo import translate
+
+tool_name = "Source structure"
+tool_summary = "Shows the structure of your source code."
 
 
 class PyzoSourceStructure(QtGui.QWidget):
diff --git a/pyzo/tools/pyzoWebBrowser.py b/pyzo/tools/pyzoWebBrowser.py
index 872cf17..017e4fd 100644
--- a/pyzo/tools/pyzoWebBrowser.py
+++ b/pyzo/tools/pyzoWebBrowser.py
@@ -17,8 +17,8 @@ except ImportError:
 
 import pyzo
 
-tool_name = translate("pyzoWebBrowser", "Web browser")
-tool_summary = translate("pyzoWebBrowser", "A very simple web browser.")
+tool_name = "Web browser"
+tool_summary = "A very simple web browser."
 
 
 default_bookmarks = [   'docs.python.org', 
diff --git a/pyzo/tools/pyzoWorkspace.py b/pyzo/tools/pyzoWorkspace.py
index 6d2f935..c5d18c1 100644
--- a/pyzo/tools/pyzoWorkspace.py
+++ b/pyzo/tools/pyzoWorkspace.py
@@ -10,8 +10,8 @@ import sys, os, time
 from pyzolib.qt import QtCore, QtGui
 import pyzo 
 
-tool_name = translate("pyzoWorkspace", "Workspace")
-tool_summary = translate("pyzoWorkspace", "Lists the variables in the current shell's namespace.")
+tool_name = "Workspace"
+tool_summary = "Lists the variables in the current shell's namespace."
 
 
 

-- 
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