Skip to content
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

Can add a Chinese translation? #328

Open
chenpaner opened this issue Feb 26, 2025 · 1 comment
Open

Can add a Chinese translation? #328

chenpaner opened this issue Feb 26, 2025 · 1 comment

Comments

@chenpaner
Copy link

Thank you very much for this handy software!
I really want to add a Chinese translation to this software, but I only know a little Python and don't understand C++ at all. So could you please provide an English dictionary for me? I can translate it into Chinese, and then we can add a Chinese interface.

@HuguesDelorme
Copy link
Member

Hello @chenpaner
Providing a chinese translation for Mayo would be great!
The translation files are in Qt format(*.ts) and stored in i18n folder. There are two languages provided so far: english(i18n/mayo_en.ts) and french(i18n/mayo_fr.ts)

I've created an empty translation file for chinese: mayo_zh.zip
You can edit this new mayo_zh.ts file with the Qt linguist tool, easily available here: https://github.com/thurask/Qt-Linguist/releases
Download linguist_5.15.16.zip and execute the linguist.exe file within the ZIP archive.
Then from Qt linguist just open mayo_zh.ts and start translate the messages.
Here is the manual of this tool, but it's rather intuitive to use: https://doc.qt.io/qt-6/linguist-ui.html

Feel free to ask your questions here in this thread, if there's any issue!

Once you have translated a few messages into chinese, then contact me and we will then add your mayo_zh.ts file and do the necessary stuff to make Mayo aware of this new language file.
After that you will be able to complete mayo_zh.ts file and check on your side how it looks like in Mayo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants