Arch: Residual trailing \n chars removed from translate()

This commit is contained in:
luz.paz
2018-04-14 14:13:24 -04:00
committed by Yorik van Havre
parent 90c6689722
commit 25b58a1a8c
3 changed files with 7 additions and 7 deletions

View File

@@ -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 = "[ "

View File

@@ -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 = "[ "

View File

@@ -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 = "[ "