Translations for the FC interface

Discussions about the wiki documentation of FreeCAD and its translation.
User avatar
Kunda1
Posts: 10958
Joined: Thu Jan 05, 2017 9:03 pm

Re: Translations for the FC interface

Postby Kunda1 » Tue Jun 08, 2021 1:08 am

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:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
kaktus
Posts: 475
Joined: Sun Aug 11, 2019 11:59 am
Location: opolskie
Contact:

Re: Translations for the FC interface

Postby kaktus » Tue Jun 08, 2021 3:19 am

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 2365 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 :?:
wierny padawan mistrza arturromarr
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
Posts: 10958
Joined: Thu Jan 05, 2017 9:03 pm

Re: Translations for the FC interface

Postby Kunda1 » Wed Jun 09, 2021 8:05 pm

Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
kaktus
Posts: 475
Joined: Sun Aug 11, 2019 11:59 am
Location: opolskie
Contact:

Re: Translations for the FC interface

Postby kaktus » Wed Jun 09, 2021 8:17 pm

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:
wierny padawan mistrza arturromarr
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
Posts: 10958
Joined: Thu Jan 05, 2017 9:03 pm

Re: Translations for the FC interface

Postby Kunda1 » Thu Jun 10, 2021 2:17 am

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:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
Evgeniy
Posts: 241
Joined: Thu Jul 15, 2021 6:10 pm

Re: Translations for the FC interface

Postby Evgeniy » Mon Aug 23, 2021 7:19 pm

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
Posts: 475
Joined: Sun Aug 11, 2019 11:59 am
Location: opolskie
Contact:

Re: Translations for the FC interface

Postby kaktus » Mon Aug 23, 2021 7:25 pm

I expect not, but a developer would have to confirm this.
wierny padawan mistrza arturromarr
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".
Evgeniy
Posts: 241
Joined: Thu Jul 15, 2021 6:10 pm

Re: Translations for the FC interface

Postby Evgeniy » Wed Aug 25, 2021 1:18 pm

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
Posts: 10958
Joined: Thu Jan 05, 2017 9:03 pm

Re: Translations for the FC interface

Postby Kunda1 » Wed Aug 25, 2021 1:55 pm

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:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
wmayer
Site Admin
Posts: 17361
Joined: Thu Feb 19, 2009 10:32 am

Re: Translations for the FC interface

Postby wmayer » Thu Sep 16, 2021 9:55 am

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