From 0bb7203e74a2a7cbc9106ae272d6dfeea611d494 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Sat, 10 Feb 2024 18:16:19 +0100 Subject: add DISPLAY_NAME to justfile --- justfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: -- cgit v1.2.3