Skip to content

Commit 9c83c5f

Browse files
authored
Add translation guide to CONTRIBUTING.md
1 parent c6ef499 commit 9c83c5f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

docs/CONTRIBUTING.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,14 @@ When you have something new built for Haveno, submit a pull request for review t
2020

2121
## Developer guide
2222

23-
See the [developer guide](developer-guide.md) to get started developing Haveno.
23+
See the [developer guide](developer-guide.md) to get started developing Haveno.
24+
25+
## Translation
26+
27+
Existing translation files are in [core/src/main/resources/i18n/](/core/src/main/resources/i18n/), feel free to update or improve them if needed.
28+
29+
To add a new locale translations, follow these steps:
30+
31+
* Add your [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) standard country language code to [core/src/main/java/haveno/core/locale/LanguageUtil.java](/core/src/main/java/haveno/core/locale/LanguageUtil.java) and remove it from "// not translated yet" if it is there.
32+
33+
* Copy [displayStrings.properties](/core/src/main/resources/i18n/displayStrings.properties), create new file in [core/src/main/resources/i18n/](/core/src/main/resources/i18n/) in this format: `displayStrings_[insertLocaleName].properties` and then add translations.

0 commit comments

Comments
 (0)