New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Discussion] Crowdin and github integration. #119
Comments
|
A few words about commits from crowdin. In the settings, you can choose the frequency of commits from an hour to one day. Commits are created in a separate branch. Created separately for each language and translation file. Then they can be squashed into one through the github menu. This has been tested on my fork. |
I'm all for using the github integration system too, but there are several things we need to check too:
I'll have a look at your fork ASAP... |
|
I modify updatets.py to run lrelease in directories. Its works on local machine. But I don't know how to run it during build or configure stage (with cmake).
|
CC @yorikvanhavre |
Done. |
@yorikvanhavre can you just update .ts files and Crowdin strings (In the usual way)? |
I think qm files should be built through a cmake macro or function, I am not sure it can use your py script. In any case, it's best to do this after the 0.20 release, as we don't add new features at the moment. |
We all look forward to the Crowdin update The new 0.2 release has a chance to stop being a hole and have nicely translated user interfaces in many languages. |
In comment with link to fork you can see how to run script during cmake configure. I test this on my local Ubuntu 22 mashine. |
Ok I'll have a look! |
Hey everyone, There is a Crowdin GitHub Action that allows you to easily automate source files pushing to Crowdin and translations download. I can do a pull request with the integration setup. I would only need a green light from you and the minimal setup of this repo (create a Crowdin project and add some Actions secrets). The Action is based on Crowdin CLI, so the existing |
Thank @andrii-bodnar we appreciate the volunteering. Out of curiosity is there a way to do dry-run testing? |
@yorikvanhavre |
Let's wait until the release is complete please 😅 I'll attack that ASAP |
@yorikvanhavre
Adding this to config file (https://github.com/Kuzma30/FreeCAD/blob/master/crowdin.yml) produce such PR |
@chennes Please, can you test this script on Windows? Idea - creating qm files during cmake configure process |
It doesn't work if you don't have the official Python installed from the Microsoft Store -- you need to modify your command to use the version of Python that the configuration found. |
Like last updatets.py version? |
I don't know what you mean: cMake will have found some version of Python, your command should use that one, not try to use whatever is in PATH |
@chennes Made small modification, please test (on Windows) |
@yorikvanhavre Is v.20 release complete? |
@yorikvanhavre Still waiting (for feedback as minimum) |
I propose to discuss the integration of translation updates.
I've tried something, and there are some results.
What I did
The configuration file https://github.com/Kuzma30/FreeCAD/blob/master/crowdin.yml was created (online when the integration was connected) and supplemented.
After synchronization, I received partially translated file (translation was obtained automatically from Spreadsheet_uk.ts file from github.
What are the problems when importing
a) Loss of translation author
b) loss of Approved status
c) loss of translated variants
This error may be solved (I think) with translation memory. I can't test this on empty project..
The following errors were also noticed. For example
https://github.com/FreeCAD/FreeCAD/blob/f8ae185c15480b1b6cc4209d33a8e726d3a7ba80/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet.ts#L662
Line
On the server it (https://crowdin.com/translate/freecad/27907/en-uk?filter=basic&value=0#q=Character%20used%20to%20delimit%20strings) looks like
Accordingly, a translation was made for this line.
On the test server (https://crowdin.com/translate/freecadtest/88/en-uk?filter=basic&value=3#q=Character%20used%20to%20delimit%20strings,%20) it looks like in the original .ts file. The problem is that in this case translation for such strings is lost.
Then on local machine I run command to update Spreadsheet.ts. New lines with untranslated text appeared in the file. They also appeared on the translation server after the synchronization.
Crowdin create pull request in separate branch. Then it can be merged.
For automation update .ts files on github and auto create .qm after update I think we can use Actions mechanism ( test this later)
The text was updated successfully, but these errors were encountered: