Skip to content
This repository was archived by the owner on Mar 27, 2020. It is now read-only.

Commit 511fb18

Browse files
committed
Merge branch 'master' of https://github.com/iilab/PanicButton
2 parents cf579b4 + 1f79942 commit 511fb18

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

docs/TRANSLATION.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Helping with the Panic Button translation
2+
3+
## Submit a translation
4+
5+
Unfortunately it is not as straightforward as we would like right now, but if you have resources or skills to help make the process better, [that would be a great contribution](#improve-how-translations-are-managed) to the project.
6+
7+
In the meantime you can contribute by:
8+
- [forking](https://help.github.com/articles/fork-a-repo/) the project
9+
- creating a ```res/value-XX``` directory (where XX is the 2 letter code for the language) with a translated string.xml file (the english version is [here](https://github.com/iilab/PanicButton/blob/master/res/values-en/strings.xml))
10+
- creating ```help_XX.json``` and ```mobile_kh.json``` files in the [assets directory](https://github.com/iilab/PanicButton/tree/master/assets).
11+
- adding code to load the ```mobile_XX.json``` file [after this block](https://github.com/iilab/PanicButton/blob/master/src/main/java/org/iilab/pb/HomeActivity.java#L234-L242) and ```help_XX.json``` after [this block](https://github.com/iilab/PanicButton/blob/master/src/main/java/org/iilab/pb/HomeActivity.java#L294-L302)
12+
- [submitting a pull request](https://help.github.com/articles/using-pull-requests).
13+
14+
## Improve how translations are managed.
15+
16+
If you have software development skills then you can help us by streamlining how the translation process happens. One of the ideal outcomes would be to be able to manage translations via transifex. There were [some efforts towards this](https://github.com/iilab/PanicButton/issues/43). What complicates matters currently is that, as a product of our [previous API driven content loading approach](https://github.com/iilab/PanicButton/issues/40) there are other language files in the ```assets``` directory.
17+
18+
Let us know your ideas by submitting a github issue!

0 commit comments

Comments
 (0)