Closed hasecilu closed 7 months ago
@hasecilu please check this error:
Running the Python command 'ksuToolsConstrainator' failed:
Traceback (most recent call last):
File "C:\Users\userC\AppData\Roaming\FreeCAD\Mod\kicadStepUpModTranslationTest\.\kicadStepUpCMD.py", line 2018, in Activated
ui.setupUi(CDialog)
File "C:\Users\userC\AppData\Roaming\FreeCAD\Mod\kicadStepUpModTranslationTest\.\kicadStepUpCMD.py", line 736, in setupUi
self.Label_howto.setToolTip(translate("Ui_CDialog", "Select a Sketch and Parameters\n"
name 'translate' is not defined
and
Running the Python command 'ksuToolsMoveSketch' failed:
Traceback (most recent call last):
File "C:\Users\userC\AppData\Roaming\FreeCAD\Mod\kicadStepUpModTranslationTest\.\kicadStepUpCMD.py", line 1032, in Activated
ui.setupUi(offsetDlg)
File "C:\Users\userC\AppData\Roaming\FreeCAD\Mod\kicadStepUpModTranslationTest\.\kicadStepUpCMD.py", line 656, in setupUi
Offset_value.setWindowTitle(translate("Ui_Offset_value", "Offset value"))
name 'translate' is not defined:43 Running the Python command 'ksuToolsMoveSketch' failed:
Traceback (most recent call last):
File "C:\Users\userC\AppData\Roaming\FreeCAD\Mod\kicadStepUpModTranslationTest\.\kicadStepUpCMD.py", line 1032, in Activated
ui.setupUi(offsetDlg)
File "C:\Users\userC\AppData\Roaming\FreeCAD\Mod\kicadStepUpModTranslationTest\.\kicadStepUpCMD.py", line 656, in setupUi
Offset_value.setWindowTitle(translate("Ui_Offset_value", "Offset value"))
name 'translate' is not defined
Ooops, it seems I forget to include it.
Also I removed ksu_prefs-v1.ui , ksu_prefs-v2b.ui , offset_selection.ui , offset_selection-v2.ui, layer-selection-out.ui & layer-selection.ui files from script. Could you check again.
thank you all for this great contribution 😄
Now to continue the translation efforts to more languages would you like KiCadStepUp WB to be added to Crowdin platform? where 5 other WB have been added very recently and waiting for a few more
@easyw are you open to uploading translations to crowdin ? (per https://github.com/easyw/kicadStepUpMod/pull/211#issuecomment-1991762153)
@easyw are you open to uploading translations to crowdin ? (per #211 (comment))
Already is on CrowdIn, we talked about it on the forum: https://forum.freecad.org/viewtopic.php?t=85949&start=10
I've been thinking lately about whether to update all those cool worbenches at Crowdin...
At least wait a little bit for Reinforcement's Spanish translation, still testing it.
On top on previous work made by @Kuzma30 here are some advancements.
I think the progress made until now is enough for a first attempt to translate the workbench.
There are hundreds of more strings that could be also translated but since all of them are sparsed around the code would be very hard to catch'em all any time soon.
QtGui.QMessageBox.X()
, 178 on .py files, 120 uncommented.say()
PrintMessage()
PrintWarning()
PrintError()
Meanwhile @kaktusus and me tested the translations on Crowdin, so officially supporting it would be very beneficial because in case of minor changes, typo fixes, etc, we can reuse strings and more fellow translators can start testing.
translate("Context", "string")
was used.QT_TRANSLATE_NOOP()
worked fine, I'm not 100% sure why using it everywhere don't work but as of now the instenaces of it works fine.hlp.py
file for example. It seems that only HTML notation modifies the text aspect, for example using\n
in multiline strings normanlly would make a new line (tested in other WB) but it seems that only<br>
achieves that in this WB.https://forum.freecad.org/viewtopic.php?t=85949
Related #142 Close #173