Translating external workbenches
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Translating external workbenches
I just adapted the BIM workbench to be fully translatable, and documented the procedure on https://www.freecadweb.org/wiki/Transla ... _workbench
Now we can spread the word among addon developers!
I suggest we let the addons developers who wish so to upload their .ts file on the FreeCAD crowdin account, so they can benefit from the massive community of translators there...
Now we can spread the word among addon developers!
I suggest we let the addons developers who wish so to upload their .ts file on the FreeCAD crowdin account, so they can benefit from the massive community of translators there...
-
- Posts: 436
- Joined: Wed Sep 15, 2010 9:38 am
Re: Translating external workbenches
Hi Yorik,
thanks for this wiki page! I'll study it and try to adapt it to macros.
Something surprised me though: "Text that is only shown in the Python console should not be translated". If such text should really not be translated, all mentions of "FreeCAD.Console" should also be remove from this wiki page.
Gaël
thanks for this wiki page! I'll study it and try to adapt it to macros.
Something surprised me though: "Text that is only shown in the Python console should not be translated". If such text should really not be translated, all mentions of "FreeCAD.Console" should also be remove from this wiki page.
Gaël
-
- Posts: 436
- Joined: Wed Sep 15, 2010 9:38 am
Re: Translating external workbenches
Ok, I tried again to adapt this to macros but unsuccessfully despite the fact that I think I have everything what is needed (actually even more because I also compiled a resource file).
My current effort is attached . To test it, unpack it in FreeCAD's macro folder and launch FreeCAD with `LANG=fr_FR.UTF-8 freecad` or `LANG=fr_FR.UTF-8 freecad-daily`. The associated unfinished documentation is at https://github.com/FreeCAD/FreeCAD-macr ... -in-macros.
Thanks for any help!
Gaël
My current effort is attached . To test it, unpack it in FreeCAD's macro folder and launch FreeCAD with `LANG=fr_FR.UTF-8 freecad` or `LANG=fr_FR.UTF-8 freecad-daily`. The associated unfinished documentation is at https://github.com/FreeCAD/FreeCAD-macr ... -in-macros.
Thanks for any help!
Gaël
Re: Translating external workbenches
FreeCAD.Console doesn't print to the Python console, but to the Report window. That's exactly why this is there, translated text goes to the report window, which is where the user would expect to see text made for them to see, while the python console is a technical area, where everything always happens in english and the exact wording can have an impact.galou_breizh wrote: ↑Sun Jun 02, 2019 9:52 am Something surprised me though: "Text that is only shown in the Python console should not be translated". If such text should really not be translated, all mentions of "FreeCAD.Console" should also be remove from this wiki page.
About your file, I'll have a look at it...
-
- Posts: 436
- Joined: Wed Sep 15, 2010 9:38 am
Re: Translating external workbenches
Yorik, I guess you've been very busy but did you manage to have a look a i18n issues with macros?yorik wrote: About your file, I'll have a look at it...
Thanks at lot!
Gaël
Re: Translating external workbenches
Hello, i'm trying to translate mooc workbench but i'm unable to get it showing translated sentences.
@yorik
I notice that BIM workbench does not display the translated sentences either.
I've just check the BIM Setup sentences, first lines of https://github.com/yorikvanhavre/BIM_Wo ... /BIM_fr.ts and it remains in english.
@yorik
I notice that BIM workbench does not display the translated sentences either.
I've just check the BIM Setup sentences, first lines of https://github.com/yorikvanhavre/BIM_Wo ... /BIM_fr.ts and it remains in english.
Formations - Assistance - Développement : https://freecad-france.com
Re: Translating external workbenches
Sorry for the radio silence! Hectically busy here these days
Hm you guys are right... Indeed it still doesn't work for the BIM WB either. There must be something wrong somewhere... I'll do the procedure again and try to fix
Hm you guys are right... Indeed it still doesn't work for the BIM WB either. There must be something wrong somewhere... I'll do the procedure again and try to fix
Re: Translating external workbenches
Didn't test it yet but highly likely translations can be provided as external binary resources:
https://forum.freecadweb.org/viewtopic. ... 50#p307202
P.S. Just like when it comes to icon themes.
https://forum.freecadweb.org/viewtopic. ... 50#p307202
P.S. Just like when it comes to icon themes.
Re: Translating external workbenches
This is already done. See the Translating an external workbench page again.triplus wrote: ↑Mon Aug 12, 2019 10:46 am Didn't test it yet but highly likely translations can be provided as external binary resources:
https://forum.freecadweb.org/viewtopic. ... 50#p307202
P.S. Just like when it comes to icon themes.
The .ts text files that define the strings to translate are compiled into .qm resource files, which are supposed to be loaded by Qt. Or are you suggesting to somehow include all those .ts or .qm inside a single .rcc?
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.