Closed BloodSakura3774 closed 3 weeks ago
Does the code still run? Have you tested it?
Does the code still run? Have you tested it?
Didn’t test it, I don’t think the code will run without implementing the library first. Will test later
Does the code still run? Have you tested it?
It won't run without gettext is implemented, Syntax error in ...\MethodicConfigurator\ardupilot_methodic_configurator.py File "...\MethodicConfigurator\ardupilot_methodicconfigurator.py", line 50 ('parameters. The GUI reads intermediate parameter files from a directory and ') ^ SyntaxError: invalid syntax
This week I'm really busy can you add commits that start the gettext implementation?
I can try to finish this
implemented, and tested that it works. only thing left is exporting those marked string and translate them. Also it is currently set to zh-cn in the new file internationalization.py I believe we will need to compile multiple .exe for release after this is merged. *looks like the folder locale is not present, please add one yourself.
My plan is to allow the user to set the language during installation, and only distribute a single .exe installer with all the languages. I corrected some stuff, and removed the translation of some of the auxiliary files. Those can be added later as part of another PR. For now we should only foucus on the file on this rebased and squashed commit.
Yes it will be better but there is more work to do by distributing a single .exe. TBH, some chinese users can not read any english so setting the language when installing might be "difficult" for them. If we are doing only chinese translation for now, I think it's better to distribute two .exe. I'm available during the weekend so can you start extrating those marked strings?
This branch produces a chinese .exe file. The .po file is ready for translation and there is a script to generate the .mo file.
Can you take it from here and add the translation? I will add the language selection at the beginning of the installer later.
An improved version of this got merged, thanks for helping out. See details in https://github.com/ArduPilot/MethodicConfigurator/commit/3ca5a385b34612e9949a94cd5d6193e51c458a49
Please open a new pull-request on top of master
I'll try finishing it this weekend. There is more string than I thought would be. I'm trying to make it as natural as possible.
I used regular expressions to do the markup. Both logging and output/display strings are marked. I'm not sure about some of them so please double check my work before merging. And I'm not certain about some of the formated, please notice me if the format isn't right and I'll fix them. I might added too much or missed some.