Giter Club home page Giter Club logo

Comments (8)

Zhaodaidai avatar Zhaodaidai commented on July 29, 2024 1

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!
图片

from syncplay-mobile.

Zhaodaidai avatar Zhaodaidai commented on July 29, 2024 1

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

from syncplay-mobile.

yuroyami avatar yuroyami commented on July 29, 2024

@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 ?

from syncplay-mobile.

yuroyami avatar yuroyami commented on July 29, 2024

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

from syncplay-mobile.

Zhaodaidai avatar Zhaodaidai commented on July 29, 2024

Has been completed

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

from syncplay-mobile.

yuroyami avatar yuroyami commented on July 29, 2024

@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

from syncplay-mobile.

Zhaodaidai avatar Zhaodaidai commented on July 29, 2024

That's just great

from syncplay-mobile.

yuroyami avatar yuroyami commented on July 29, 2024

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.

from syncplay-mobile.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.