Skip to content

Maintainer's Guide

Iris Morelle edited this page Jun 18, 2018 · 1 revision

Here are a few things maintainers of Project Ethea campaigns need to bear in mind when working with the translations repository.

(TODO: this page is largely incomplete)

Technical requirements

  • Bash
  • GNU Make
  • GNU gettext development tools (msgfmt, xgettext, etc.)
  • wmlxgettext from the main Wesnoth repository in PATH.

Makefile targets

The default target is po-update.

(TODO: explain the assumptions about ../<add-on name> dirs.)

po-update

Compiles .mo files from the .po catalogues, updating any existing ones that may be present in your local copy as required. The result can be installed into the campaigns with the install target.

pot-update

Rebuilds the translation catalogue template .pot for all add-ons. This does not automatically merge the updated template into the existing .po catalogues — you are required to use po-update afterwards.

clean/clean-mo

Deletes compiled .mo catalogues.

clean-pot

Deletes all translation manifests and templates. Only use if you know what you are doing.

Clone this wiki locally