From 19d4df8b2ec3d862e8f63a266410a26ba2a3a082 Mon Sep 17 00:00:00 2001 From: jermanuts <109705802+jermanuts@users.noreply.github.com> Date: Thu, 3 Jul 2025 16:45:29 +0200 Subject: [PATCH] Add translation guide to CONTRIBUTING.md --- docs/CONTRIBUTING.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md index caa76ac1a9..76a09c62ff 100644 --- a/docs/CONTRIBUTING.md +++ b/docs/CONTRIBUTING.md @@ -20,4 +20,14 @@ When you have something new built for Haveno, submit a pull request for review t ## Developer guide -See the [developer guide](developer-guide.md) to get started developing Haveno. \ No newline at end of file +See the [developer guide](developer-guide.md) to get started developing Haveno. + +## Translation + +Existing translation files are in [core/src/main/resources/i18n/](/core/src/main/resources/i18n/), feel free to update or improve them if needed. + +To add a new locale translations, follow these steps: + +- 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. + +- 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.