1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-02-22 08:19:36 +02:00

Add missing binaries in TRANSLATIONS.md instructions. (#884)

* Add missing binaries in TRANSLATIONS.md instructions.

With these instructions, I can start from a clean fork, and get running
quickly.

* Update TRANSLATIONS.md: Add Debian

Co-authored-by: Martin Geisler <martin@geisler.net>

* Update TRANSLATIONS.md, format.

* Remove duplicate info between README and TRANSLATIONS.

---------

Co-authored-by: Martin Geisler <martin@geisler.net>
This commit is contained in:
Yohann Coppel 2023-07-03 08:37:06 +02:00 committed by GitHub
parent 76ee72f8e0
commit 7fadb45ece
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,19 +27,16 @@ GNU Gettext utilities below.
## Preparation
We use two helpers for the translations:
- `mdbook-xgettext`: This program extracts the English text. It is an mdbook
renderer.
- `mdbook-gettext`: This program translates the book into a target language. It
is an mdbook preprocessor.
Install both helpers with:
You will need the [Gettext] utilities (`msginit`, `msgmerge`). Under Debian and
Ubuntu, you can install with:
```shell
$ cargo install mdbook-i18n-helpers
$ sudo apt install gettext
```
Ensure you can build the book, and that `mdbook serve` works. For this, follow
the instructions in the [README](README.md).
## Creating and Updating Translations
First, you need to know how to update the `.pot` and `.po` files.