From 25b58a1a8c2dddc6345138998526b6decdc995e7 Mon Sep 17 00:00:00 2001 From: "luz.paz" Date: Sat, 14 Apr 2018 14:13:24 -0400 Subject: [PATCH] Arch: Residual trailing \n chars removed from translate() --- src/Mod/Arch/ArchBuilding.py | 6 +++--- src/Mod/Arch/ArchFloor.py | 4 ++-- src/Mod/Arch/ArchSite.py | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Mod/Arch/ArchBuilding.py b/src/Mod/Arch/ArchBuilding.py index 83b4be7b22..5685d96a6c 100644 --- a/src/Mod/Arch/ArchBuilding.py +++ b/src/Mod/Arch/ArchBuilding.py @@ -229,13 +229,13 @@ class _CommandBuilding: warning = True if warning : message = translate( "Arch" , "You can put anything but Site and Building object in a Building object.\n\ -Building object are not allowed to accept Site and Building object.\n\ +Building object is not allowed to accept Site and Building object.\n\ Site and Building objects will be removed from the selection.\n\ -You can change that in the preferences.\n" ) +You can change that in the preferences.") + "\n" ArchCommands.printMessage( message ) if sel and len(buildingobj) == 0: message = translate( "Arch" , "There is no valid object in the selection.\n\ -Building creation aborted.\n" ) +Building creation aborted.") + "\n" ArchCommands.printMessage( message ) else : ss = "[ " diff --git a/src/Mod/Arch/ArchFloor.py b/src/Mod/Arch/ArchFloor.py index 109674b8c3..edc745a2cc 100644 --- a/src/Mod/Arch/ArchFloor.py +++ b/src/Mod/Arch/ArchFloor.py @@ -90,11 +90,11 @@ class _CommandFloor: message = translate( "Arch" , "You can put anything but Site, Building, Floor object in a Floor object.\n\ Floor object are not allowed to accept Site or Building object.\n\ Site, Building and Floor objects will be removed from the selection.\n\ -You can change that in the preferences.\n" ) +You can change that in the preferences.") + "\n" ArchCommands.printMessage( message ) if sel and len(floorobj) == 0: message = translate( "Arch" , "There is no valid object in the selection.\n\ -Floor creation aborted.\n" ) +Floor creation aborted.") + "\n" ArchCommands.printMessage( message ) else : ss = "[ " diff --git a/src/Mod/Arch/ArchSite.py b/src/Mod/Arch/ArchSite.py index fb70763251..0ac4085445 100644 --- a/src/Mod/Arch/ArchSite.py +++ b/src/Mod/Arch/ArchSite.py @@ -281,11 +281,11 @@ class _CommandSite: message = translate( "Arch" , "Please select only Building objects or nothing!\n\ Site are not allowed to accept other object than Building.\n\ Other objects will be removed from the selection.\n\ -You can change that in the preferences." ) +You can change that in the preferences.") + "\n" ArchCommands.printMessage( message ) if sel and len(siteobj) == 0: message = translate( "Arch" , "There is no valid object in the selection.\n\ -Site creation aborted." ) +Site creation aborted.") + "\n" ArchCommands.printMessage( message ) else : ss = "[ "