Page 1 of 1

Discussion: translation of selected GUI elements

Posted: Sat May 14, 2022 2:34 pm
by kaktus
Hi.

There are two promising talks in the FreeCAD GitHub repository. I think they are worth shaking off the dust. please feel free to discuss.
;)

Re: Discussion: translation of selected GUI elements

Posted: Mon May 16, 2022 7:25 am
by Kuzma30
Looks like most FreeCAD user are English speaken :) Or don't read Wiki forum.

Re: Discussion: translation of selected GUI elements

Posted: Mon May 16, 2022 8:13 pm
by adrianinsaval
What is label and attributes in the first thread? I tried in 0.19 now and the label of newly created part objects are translated but this is not the case for PD, so I think the mechanism to translate those exists but is not used everywhere.

In the second thread, it seems some of the workbench names are translatable, correct? Then it's the same thing, the mechanism exist but is not used by all workbenches.

What is needed is to identify the places were they are not being used and submit PRs replicating what is done in the translatable workbenches and features.

Re: Discussion: translation of selected GUI elements

Posted: Wed May 18, 2022 3:30 am
by kaktus
It is difficult to explain what the author meant by. :roll:
Maybe when he wrote
Objects names in Label & Attributes Tree View
he meant the contents of these labels?

@david69 how do you understand this?

Re: Discussion: translation of selected GUI elements

Posted: Wed May 18, 2022 1:01 pm
by david69
it's not clear neither for me the meaning of "Label & Attributes Tree View". I've seen it recently but didn't experiment it yet. @yorik I see in Crowdin, 9 yrs ago, you had put a translation for "Label & Attributes".

+1 about workbenches, there should not be translatable. One of the consequence, see the screenshot:
https://forum.freecadweb.org/viewtopic. ... 42#p595542
when I read in the bug report #5548, the sentence (For example: the distinction between Draft and Drawing can be lost on French users), we did fall into and pretty funny, recently on the French forum, I expressed the same idea.

Re: Discussion: translation of selected GUI elements

Posted: Wed May 18, 2022 1:07 pm
by yorik
david69 wrote: Wed May 18, 2022 1:01 pm @yorik I see in Crowdin, 9 yrs ago, you had put a translation for "Label & Attributes".
I don't remember :D but the texts are extracted automatically, so it comes from somewhere. I wish the github search was better... Isn't it the title of the tree view widget?

Re: Discussion: translation of selected GUI elements

Posted: Wed May 18, 2022 2:07 pm
by Roy_043
The text indeed belongs to the Tree widget.

It occurs in:
src/Gui/DocumentModel.cpp
src/Gui/Tree.cpp

In /src/Gui/Language/FreeCAD.ts it is listed as:
Labels & Attributes

Re: Discussion: translation of selected GUI elements

Posted: Wed May 18, 2022 2:26 pm
by kaktus
That is, it is the title label of the section in the window. :lol:

Applause for your perceptiveness Roy.

Re: Discussion: translation of selected GUI elements

Posted: Mon May 23, 2022 9:54 am
by david69
i feel stupid... thank you

Re: Discussion: translation of selected GUI elements

Posted: Mon May 23, 2022 10:10 am
by kaktus
David don't feel bad.
Just think I didn't notice it either. :roll:

So that you are not alone, there are more like us. :lol: