Skip to content

Commit

Permalink
Updated ts files
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Dec 23, 2020
1 parent 6754e2b commit 5a974f8
Show file tree
Hide file tree
Showing 15 changed files with 5,803 additions and 4,329 deletions.
128 changes: 124 additions & 4 deletions src/Gui/Language/FreeCAD.ts
Expand Up @@ -126,6 +126,74 @@
<source>Edit</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Import</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Delete</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Paste expressions</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Make link group</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Make link</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Make sub-link</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Import links</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Import all links</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Insert measurement</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Insert text document</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Add a part</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Add a group</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Align</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Placement</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Transform</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Link Transform</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Measure distance</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>DlgCustomizeSpNavSettings</name>
Expand Down Expand Up @@ -2503,6 +2571,16 @@ Larger value eases to pick things, but can make small features impossible to sel
</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>This option is useful for troubleshooting graphics card and driver problems.

Changing this option requires a restart of the application.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Use software OpenGL</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>Gui::Dialog::DlgSettings3DViewImp</name>
Expand Down Expand Up @@ -3347,10 +3425,6 @@ Mouse tilting is not disabled by this setting.</source>
<source>Rotations in 3D will use current cursor position as center for rotation</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Rotate at cursor</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Isometric</source>
<translation type="unfinished"></translation>
Expand Down Expand Up @@ -3399,6 +3473,22 @@ Mouse tilting is not disabled by this setting.</source>
<source>Default camera orientation when creating a new document or selecting the home view</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Rotation mode</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Window center</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Drag at cursor</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Object center</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>Gui::Dialog::DlgSettingsUnits</name>
Expand Down Expand Up @@ -8723,6 +8813,21 @@ Document: </source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>StdCmdViewRestoreCamera</name>
<message>
<source>Standard-View</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Restore saved camera</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Restore saved camera settings</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>StdCmdViewRight</name>
<message>
Expand Down Expand Up @@ -8768,6 +8873,21 @@ Document: </source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>StdCmdViewSaveCamera</name>
<message>
<source>Standard-View</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Save current camera</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Save current camera settings</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>StdCmdViewTop</name>
<message>
Expand Down
23 changes: 14 additions & 9 deletions src/Mod/Arch/ArchSectionPlane.py
Expand Up @@ -320,7 +320,7 @@ def getSVG(source,
lineColor=(0.0, 0.0, 0.0),
fontsize=1,
showFill=False,
fillColor=(0.8, 0.8, 0.8),
fillColor=(1.0, 1.0, 1.0),
techdraw=False,
fillSpaces=False,
cutlinewidth=0,
Expand Down Expand Up @@ -400,10 +400,10 @@ def getSVG(source,
svgSymbolLineWidth = str(linewidth * yt)
hiddenPattern = archUserParameters.GetString("archHiddenPattern","30,10")
svgHiddenPattern = hiddenPattern.replace(" ","")
fillpattern = '<pattern id="sectionfill" patternUnits="userSpaceOnUse" patternTransform="matrix(5,0,0,5,0,0)"'
fillpattern += ' x="0" y="0" width="10" height="10">'
fillpattern += '<g>'
fillpattern += '<rect width="10" height="10" style="stroke:none; fill:#ffffff" /><path style="stroke:#000000; stroke-width:1" d="M0,0 l10,10" /></g></pattern>'
#fillpattern = '<pattern id="sectionfill" patternUnits="userSpaceOnUse" patternTransform="matrix(5,0,0,5,0,0)"'
#fillpattern += ' x="0" y="0" width="10" height="10">'
#fillpattern += '<g>'
#fillpattern += '<rect width="10" height="10" style="stroke:none; fill:#ffffff" /><path style="stroke:#000000; stroke-width:1" d="M0,0 l10,10" /></g></pattern>'
svgLineColor = Draft.getrgb(lineColor)
svg = ''
# reading cached version
Expand Down Expand Up @@ -444,11 +444,16 @@ def getSVG(source,
render.cut(cutplane,showHidden)
else:
render.cut(cutplane)
svgcache += '<g transform="scale(1,-1)">\n'
g = '<g transform="scale(1,-1)">\n'
if hasattr(source.ViewObject,"RotateSolidRender"):
if (source.ViewObject.RotateSolidRender.Value != 0):
g = '<g transform="scale(1,-1) rotate('
g += str(source.ViewObject.RotateSolidRender.Value)
g += ')">\n'
svgcache += g
svgcache += render.getViewSVG(linewidth="SVGLINEWIDTH")
svgcache += fillpattern
svgcache += render.getSectionSVG(linewidth="SVGCUTLINEWIDTH",
fillpattern="sectionfill")
#svgcache += fillpattern
svgcache += render.getSectionSVG(linewidth="SVGCUTLINEWIDTH",fillpattern="#ffffff")
if showHidden:
svgcache += render.getHiddenSVG(linewidth="SVGLINEWIDTH")
svgcache += '</g>\n'
Expand Down

0 comments on commit 5a974f8

Please sign in to comment.