It done team!
dodo workbench is fully translated to spanish
Here is a example or a small pipe and created objects
- Translated#1.jpg (22.77 KiB) Viewed 3051 times
- Translated#2.jpg (29.74 KiB) Viewed 3051 times
- Translated#3.jpg (13.22 KiB) Viewed 3051 times
Here you have a example to send a translation to ts file and translate the object name
Code: Select all
a=FreeCAD.ActiveDocument.addObject("Part::FeaturePython",translate("Part::FeaturePython","Tube"))
each module you translate you must place these lines at the begining of de module
Code: Select all
from PySide.QtCore import QT_TRANSLATE_NOOP
from DraftGui import translate
Make sure these lines are placed in InitGui.py module in the order showed
Code: Select all
FreeCADGui.addLanguagePath(pForms.getLanguagePath())
FreeCADGui.updateLocale()
If you want to check the full workbench code check here
https://github.com/EdgarJRobles/dodo.git