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
chennes
Veteran
Posts: 3881
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: Translations for the FC interface

Post by chennes »

I think that the updatets.py script still has an issue in it related to workbenches that used both C++ and Python -- in an attempt to a) fix that and b) make it a little clearer what it's doing in the first place, I've submitted a new draft PR, PR 5037. I'd appreciate some more eyes on that PR to make sure I haven't introduced some other error in the way I'm now handling the directories with Python in them.
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
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 »

wmayer wrote: Thu Sep 16, 2021 9:55 am
...

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
Where should I configure FC in order to make the translation update work :?:

After the release of 0.20.26306 (Git) AppImage, manual (qm files) updates stopped working for me.
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".
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Translations for the FC interface

Post by wmayer »

Check the path name of:

Code: Select all

App.getUserAppDataDir() + "translations"
Recently XDG support has been added to FreeCAD so that App.getUserAppDataDir() returns a differnent path name compared to before. So, all what you have to do is manually copying the files to the new location.
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 »

:mrgreen:

Works, thanks for the explanation.

Code: Select all

App.getUserAppDataDir()
I typed this string in the Python FC console and got to know the new location for the files.
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 »

kaktus wrote: Sun Dec 05, 2021 6:35 pm
Hi @kaktus
you mentioned to me on github that the methodology to test translations locally is not working anymore? can you elaborate?
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 »

:mrgreen:
Welcome friend , FC lovers.

In the next consecutive release of FC, the location of the folder for local translation files has been changed.
Since I didn't know about it, I followed the old guidelines. This no longer works. :roll:

Two posts above I wrote how to check where to copy the translation files.
From now on, the files are to be copied to the new location so that you can continue to enjoy checking the quality of the translations yourself.

Right now I am sitting and waiting in line with my grandmother at the doctor's office, if you would like more detailed information, such as which release of the program the change was from, I can update that for you when I get home.

I don't like all these smart phones, gadgets etc. .. :P

Edit:
the change applies to all releases since
Version: 0.20.26375 (Git) AppImage
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".
david69
Veteran
Posts: 1773
Joined: Wed Jan 01, 2014 7:48 pm

Re: Translations for the FC interface

Post by david69 »

JFYI in this post from Yorik, some information about Crowdin which can be useful:
https://forum.freecadweb.org/viewtopic. ... 79#p557579
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 am very glad that such a general guide was created. There are more bugs than people who could correct them.

Unfortunately, the repair is very tedious and time consuming.
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
kaktus
Veteran
Posts: 1174
Joined: Sun Aug 11, 2019 11:59 am
Location: opolskie
Contact:

Re: Translations for the FC interface

Post by kaktus »

:mrgreen:

I have a super surprise for everyone working locally with translations.

invite you to read more: https://github.com/FreeCAD/FreeCAD-translations

the testing section.
The universal bash script will be published there in a moment. :roll:
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
Kuzma30
Posts: 163
Joined: Wed Oct 24, 2018 11:50 am
Location: Ukraine

Re: Translations for the FC interface

Post by Kuzma30 »

RealThunder's A3 Wiki translation, join the project https://crowdin.com/project/freecad-asm3-wiki
Post Reply