mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-01-05 16:10:31 +02:00
Additional configuration steps on TRANSLATIONS.md (#959)
* Added steps to configure Poedit properly * Small adjustments * Add link to Poedit * Fix file formatting * One. More. dprint. Fix.
This commit is contained in:
parent
ef99d15529
commit
2e692fcc8a
@ -13,6 +13,11 @@ directory. The `.po` files are small text-based translation databases.
|
||||
> such as [Poedit](https://poedit.net/). There are also several online editors
|
||||
> available. This will ensure that the file is encoded correctly.
|
||||
|
||||
> **Important** If you are planning to use [Poedit](https://poedit.net/) as
|
||||
> suggested above, make sure to follow the additional configuration
|
||||
> steps](#Additional-Configuration-Steps-for-Poedit) below to ensure the `.po`
|
||||
> file is correctly formatted.
|
||||
|
||||
There is a `.po` file for each language. They are named after the [ISO 639]
|
||||
language codes: Danish would go into `po/da.po`, Korean would go into
|
||||
`po/ko.po`, etc. The `.po` files contain all the English text plus the
|
||||
@ -113,6 +118,21 @@ remove the fuzzy marker.
|
||||
> the two since it often creates a very large diff, which is hard or impossible
|
||||
> to review.
|
||||
|
||||
## Additional Configuration Steps for Poedit
|
||||
|
||||
If you are using [Poedit](https://poedit.net/) to work with your `.po` file, you
|
||||
will need to change a few things from their default configuration:
|
||||
|
||||
1. Open the **Settings** dialog
|
||||
1. On Windows, go to **File / Settings**
|
||||
1. On MacOS, select **Settings** from the **Poedit** menu item)
|
||||
1. Go to the **Advanced** tab
|
||||
1. On **Line endings**, select the option **Unix (recommended)**
|
||||
1. Check the **Wrap at** box, and **79** on the textbox
|
||||
1. _**Uncheck**_ the **Preserve formatting of existing files** box
|
||||
|
||||
![Poedit Screenshot](poedit-screenshot.png)
|
||||
|
||||
## Using Translations
|
||||
|
||||
This will show you how to use the translations to generate localized HTML
|
||||
|
BIN
poedit-screenshot.png
Normal file
BIN
poedit-screenshot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 76 KiB |
Loading…
Reference in New Issue
Block a user