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

How To translate #11

Open
Mkurbanov opened this issue Feb 18, 2021 · 1 comment
Open

How To translate #11

Mkurbanov opened this issue Feb 18, 2021 · 1 comment

Comments

@Mkurbanov
Copy link

On doubleTap has text "xx seconds".
How can i Add own language?

@vkay94
Copy link
Owner

vkay94 commented Mar 29, 2021

The library uses the plurals resource quick_seek_x_second to choose the correct value. Normally the resource is picked depending on the device language, otherwise it falls back to English.

You can check all supported/handled languages (by iso tag) here: Resources folder

You can add (or override) a language by putting the definition into the plurals file (res/values-xx). Simply copy an existing folder into your app's res folder and change the language code of it to, for example, values-de-DE. To adjust the value, just change the items as you wish:

<plurals name="quick_seek_x_second">
    <item quantity="other">%d seconds</item>
    <item quantity="one">%d second</item>
    <item quantity="many">%d seconds</item>
</plurals>

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