aboutsummaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2024-04-04 21:31:57 +0200
committerDaniel Schadt <kingdread@gmx.de>2024-04-04 21:31:57 +0200
commit6ee21f6c078891e4453415cbebd6b7d591185c5f (patch)
treef57490cda863521a352570cb5081435470a4564a /justfile
parentf3902c84e07514f252f02a38a2795946f70ba896 (diff)
parent3968fad3a060c40a84eb07a0cf93e22e1161da61 (diff)
downloadfietsboek-6ee21f6c078891e4453415cbebd6b7d591185c5f.tar.gz
fietsboek-6ee21f6c078891e4453415cbebd6b7d591185c5f.tar.bz2
fietsboek-6ee21f6c078891e4453415cbebd6b7d591185c5f.zip
Merge branch 'language-chooser'
Diffstat (limited to 'justfile')
-rw-r--r--justfile4
1 files changed, 3 insertions, 1 deletions
diff --git a/justfile b/justfile
index a608149..bca2460 100644
--- a/justfile
+++ b/justfile
@@ -24,8 +24,9 @@ create-language-pack locale:
} >> pyproject.toml
mkdir -p "fietsboek_i18n_{{ locale }}/locale"
touch "fietsboek_i18n_{{ locale }}/__init__.py"
- cp -r "$FB_PATH/fietsboek/locale/en/html" "fietsboek_i18n_{{ locale }}/locale/"
+ cp -r "$FB_PATH/fietsboek/locale/en/html" "fietsboek_i18n_{{ locale }}/locale/{{ locale }}/"
pybabel init -d "fietsboek_i18n_{{ locale }}/locale" -l {{ locale }} -i "$FB_PATH/fietsboek/locale/fietslog.pot"
+ echo "{{ locale }}" > fietsboek_i18n_{{ locale }}/locale/{{ locale }}/DISPLAY_NAME
# Compile the messages of an existing language pack
compile-language-pack locale:
@@ -46,6 +47,7 @@ update-language-pack locale:
init-language locale:
pybabel init -d fietsboek/locale -l {{ locale }} -i fietsboek/locale/fietslog.pot
cp -r fietsboek/locale/en/html fietsboek/locale/{{ locale }}/
+ echo "{{ locale }}" > fietsboek/locale/{{ locale }}/DISPLAY_NAME
# Update the built-in message catalogue
update-language locale: