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

Contribute for Translation #2

Closed
dead8309 opened this issue Sep 12, 2022 · 0 comments
Closed

Contribute for Translation #2

dead8309 opened this issue Sep 12, 2022 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@dead8309
Copy link
Owner

dead8309 commented Sep 12, 2022

Here's how you can contribute to translation

First get the strings.xml file and translations.xml files

Make the translation in strings.xml and then edit translation.xml file fields like this :

Example(1)

Suppose you have translated to English or any other language which is already there then you have to edit the translation.xml file like this
<!-- Language Names Here -->
    <string-array name="languages">
        <item>English</item>
    </string-array>

<!-- Edit your name here according to translated language -->
    <string name="english_contributors">Vaibhav,Yzzik</string>

Example(2)

If you translated to a language which is not already there let's say Russian then you have to edit the translation file like this
<!-- Language Names Here -->
    <string-array name="languages">
        <item>English</item>
        <item>Russian</item>
    </string-array>

<!-- Edit your name here according to translated language -->
    <string name="english_contributors">Vaibhav</string>
    <string name="russian_contributors">Yzzik</string>

Edit

I forgot to mention that you also have to update this field in translation.xml if it doesn't contain that language contributors item.

Example (1)

if you added a new language (let's say russian) then you have to edit this field as

<!-- Don't Edit this -->
    <string-array name="contributors">
        <item>@string/english_contributors</item>
        <item>@string/russian_contributors</item>
    </string-array>

Note
You don't have to edit this field if it already contains your language item.

@dead8309 dead8309 added the documentation Improvements or additions to documentation label Sep 12, 2022
@dead8309 dead8309 pinned this issue Sep 12, 2022
This was referenced Dec 17, 2022
Repository owner deleted a comment from xHM0D Mar 3, 2023
Repository owner locked and limited conversation to collaborators Mar 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant