build(make): add translation generation
This commit is contained in:
parent
65dce1b060
commit
a03f31e237
5
Makefile
5
Makefile
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user