# Translations

The gettext domain is `stillcenter`.

Generate or refresh the template with:

```bash
xgettext --from-code=UTF-8 --keyword=_ --keyword=N_ --files-from=po/POTFILES.in --output=po/stillcenter.pot
```

Add a locale by creating `po/<locale>.po`, adding `<locale>` to `po/LINGUAS`, then compiling:

```bash
mkdir -p po/build/<locale>/LC_MESSAGES
msgfmt po/<locale>.po -o po/build/<locale>/LC_MESSAGES/stillcenter.mo
```

For local testing without installing system-wide:

```bash
STILLCENTER_LOCALE_DIR="$PWD/po/build" LANGUAGE=<locale> python -m stillCenter
```
