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

Translation #22

Closed
airon90 opened this issue Apr 12, 2022 · 9 comments
Closed

Translation #22

airon90 opened this issue Apr 12, 2022 · 9 comments

Comments

@airon90
Copy link
Contributor

airon90 commented Apr 12, 2022

How to translate the app?

@z-huang
Copy link
Owner

z-huang commented Apr 12, 2022

The app currently provide languages in English and Traditional Chinese. Since the project isn't stable yet, the texts tend to be modified frequently. Once the project become stable, I'll add information about how to contribute translation in README.

@mondlicht-und-sterne
Copy link

How to translate the app?

I want to translate, too ;)

@z-huang
Copy link
Owner

z-huang commented Apr 25, 2022

The app currently provide languages in English and Traditional Chinese. Since the project isn't stable yet, the texts tend to be modified frequently. Once the project become stable, I'll add information about how to contribute translation in README.

I originally planned to allow translations after the app becomes stable. But maybe this can be done in the meantime so that the app can become more friendly to global users. Therefore, I'll organize the string.xml file a bit and add instruction for contributions in README.md.

Also, I'm glad that you guys would like to translate the app.

@mondlicht-und-sterne
Copy link

@z-huang

I don't understand the repo fork and then create a pull request.

Can I deposit the strings file (if I find it) on github and you copy it to yourself?

It would be easier if you put it on crowdin or weblate, I'm not on transifex anymore.

@z-huang
Copy link
Owner

z-huang commented Apr 26, 2022

Can I deposit the strings file (if I find it) on github and you copy it to yourself?

This works. The location is app/src/main/res/values/strings.xml. Note that lines with translatable="false" can be ignored.

Crowdin is more easier for translating, but I encounter problem that the project name is already used. I have to think of a better name for this app first. (#35)

@airon90
Copy link
Contributor Author

airon90 commented Apr 26, 2022

This works. The location is app/src/main/res/values/strings.xml. Note that lines with translatable="false" can be ignored.

How to upload a translated file? Should it be named string-XX.xml (as XX is the language code) or something similar?

@z-huang
Copy link
Owner

z-huang commented Apr 26, 2022

It should be place in app/src/main/res/values-{language code}-r{region code}/strings.xml. It will be good if you create a pull request. But if you don't know how to, just upload the file anywhere and tell me the language and region.

@airon90
Copy link
Contributor Author

airon90 commented Apr 26, 2022

App description on F-Droid should me make translatable too ;) Anyway, #36

@z-huang
Copy link
Owner

z-huang commented Apr 27, 2022

Added translation instruction in README.

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

3 participants