translate this software
Closed this issue · 14 comments
Hello,how do i translate this software into another language?
I don't see a translation button from the software interface that is downloaded by github.
Hi!
The translation files are located at src/languages. They are just text files, so you can just open ImageViewer.en.po and translate and save it as whatever the language. There are currently Japanese translation ImageViewer.ja.po and russian translation, so you can take a look at those for a reference.
Once translation is done, you can send it to me here or create pull request.
Thank you.
Ok,thank you!
Hello, here are two .po files, zh-CN represents Simplified Chinese, zh-Hant represents Traditional Chinese, please check if they are correct, thank you!
Download link:https://github.com/killtimer920/zh-language-po/tree/main
Wow, that was quick!
The files look good. Please give me a couple days to apply those translations and get back to you.
Thank you!
You're welcome.
I released the latest version with the translations. Could you test the app in your environment and see if translations appear correctly? Thank you.
Ok.
Actually,I'm ashamed to say that I would like to ask you how to switch languages in the software? I don't see a similar command line on GitHub either.
Oh, it just automatically detects OS(Windows)'s language setting. So, if you are using Chinese version of Windows, Image viewer should now display menus in Chinese. If it does not, then there may be a bug in my code...
Hello, I am indeed using the Chinese version of Windows. Although I tried re-language settings and restarted my computer, the viewer did not display the menu in Chinese.
OK, thank you for testing. I have some idea why. But first let me try to setup a virtual PC or Windows Sandbox in Chinese version and see what is actually going on. Please give me a couple more days. Thanks.
The proof that I should not write a code when I'm tired.
It was "zh_Hant" not "zh-Hant"!
Could you test it again with v1.4.2 after I release it?
I am also responsible for this part,so I'm glad to test it.
Thank you for your patience, everything works as you wish. The test result is that it displays the menu in Chinese naturally.
Also, I've improved a few translations to make it easier to understand, and I've updated them on GitHub. I made changes in the language file you provided, and everything worked fine after testing.It is recommended that you copy and paste the code directly into your language file.
link:https://github.com/killtimer920/zh-language-po
No problem, I'm glad it's working. I'll update the translations in the next release. Thank you!
Ok,thank you !