material-maker/material_maker/locale
Rodz Labs 11087428e3 Added a Download button for languages and updated locale scripts and strings 2022-06-26 08:08:05 +02:00
..
translations
README.md
babelrc
check.sh
create_translation.sh
generate_po_template.gd Added a Download button for languages and updated locale scripts and strings 2022-06-26 08:08:05 +02:00
generate_po_template.sh
locale.gd Added a Download button for languages and updated locale scripts and strings 2022-06-26 08:08:05 +02:00
material-maker-all.pot Added a Download button for languages and updated locale scripts and strings 2022-06-26 08:08:05 +02:00
material-maker.pot Added a Download button for languages and updated locale scripts and strings 2022-06-26 08:08:05 +02:00
merge.sh
requirements.txt

README.md

Localization files for Material Maker

More information in the Godot documentation: Localization using gettext

Setup

Install gettext tools

This step is required if you wish to create a new translation, check translation files' syntax for errors or update translations to match the translation template.

  • Windows: Download an installer from this page. Any architecture and binary type (shared or static) works; if in doubt, choose the 64-bit static installer.
  • macOS: Install Homebrew then run brew install gettext.
  • Linux: Install gettext from your distribution's package manager. The package name may differ depending on your distribution.

Install pybabel

This step is only required if you wish to regenerate the PO template (see Tasks below). As a translator, you generally won't have to regenerate the PO template.

Install Python 3.7 or later and pip then run the following command in a terminal:

pip3 install --user --upgrade -r requirements.txt

Tasks

Create a new translation

Run ./create_translation.sh <language code> where <language code> is a language code such as fr, de, es, …

Check translation files' syntax for errors

Run ./check.sh.

Update the translation template

Run ./generate_po_template.sh. Don't edit the generated material-maker.pot file manually as changes will be overwritten next time the PO template is generated.

Update translations to match the translation template

Run ./merge.sh. New strings will be added, modified strings will have a fuzzy marker added. You should review the strings in the translated file and remove the fuzzy marker after reviewing them.