Translations for the FC interface
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: Translations for the FC interface
This is a very interesting option.
I will wait to hear from you on this topic.
I think a lot of translators would be happy if this had success.
I will wait to hear from you on this topic.
I think a lot of translators would be happy if this had success.
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".
"Cierpliwym być musisz, by wiedzę zgłębiać tajemną, gdyż ciemna strona mocy niszczącą i silną jest".
Re: Translations for the FC interface
Relevant links:
https://tracker.freecadweb.org/view.php?id=3372
https://tracker.freecadweb.org/view.php?id=3372
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
Re: Translations for the FC interface
This would be an interesting solution if implemented.
It would be useful not only for translators.
It would be useful not only for translators.
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".
"Cierpliwym być musisz, by wiedzę zgłębiać tajemną, gdyż ciemna strona mocy niszczącą i silną jest".
Re: Translations for the FC interface
This does work, but you have to add language suffix (individually downloaded files from Crowdin do not have one) and convert a .ts file to .qm one, eg.:
Code: Select all
lrelease Part_pl.ts -qm Part_pl.qm
Re: Translations for the FC interface
I have installed the qttools5-dev-tools package
Thanks a lot gentlemen, this is very helpful
- downloaded one file from https://crowdin.com/project/freecad/pl#
-
Code: Select all
cp FreeCAD.ts FreeCAD_pl.ts
-
Code: Select all
lrelease FreeCAD_pl.ts -qm FreeCAD_pl.qm
- if missing to create
Code: Select all
cp FreeCAD_pl.qm ~/.FreeCAD/translations/
- I started FreeCAD
Thanks a lot gentlemen, this is very helpful
Last edited by kaktus on Sat May 22, 2021 5:05 pm, edited 2 times in total.
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".
"Cierpliwym być musisz, by wiedzę zgłębiać tajemną, gdyż ciemna strona mocy niszczącą i silną jest".
Re: Translations for the FC interface
Automatic version for many files, for lazy people that means for me.
- download all files from https://crowdin.com/project/freecad/pl#
- inserts language prefix, here _pl
Code: Select all
ls -1 *.ts| sed 's/\.ts//' |xargs -i mv {}.ts {}_pl.ts
- performs the conversion and changes the extension
Code: Select all
ls -1 *_pl.ts| sed 's/\.ts//' |xargs -i lrelease {}.ts -qm {}.qm
- moves prepared language files to a better place
Code: Select all
ls -1 *_pl.qm| xargs -i mv {} ~/.FreeCAD/translations/
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".
"Cierpliwym być musisz, by wiedzę zgłębiać tajemną, gdyż ciemna strona mocy niszczącą i silną jest".
Re: Translations for the FC interface
so my idea is to run this as a bash script on a server and then offer the language files via the addon manager. Anyone interested in helping me do this?
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
Re: Translations for the FC interface
In the meantime, I prepared a local one-line command that will also clean up, preparing empty space (in the folder) for future imports.
Code: Select all
ls -1 *.ts| sed 's/\.ts//' |xargs -i mv {}.ts {}_pl.ts && ls -1 *_pl.ts| sed 's/\.ts//' |xargs -i lrelease {}.ts -qm {}.qm && ls -1 *_pl.qm| xargs -i mv {} ~/.FreeCAD/translations/ && rm *pl.ts
In principle, I could get involved in knowing what you want to do, but I don't know how I could still be helpful to you.
Last edited by kaktus on Sun May 30, 2021 7:21 pm, edited 1 time in total.
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".
"Cierpliwym być musisz, by wiedzę zgłębiać tajemną, gdyż ciemna strona mocy niszczącą i silną jest".
Re: Translations for the FC interface
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
Re: Translations for the FC interface
my motivation is laziness, it is a very great and unlimited power ...
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".
"Cierpliwym być musisz, by wiedzę zgłębiać tajemną, gdyż ciemna strona mocy niszczącą i silną jest".