aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2024-02-10 18:16:19 +0100
committerDaniel Schadt <kingdread@gmx.de>2024-02-10 18:16:19 +0100
commit0bb7203e74a2a7cbc9106ae272d6dfeea611d494 (patch)
tree357ad583909b72567accfc41ea6c5a6ae512617a
parente226f6c95811275c1f34161d285ce038fb72b86b (diff)
downloadfietsboek-0bb7203e74a2a7cbc9106ae272d6dfeea611d494.tar.gz
fietsboek-0bb7203e74a2a7cbc9106ae272d6dfeea611d494.tar.bz2
fietsboek-0bb7203e74a2a7cbc9106ae272d6dfeea611d494.zip
add DISPLAY_NAME 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: