diff options
author | Daniel Schadt <kingdread@gmx.de> | 2022-12-03 18:56:32 +0100 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2022-12-06 18:39:20 +0100 |
commit | acce7c38d3833b59c4eb2e99dbe7f0393b6a9cbd (patch) | |
tree | 2b07366e650feeee94ae77fa1d74ed36bb5a4f7b /justfile | |
parent | b9628678de72793e1bf0ad10f8c842c5bcb7dc10 (diff) | |
download | fietsboek-acce7c38d3833b59c4eb2e99dbe7f0393b6a9cbd.tar.gz fietsboek-acce7c38d3833b59c4eb2e99dbe7f0393b6a9cbd.tar.bz2 fietsboek-acce7c38d3833b59c4eb2e99dbe7f0393b6a9cbd.zip |
replace Makefile targets with justfile
We might re-introduce Makefiles, but for different purposes (SASS or
TypeScript compilation).
Diffstat (limited to 'justfile')
-rw-r--r-- | justfile | 19 |
1 files changed, 18 insertions, 1 deletions
@@ -1,4 +1,4 @@ -default: +_default: @just --list # Create a new language pack @@ -41,3 +41,20 @@ update-language-pack locale: FB_PATH="$PWD" cd "language-packs/fietsboek-i18n-{{ locale }}" pybabel update -d "fietsboek_i18n_{{ locale }}/locale" -l {{ locale }} -i "$FB_PATH/fietsboek/locale/fietslog.pot" + +# Initializes a new built-in language +init-language locale: + pybabel init -d fietsboek/locale -l {{ locale }} -i fietsboek/locale/fietslog.pot + cp -r fietsboek/locale/en/html fietsboek/locale/{{ locale }}/ + +# Update the built-in message catalogue +update-language locale: + pybabel update -d fietsboek/locale -l {{ locale }} -i fietsboek/locale/fietslog.pot + +# Compile the given built-in language +compile-language locale: + pybabel compile -d fietsboek/locale -l {{ locale }} -i fietsboek/locale/{{ locale }}/LC_MESSAGES/messages.po + +# Extract new messages from the source files +extract-messages: + pybabel extract -F babel.cfg -o fietsboek/locale/fietslog.pot --input-dirs=fietsboek |