pachli-android/docs/contributing/translate.md

3.7 KiB

Contributing translations

[!NOTE] These instructions are supposed to be complete and accurate. If anything is unclear or does not work please report it so it can be fixed.

Synopsis

Thank you for wanting to improve Pachli for others by making new translations or modifying existing ones.

After reading this document you will know:

  • How the project uses Weblate to manage translations
  • How to make your first translation change using Weblate
  • How to use Weblate to suggest a translation to a new language
  • Guidelines to follow when translating text

Overview

The two types of text that need translating are:

  1. Messages in the UI; menu items, confirmation messages, dialog boxes, things like that
  2. The project description and release notes

Both are managed using Weblate, which calls them "Components".

Using Weblate you can:

  • See what text still needs to be translated in to a language you are interested in
  • Submit a new translation of that text in to your language

Sign the contributor license agreement

Please agree to the contributor license agreement before submitting any translations.

If you have already signed the CLA because you previously submitted a PR there is nothing more to do.

Otherwise, please visit https://cla-assistant.io/pachli/pachli-android, read, and sign the agreement using your GitHub account.

Signing in to Weblate

Open https://hosted.weblate.org/projects/pachli/ and sign in.

If you do not already have an account you will need to register first. You can also sign in using an existing third-party account, such as a Google or GitHub account.

Choosing a component

After signing in you should see a screen with multiple components. They correspond to the different modules Pachli is split in to. Broadly, there are "core" modules and "feature" modules.

A "feature" module corresponds to a screen or set of screens that the user interacts with, while "core" modules contain code and UI strings that are common across Pachli.

The modules have a ":" separated suffix which corresponds to where Pachli is available, either "F-Droid", "Google, "GitHub", or "Main" (if the module is not specific to one of those).

The "Fastlane Metadata" module contains the description and release notes used in these stores.

Choose a component to work on by clicking on it.

This should load a table of active languages the component is being translated to, as well as some statistics for each language.

Contributing to an existing translation

Select the entry for the language you want to contribute to.

This should open the primary translation UI.

Using this UI you can:

  • Step through the text, both translated and untranslated
  • Suggest modifications to existing translations
  • Suggest a new translation for untranslated text

Please read the Weblate Translation Workflow documentation for specific instructions on how to use this interface.

Starting a new translation

Click the "+" button at the top left of the first table row.

This will prompt you to select the new language.

It will be added to the list, and you can start submitting translation suggestions.

Submitting changes

Using Weblate means that you do not directly submit pull requests to the project. Weblate batches up changes and submits them on your behalf.

The changes you make will be attributed to your account. Your contributions will also be included in the release announcement and blog post (e.g., Pachli 2.2.0 released) for each release.

Guidelines for translations

  • Please use gender-neutral language
  • Address the user informally (e.g., in German "du", not "Sie")