Update translate in no GUIup case

If the `utf8_decode` is not added, when saving on server side, the following error occurs: 
```
  File "/usr/share/freecad/Mod/Arch/importWebGL.py", line 129, in export
    FreeCAD.Console.PrintMessage(translate("Arch","Successfully written", utf8_decode=True) + ' ' + filename + "\n")
TypeError: translate() got an unexpected keyword argument 'utf8_decode'
```
This commit is contained in:
Daniel Angelov
2019-07-27 02:08:10 +01:00
committed by Yorik van Havre
parent 59863f4432
commit 4402170f37

View File

@@ -36,7 +36,7 @@ if FreeCAD.GuiUp:
else:
FreeCADGui = None
# \cond
def translate(ctxt,txt):
def translate(ctxt,txt,utf8_decode=True):
return txt
# \endcond