build(make): add translation generation

This commit is contained in:
Fabrice Mouhartem 2025-02-15 19:40:40 +01:00
parent 65dce1b060
commit a03f31e237
Signed by: fmouhart
GPG Key ID: 2C5033B228CFE4E7
2 changed files with 9 additions and 2 deletions

View File

@ -12,7 +12,10 @@ publish:
clean:
uv run invoke clean
init:
%.mo: %.po
msgfmt "$^" -o "$@"
init: themes/clean-blog/translations/fr/LC_MESSAGES/messages.mo
uv sync
.PHONY: clean build publish dev init

View File

@ -9,6 +9,7 @@ software:
- `git`
- `make`
- `uv`
- `gettext`
To synchronise the blog remotely with its intended target, the synchronisation
is done using `rsync` over `ssh`.
@ -30,7 +31,10 @@ This blog relies on [pelican](https://getpelican.com) as a static site
generator. To manage the different python dependencies of this project, we are
using [`uv`](https://github.com/astral-sh/uv) as a python project manager.
To download the dependencies, run `uv sync` or:
Moreover, translations are managed with python `gettext` which requires
compiling the translation file.
Those two steps are performed with the following command:
```sh
make init