-
Notifications
You must be signed in to change notification settings - Fork 7
_Translation Process
Karl Dietz edited this page Jun 26, 2016
·
12 revisions
The project welcomes users willing to translate the strings used in the application.
The following steps are recommended:
- Check this GitHub directory for translations, for example
- Look for directories under the above like:
values-de(the German translations) - Under the directory, look for a file named
strings.xml - There are also a handful of words in
values/arrays.xmlin the directory above too
- Check for:
- If there are no existing translations or history of plans to create them,
- Create a new issue
- For the
Title, use "Add <new language> translation" - A developer will set the
translationsLabel - This will track the submission and alert others that it's in progress
- By using the issues list, contributors can talk to others, perhaps splitting the job of translating in half...
There are three ways to submit translations work. Either of the 1st two are preferred:
- In GitHub, create a
fork
- Complete the translation in the private copy of the presentation strings.xml
- Create a branch
- Add a new directories (for presentation) like values-de
- Copy the values/strings.xml files and put them in the directory above
- Commit
- Issue a
Pull Request
- Use Android Studio's translation feature
- Create a new branch, e.g. feature/issue_nnn_<language>
- Open the strings.xml file (~/StudioProjects/MythtvPlayerForAndroid/app/src/main/res/values/strings.xml) and select
Open editornear the upper right - Commit and issue a PR as above
- Get a copy of the two strings.xml files in the GitHub section above
- Using any editing tool (that supports the character set of interest,) complete the translation
- Paste the new
strings.xmlfile to the newly created issue
Don't forget the arrays.xml file mentioned earlier.
A developer will merge the new translation with the official source.
####And most important, thanks for helping the MythTV Player For Android project!!!