From 5d07c271eebd86ba150649406c2ff5859cd11d6f Mon Sep 17 00:00:00 2001 From: "luz.paz" Date: Mon, 12 Feb 2018 10:23:58 -0500 Subject: [PATCH] Residual files left to remove \n from translate() --- src/Gui/DlgSettingsViewColor.ui | 2 +- src/Mod/AddonManager/AddonManager.py | 10 +++++----- src/Mod/Path/PathScripts/PathSanity.py | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Gui/DlgSettingsViewColor.ui b/src/Gui/DlgSettingsViewColor.ui index 0ed5d464f1..c1c9b46f73 100644 --- a/src/Gui/DlgSettingsViewColor.ui +++ b/src/Gui/DlgSettingsViewColor.ui @@ -180,7 +180,7 @@ - Sets the area of confusion for picking elements in 3D view. Larger value make it easier to pick stuff, but will make some small features impossible to select. + Sets the area of confusion for picking elements in 3D view. Larger value makes it easier to pick stuff, but will make some small features impossible to select. Qt::ImhPreferNumbers diff --git a/src/Mod/AddonManager/AddonManager.py b/src/Mod/AddonManager/AddonManager.py index 9addc43993..f94c141f88 100644 --- a/src/Mod/AddonManager/AddonManager.py +++ b/src/Mod/AddonManager/AddonManager.py @@ -494,7 +494,7 @@ class CheckWBWorker(QtCore.QThread): cw.set('core', 'bare', False) except AttributeError: if not gitpython_warning: - FreeCAD.Console.PrintWarning(translate("AddonsInstaller", "Outdated GitPython detected, consider upgrading with pip.\n")) + FreeCAD.Console.PrintWarning(translate("AddonsInstaller", "Outdated GitPython detected, consider upgrading with pip.")+"\n") gitpython_warning = True cw = bare_repo.config_writer() cw.set('core', 'bare', False) @@ -607,7 +607,7 @@ class ShowWorker(QtCore.QThread): with bare_repo.config_writer() as cw: cw.set('core', 'bare', False) except AttributeError: - FreeCAD.Console.PrintWarning(translate("AddonsInstaller", "Outdated GitPython detected, consider upgrading with pip.\n")) + FreeCAD.Console.PrintWarning(translate("AddonsInstaller", "Outdated GitPython detected, consider upgrading with pip.")+"\n") cw = bare_repo.config_writer() cw.set('core', 'bare', False) del cw @@ -715,12 +715,12 @@ class InstallWorker(QtCore.QThread): import git except: self.info_label.emit("GitPython not found.") - FreeCAD.Console.PrintWarning(translate("AddonsInstaller","GitPython not found. Using standard download instead.\n")) + FreeCAD.Console.PrintWarning(translate("AddonsInstaller","GitPython not found. Using standard download instead.")+"\n") try: import zipfile except: self.info_label.emit("no zip support.") - FreeCAD.Console.PrintError(translate("AddonsInstaller","Your version of python doesn't appear to support ZIP files. Unable to proceed.\n")) + FreeCAD.Console.PrintError(translate("AddonsInstaller","Your version of python doesn't appear to support ZIP files. Unable to proceed.")+"\n") return try: import StringIO as io @@ -751,7 +751,7 @@ class InstallWorker(QtCore.QThread): with bare_repo.config_writer() as cw: cw.set('core', 'bare', False) except AttributeError: - FreeCAD.Console.PrintWarning(translate("AddonsInstaller", "Outdated GitPython detected, consider upgrading with pip.\n")) + FreeCAD.Console.PrintWarning(translate("AddonsInstaller", "Outdated GitPython detected, consider upgrading with pip.")+"\n") cw = bare_repo.config_writer() cw.set('core', 'bare', False) del cw diff --git a/src/Mod/Path/PathScripts/PathSanity.py b/src/Mod/Path/PathScripts/PathSanity.py index 9153788fbc..7ec1238dff 100644 --- a/src/Mod/Path/PathScripts/PathSanity.py +++ b/src/Mod/Path/PathScripts/PathSanity.py @@ -70,7 +70,7 @@ class CommandPathSanity: clean = True # if obj.X_Max == obj.X_Min or obj.Y_Max == obj.Y_Min: - # FreeCAD.Console.PrintWarning(translate("Path_Sanity", "It appears the machine limits haven't been set. Not able to check path extents.\n")) + # FreeCAD.Console.PrintWarning(translate("Path_Sanity", "It appears the machine limits haven't been set. Not able to check path extents.")+"\n") if obj.PostProcessor == '': FreeCAD.Console.PrintWarning(translate("Path_Sanity", "A Postprocessor has not been selected.")+"\n")