Crowdin: Removing whitespace from widgets
Modified the code so that the whitespace was hardcoded since translators on Crowdin weren't adding the whitespace. Please review if correct. + found some other typos/grammar issues along the way. CC @yorikvanhavre
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
options: importWebGL.wireframeStyle = "faceloop" (can also be "multimaterial" or None)
|
||||
importWebGL.template = a complete html file, where $CameraData is a placeholder for the
|
||||
FreeCAD camera, and $ObjectsData a placeholder for the FreeCAD objects.
|
||||
importWebGL.linewidth = an integer, specifyig the width of lines in "faceloop" mode"""
|
||||
importWebGL.linewidth = an integer, specifying the width of lines in "faceloop" mode"""
|
||||
|
||||
import FreeCAD,Draft,Part,DraftGeomUtils
|
||||
|
||||
@@ -48,7 +48,7 @@ else:
|
||||
# exported objects in WebGL format and a simple three.js-based viewer.
|
||||
|
||||
tab = " " # the tab size
|
||||
wireframeStyle = "faceloop" # this can be "faceloop", "multimaterial" or None
|
||||
wireframeStyle = "faceloop" # this can be "faceloop", "multimaterial", or None
|
||||
cameraPosition = None # set this to a tuple to change, for ex. (0,0,0)
|
||||
linewidth = 1
|
||||
template = """<!DOCTYPE html>
|
||||
@@ -120,13 +120,13 @@ if open.__module__ in ['__builtin__','io']:
|
||||
pythonopen = open
|
||||
|
||||
def export(exportList,filename):
|
||||
"exports the given objects to a .html file"
|
||||
"exports the given objects to an .html file"
|
||||
|
||||
html = getHTML(exportList)
|
||||
outfile = pythonopen(filename,"wb")
|
||||
outfile.write(html)
|
||||
outfile.close()
|
||||
FreeCAD.Console.PrintMessage(translate("Arch","successfully written ", utf8_decode=True)+filename+"\n")
|
||||
FreeCAD.Console.PrintMessage(translate("Arch","Successfully written", utf8_decode=True) + ' ' + filename + "\n")
|
||||
|
||||
def getHTML(objectsList):
|
||||
"returns the complete HTML code of a viewer for the given objects"
|
||||
@@ -159,8 +159,8 @@ def getCameraData():
|
||||
return result
|
||||
|
||||
def getObjectData(obj,wireframeMode=wireframeStyle):
|
||||
"""returns the geometry data of an object as three.js snippet. wireframeMode
|
||||
can be multimaterial, faceloop or None"""
|
||||
"""returns the geometry data of an object as three.js snippet.
|
||||
wireframeMode can be multimaterial, faceloop, or None"""
|
||||
|
||||
result = ""
|
||||
wires = []
|
||||
|
||||
Reference in New Issue
Block a user