build(make): add translation generation
This commit is contained in:
parent
65dce1b060
commit
a03f31e237
5
Makefile
5
Makefile
@ -12,7 +12,10 @@ publish:
|
|||||||
clean:
|
clean:
|
||||||
uv run invoke clean
|
uv run invoke clean
|
||||||
|
|
||||||
init:
|
%.mo: %.po
|
||||||
|
msgfmt "$^" -o "$@"
|
||||||
|
|
||||||
|
init: themes/clean-blog/translations/fr/LC_MESSAGES/messages.mo
|
||||||
uv sync
|
uv sync
|
||||||
|
|
||||||
.PHONY: clean build publish dev init
|
.PHONY: clean build publish dev init
|
||||||
|
@ -9,6 +9,7 @@ software:
|
|||||||
- `git`
|
- `git`
|
||||||
- `make`
|
- `make`
|
||||||
- `uv`
|
- `uv`
|
||||||
|
- `gettext`
|
||||||
|
|
||||||
To synchronise the blog remotely with its intended target, the synchronisation
|
To synchronise the blog remotely with its intended target, the synchronisation
|
||||||
is done using `rsync` over `ssh`.
|
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
|
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.
|
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
|
```sh
|
||||||
make init
|
make init
|
||||||
|
Loading…
x
Reference in New Issue
Block a user