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 you add Chinese language #30

Closed
Zhaodaidai opened this issue Jul 13, 2022 · 8 comments
Closed

Can you add Chinese language #30

Zhaodaidai opened this issue Jul 13, 2022 · 8 comments
Assignees
Labels
translation & localization Providing a translation in a some language.

Comments

@Zhaodaidai
Copy link

This project is so good
Can you add Chinese language, please send me a language template and I will translate it

@yuroyami
Copy link
Owner

yuroyami commented Jul 13, 2022

@Zhaodaidai Glad you liked it.

You can grab strings.xml and edit it using any text editor like Notepad++. The format of the translation file is XML, so it's really easy to replace the English texts with Chinese ones, especially with Notepad++'s syntax highlighting which will make it even more simple.

Let's take the very first line for example:
<string name="yes">Yes</string>
you only have to edit what's between the opening and ending tags. So it should look like this :
<string name="yes">是的</string>

Also, make sure to keep the replacement codes (%s, %1s, %2s, %3s ...etc). These codes will be replaced by actual values. For example let's take a random line,
<string name="room">Room: %s</string>

By reserving the replacement code, t should become something like this :
<string name="room">房间: %s</string>

When the app is running it will appear in a way like this : "房间: TestRoom"

That's pretty much it. Should I assign the task to you ?

@Zhaodaidai
Copy link
Author

Of course, the Chinese language on the PC side is provided by me, I will do it now, this is my honor! And hope that URL playback can be implemented sooner!
图片

@yuroyami
Copy link
Owner

Next version should support URL playback. Good luck with the work.

@yuroyami yuroyami added the translation & localization Providing a translation in a some language. label Jul 13, 2022
@Zhaodaidai
Copy link
Author

Has been completed

Do not allo
string-chinese.txt
w uploading xml, please change txt to xml

@yuroyami
Copy link
Owner

yuroyami commented Jul 13, 2022

@Zhaodaidai Amazing work. Thank you for the valuable contribution. Credits will be given where credit is due. The translation will be available in the next release sometime this week. Here's a snapshot of how it looks like:

image

@Zhaodaidai
Copy link
Author

That's just great

@yuroyami
Copy link
Owner

Feel free to edit values-zh/strings.xml file directly any time you think a text should be modified. There will be a few more texts on every release so I will leave new lines in the file with empty tags. For now, this can be closed.

@Zhaodaidai
Copy link
Author

Got it. I'll translate when there are new ones

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
translation & localization Providing a translation in a some language.
Projects
None yet
Development

No branches or pull requests

2 participants