From 13888f20aeede2d4c50af85978d21491a90a6da7 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 21 Jan 2025 21:35:09 +0100 Subject: [PATCH] Add translating.md --- README.md | 6 ++++++ docs/translating.md | 18 ++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 docs/translating.md diff --git a/README.md b/README.md index 8ff142ff..b22272b8 100644 --- a/README.md +++ b/README.md @@ -116,6 +116,12 @@ If the server list is empty in the headset app: journalctl -f --no-hostname -u io.github.wivrn.wivrn.desktop ``` +# Contributing + +## Translations + +See [translating](docs/translating.md) for procedure. + # Credits WiVRn uses the following software: diff --git a/docs/translating.md b/docs/translating.md new file mode 100644 index 00000000..84b3a682 --- /dev/null +++ b/docs/translating.md @@ -0,0 +1,18 @@ +# Translating + +The headset application and the server dashboard are translated, contributions are welcome to improve and extend them. + +This document only describes headset application translation, the dashboard is being rewritten, please wait before contributing translations for it. + +# Required software +You only need `gettext` and a text editor, you can optionally use a graphical editor such as [GNOME Translation Editor](https://wiki.gnome.org/Apps/Gtranslator/) or [Lokalize](https://apps.kde.org/lokalize/). + +# Adding a new language + +* Edit the `tools/update_messages.sh`, adding the 2 letter [ISO 639](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code to the `LANGS` variable. +* (optional) Edit the `tools/check_po.py`, add to the `countries` mapping a value with the language code on the left and the [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1) code of a flag on the right. The flag will only be used for continuous integration messages. +* Run the `tools/update_messages.sh` script, this will create files in the `locale` directory for the new language. Fill in the fields, `git add` the files, commit and file a pull request. + +# Editing existing translations + +Run the `tools/update_messages.sh` script, this will add the lines for the missing translations, edit your language, then `git add` the files for the language you just edited, commit and file a pull request.