shaise / FreeCAD_FastenersWB

A workbench to add/attach various fasteners to parts
GNU General Public License v2.0
268 stars 83 forks source link

[Discussion] Implementing GUI translation on Crowdin. #340

Open kaktusus opened 4 months ago

kaktusus commented 4 months ago

Hey.

@shaise I can help you with running translations on the FreeCAD-addons repository in Crowdin. It is not complicated and does not require much time. I expect that this will make your workbench more widely used. 😄

shaise commented 4 months ago
  1. I am not familiar with Crowdin. Does this mean that you must be on line to make the translations work?
  2. What about the translations we already have?
kaktusus commented 4 months ago

ad. 1 To begin with, I can do everything by introducing you to the subject. ad. 2 The translations that we have will not be lost. Ts language files can be imported by anyone from the translator upwards.


I know people working with GUI translations who work this way. They download the string file for translation. They modify it locally and then upload it to Crowdin. This is nothing special. It may sound scary to a person who has not yet performed such operations.

It is possible that when the translations will be on Crowdin there will be less work with them for the workbench maintainer. Now you have to validate every PR from every translator. Import/export of translations comes down to a few clicks in the web interface. No scripts are required to import export. Of course, after implementation, some regularity will be required for exports from Crowdin. More "disadvantages" I do not see.


At this stage it is important whether you agree that the translations are supported by the Crowdin platform.

Don't worry about the rest. You are not alone. :wink:

kaktusus commented 4 months ago

obraz

This is what the panel for basic management of source translation files looks like. To add a string file to the translations:


obraz

And this is what the basic panel for managing translation files looks like.


Then what remains to be done is to compile the downloaded files into qm format and attach them to the sources of your workbench.

I once prepared a very versatile bash script for translators that prepares compiled translation files. https://github.com/FreeCAD/FreeCAD-translations?tab=readme-ov-file#bash-script--2022-04-17

shaise commented 4 months ago

I did not get an answer but I understand from you that freecad does nit have to run on line to show translations. However, I understand from you that each time there is a translation update, I need to DL the new zip file, compile it, then commit and push the new changes

kaktusus commented 4 months ago

Oh I overlooked. I didn't have much time yesterday when I was replying to you. :wink: After the whole procedure, the translation files will be in the FreeCAD user's file system. As it has been so far.

Internet connection will be needed to:

Crowdin is very helpful for preparing translations by the international translation community. Crowdin also allows you to download strings for translation to the translator's local computer. And uploading the prepared translations.

Let's agree that I can help you with the management of translation files and with Crowdin operation. :wink: But it's worthwhile for you to acquire these skills as well. :1st_place_medal: However, there is no rush and no one will force you to do it.

shaise commented 4 months ago

Thanks, I will take a closer look and decide.

kaktusus commented 4 months ago

Check out Francisco's opinion. He didn't say much, but he mentioned something very important. :heart_eyes: https://forum.freecad.org/viewtopic.php?style=4&p=740824#p740824 Greetings :nerd_face:

hasecilu commented 4 months ago

From what I have seen on the main FreeCAD Crowdin project almost every day FreeCAD is being translated, on the addons project only 7 external WB are there from more than 100!. The point is that having the same people that translates main FreeCAD translating the addons will help end users by having a level of consistency on the whole FreeCAD environment.

I'm sure doing this will help everyone.

kaktusus commented 4 months ago

@hasecilu you said it very nicely.

shaise commented 4 months ago

ok ok ok ok. 🤓 Lets do it. What needs to be done here, and sheetmetal as well?

kaktusus commented 4 months ago

Of course. Sheetmetal also. These are very good workbenches. Congratulations on a successful "venture". :smile:

So I can upload the translation files in Crowdin?

shaise commented 4 months ago

yes indeed.

hasecilu commented 1 week ago

I think this could be closed now.