Translations for the FC interface

Discussions about the wiki documentation of FreeCAD and its translation.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Translations for the FC interface

Post by Kunda1 »

kaktus wrote: Sun Jun 06, 2021 6:38 pm When each of these tools is activated, the title is displayed in a window (on the blue bar). The problem is that I can't find the translated strings in Crowdin.
Can you show a screenshot of what isn't translated?

It looks like all of these are correct in the source code, for example:
https://github.com/FreeCAD/FreeCAD/blob ... d.cpp#L223

Code: Select all

    sToolTipText    = QT_TR_NOOP("Create a new datum point");
The QT_TR_NOOP() function is used to capture strings to translate.

Edit:
The crowdin links that you provided don't show any results for those strings.
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
User avatar
kaktus
Veteran
Posts: 1174
Joined: Sun Aug 11, 2019 11:59 am
Location: opolskie
Contact:

Re: Translations for the FC interface

Post by kaktus »

Kunda1 wrote: Tue Jun 08, 2021 1:08 am ...
Can you show a screenshot of what isn't translated?
of course
Punkt_Linia_Plaszczyzna_uklad__parametry_Screenshot_20210608_050346.png
Punkt_Linia_Plaszczyzna_uklad__parametry_Screenshot_20210608_050346.png (25.24 KiB) Viewed 6646 times
the problem is that these translations are not valid, and I am unable to correct them, there are no corresponding strings in Crowdin
Kunda1 wrote: Tue Jun 08, 2021 1:08 am Edit:
The crowdin links that you provided don't show any results for those strings.
I have the same result, so I don't understand the current state of affairs :roll:

In addition, when I switched the Gui language to French, I saw that the "Cancel" and other buttons have their labels translated ... :(

Has anyone checked the number of strings exported to each language to catch differences :?:
Twórca polskiej wersji Wiki dla FreeCAD, współwórca polskiej wersji GUI.
"Cierpliwym być musisz, by wiedzę zgłębiać tajemną, gdyż ciemna strona mocy niszczącą i silną jest".
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Translations for the FC interface

Post by Kunda1 »

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
User avatar
kaktus
Veteran
Posts: 1174
Joined: Sun Aug 11, 2019 11:59 am
Location: opolskie
Contact:

Re: Translations for the FC interface

Post by kaktus »

ok

But there may be more cases like this, and not just in Part Design WB.
I just took care of that workbench first.
:ugeek:
Twórca polskiej wersji Wiki dla FreeCAD, współwórca polskiej wersji GUI.
"Cierpliwym być musisz, by wiedzę zgłębiać tajemną, gdyż ciemna strona mocy niszczącą i silną jest".
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Translations for the FC interface

Post by Kunda1 »

Ok, starting to figure out some of the issues. First PR of an upcoming series: https://github.com/FreeCAD/FreeCAD/pull/4850
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
User avatar
Evgeniy
Posts: 477
Joined: Thu Jul 15, 2021 6:10 pm

Re: Translations for the FC interface

Post by Evgeniy »

kaktus wrote: Fri May 21, 2021 9:12 pm [*]

Code: Select all

copy FreeCAD_pl.qm ~/.FreeCAD/translations/
Will this work under Windows?
User avatar
kaktus
Veteran
Posts: 1174
Joined: Sun Aug 11, 2019 11:59 am
Location: opolskie
Contact:

Re: Translations for the FC interface

Post by kaktus »

I expect not, but a developer would have to confirm this.
Twórca polskiej wersji Wiki dla FreeCAD, współwórca polskiej wersji GUI.
"Cierpliwym być musisz, by wiedzę zgłębiać tajemną, gdyż ciemna strona mocy niszczącą i silną jest".
User avatar
Evgeniy
Posts: 477
Joined: Thu Jul 15, 2021 6:10 pm

Re: Translations for the FC interface

Post by Evgeniy »

kaktus wrote: Mon Aug 23, 2021 7:25 pm I expect not, but a developer would have to confirm this.
Ok, i'm add request to bug tracker https://tracker.freecadweb.org/view.php?id=4733

I need a tool for testing translations in the FreeCAD interface.
There is no point in translating the wiki if everything is not translated in the interface...
and i can't afford Linux any time soon.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Translations for the FC interface

Post by Kunda1 »

sgrogan wrote: pinged by pinger macro
sgrogan, any idea if it's possible to test translations locally in the FreeCAD executable on windows?
On Linux we use ~/.FreeCAD/translations
wmayer wrote: pinged by pinger macro
CC @wmayer JIC
yorik wrote: pinged by pinger macro
@yorik do you mind doing a pull/push of translations to master ?
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
wmayer
Founder
Posts: 20241
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Translations for the FC interface

Post by wmayer »

Kunda1 wrote: Wed Aug 25, 2021 1:55 pm
sgrogan, any idea if it's possible to test translations locally in the FreeCAD executable on windows?
On Linux we use ~/.FreeCAD/translations
Yes, the path ~/.FreeCAD/translations is used to check for .qm files.

The paths FreeCAD is looking for are:
  • App.getUserAppDataDir() + "translations"
  • App.getResourceDir() + "translations"
  • :/translations (it's the path of built-in resources)
And recently a fourth path has been added that is controlled by user settings. git commit 719fb95382d59
Post Reply