In translations, the name that the command has in the code is often lost.
What do you think of adding it in GuiCommand? As in this example, or something similar
Add code name in GuiCommand
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
-
- Veteran
- Posts: 2611
- Joined: Tue Feb 21, 2012 8:07 pm
- Location: Torino - Italy
Re: Add code name in GuiCommand
not sure to understand what you mean.
I force myself to respect this part and all my translations on this part follows the rules. now, if i interpret your demand, i have the feeling you want to add some code here:
{{GuiCommand
|Name=Draft Wire
|MenuLocation=Draft → Polyline
|Workbenches=[[Draft Module|Draft]], [[Arch Module|Arch]]
|Shortcut=P L
|SeeAlso=[[Draft Line|Draft Line]], [[Draft BSpline|Draft BSpline]]
|Version=0.7
}}
how do you want to modify it?
and i guess as a consequence, all the references of the workbench already present in this part should be removed.
I force myself to respect this part and all my translations on this part follows the rules. now, if i interpret your demand, i have the feeling you want to add some code here:
{{GuiCommand
|Name=Draft Wire
|MenuLocation=Draft → Polyline
|Workbenches=[[Draft Module|Draft]], [[Arch Module|Arch]]
|Shortcut=P L
|SeeAlso=[[Draft Line|Draft Line]], [[Draft BSpline|Draft BSpline]]
|Version=0.7
}}
how do you want to modify it?
and i guess as a consequence, all the references of the workbench already present in this part should be removed.
-
- Veteran
- Posts: 2611
- Joined: Tue Feb 21, 2012 8:07 pm
- Location: Torino - Italy
Re: Add code name in GuiCommand
My intention is to make the command name appear also in the translated pages, in the GuiCommand box, not in the context.
In the example, the command is Draft_Wire, but Draft Fil (or Polilinea in Italian) is not the name of the command.
The result would be this
1 - What appears in the translated interface, what the user sees.
2 - The real name of the command, the command shown in the Python console, and also the object searched for by What's This.
3 - The path that the user must follow.
This only in the translations, on the English page the name is already shown.
If it matters, it's very simple, just edit GuiCommand/yx and the change is automatically applied to all pages that use GuiCommand/xy.
In the example, the command is Draft_Wire, but Draft Fil (or Polilinea in Italian) is not the name of the command.
The result would be this
1 - What appears in the translated interface, what the user sees.
2 - The real name of the command, the command shown in the Python console, and also the object searched for by What's This.
3 - The path that the user must follow.
This only in the translations, on the English page the name is already shown.
If it matters, it's very simple, just edit GuiCommand/yx and the change is automatically applied to all pages that use GuiCommand/xy.
Re: Add code name in GuiCommand
yes why not. I see now.
in the text of the wiki page itself, the English text is refering to the command. Very often, the name of the command = the name of the tool which is not the case when we translate.
with your idea, the reader will also have in his mind the name of the command.
in the text of the wiki page itself, the English text is refering to the command. Very often, the name of the command = the name of the tool which is not the case when we translate.
with your idea, the reader will also have in his mind the name of the command.
Re: Add code name in GuiCommand
This wil be useful as in some Translation some properties names are translated so when doing scripting or Macro is diffult to find out the proper name.
Regards
Carlo D.
Regards
Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.
Blog: https://okkmkblog.wordpress.com/
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.
Blog: https://okkmkblog.wordpress.com/
Re: Add code name in GuiCommand
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs