Translations:Translating an external workbench/6/en


 * In every file where you need to translate text, you need a translate function defined. An easy way is to use the one from the Draft workbench:
 * All text that must be translated must be placed inside the translate function. So  becomes  . This can be used anywhere: in print functions, in FreeCAD.Console.PrintMessage, in Qt dialogs, etc. In functions from FreeCAD.Console.Print*, it is necessary to end the string with the new line character (\n). It is advised to leave that character out of the translation:
 * If you are using .ui files made with QtDesigner, nothing special needs to be done with them.
 * When creating new objects, do not translate object names. Rather, translate object labels
 * When creating properties for your objects, don’t translate the property name. But place the description inside QT_TRANSLATE_NOOP:  (don’t use your own “context” in this specific case. Keep “App::Property”).
 * Do not translate the text of Document transactions made with Document.openTransaction