For example, i want to test new translations from Crowdin: see how it look and how text is located on forms, check functions etc...
And i don't want compile freecad (that is it's hard and long in time on windows).
I can't download the archive with translations, when the archive is being collected by Yorik.
But i can download new *.ts files one by one from Crowdin.
And my question is. Is it possible to import updated *.ts translations from Crowdin into an already installed FreeCAD? (maybe that possible with convertation to other QT Linguist formats) ?
I'm look this scripts:
https://wiki.freecadweb.org/Crowdin_Scripts
But there seems to be no such thing.
Is it possible to import updated translations from Crowdin into an already installed FreeCAD ?
Re: Is it possible to import updated translations from Crowdin into an already installed FreeCAD ?
You can find those scripts in the source distribution:
https://github.com/FreeCAD/FreeCAD/tree ... /src/Tools
https://github.com/FreeCAD/FreeCAD/tree ... /src/Tools
Re: Is it possible to import updated translations from Crowdin into an already installed FreeCAD ?
https://github.com/FreeCAD/FreeCAD/blob ... crowdin.pychennes wrote: ↑Sun Aug 22, 2021 7:35 pm You can find those scripts in the source distribution:
https://github.com/FreeCAD/FreeCAD/tree ... /src/Tools
This?
I think it need compilation of source code. And I only need to update the translation.
I'm add request to bug tracker https://tracker.freecadweb.org/view.php?id=4733
Re: Is it possible to import updated translations from Crowdin into an already installed FreeCAD ?
Yes, this is easily doable. Just put your modified translation files to the sub-directory called translations of FreeCAD's user directory.Is it possible to import updated translations from Crowdin into an already installed FreeCAD ?
You can determine this directory in Python with:
Code: Select all
App.getUserAppDataDir()+"translations/
However, sometimes it might be tricky to test a certain translation string because it's not obvious from which file it comes from. Therefore git commit 4061c047a0 implements a way to add a file via Python.
First make sure to set the application language to English because this will remove all existing translators and then run this line:
Code: Select all
from FreeCAD import Qt
Qt.installTranslator(App.getUserAppDataDir()+"translations/FreeCAD_fr.qm")
Code: Select all
Qt.removeTranslators()