about summary refs log tree commit diff stats
path: root/build/latex/academia/init
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--build/latex/academia/init4
-rwxr-xr-xbuild/latex/academia/init.local26
2 files changed, 16 insertions, 14 deletions
diff --git a/build/latex/academia/init b/build/latex/academia/init
index d2eb028..7c8138a 100644
--- a/build/latex/academia/init
+++ b/build/latex/academia/init
@@ -147,6 +147,8 @@ if [ -e ./.reuse/templates/default.jinja2 ]; then
     fi
 
     cat <<EOF | fmt --uniform-spacing --width=85 --split-only >./.reuse/templates/default.jinja2
+$APPLICATION_NAME_STYLIZED$description_str
+
 {% for copyright_line in copyright_lines %}
 {{ copyright_line }}
 {% endfor %}
@@ -157,7 +159,7 @@ SPDX-FileContributor: {{ contributor_line }}
 SPDX-License-Identifier: {{ expression }}
 {% endfor %}
 
-This file is part of $APPLICATION_NAME_STYLIZED$description_str.
+This file is part of $APPLICATION_NAME_STYLIZED.
 
 You should have received a copy of the License along with this program.
 If not, see <$LICENSE_URL>.
diff --git a/build/latex/academia/init.local b/build/latex/academia/init.local
index 123e349..0e61b4d 100755
--- a/build/latex/academia/init.local
+++ b/build/latex/academia/init.local
@@ -1,16 +1,16 @@
 #!/usr/bin/env sh
 
-prompt LANGUAGE "The language to use in the latex documents" "en_GB"
+prompt LANGUAGE "The language to use in the latex documents" "en-GB"
 
 bable_language=""
 case "$LANGUAGE" in
-"en_GB")
+en-GB)
     bable_language="british"
     ;;
-en_*)
+en-*)
     bable_language="english"
     ;;
-de_DE | de_*)
+de-DE | de-*)
     bable_language="ngerman"
     ;;
 
@@ -30,29 +30,29 @@ fi
 siunitx_language=""
 # locales UK, US, DE (Germany), PL (Poland), FR (French), SI (Slovene) and ZA (South Africa).
 case "$LANGUAGE" in
-"en_GB")
+en-GB)
     siunitx_language="UK" # United Kingdom
     ;;
-"en_US")
+en-US)
     siunitx_language="US" # United States of Amerika
     ;;
-en_ZA)
+en-ZA)
     siunitx_language="ZA" # South Africa
     ;;
-en_*)
+en-*)
     echo "'$LANGUAGE' is not yet recognized! But it seems english, thus we set SIUNITX_LANGUAGE='UK'."
     siunitx_language="UK"
     ;;
-de_DE)
+de-DE)
     siunitx_language="DE" # Germany
     ;;
-pl_PL)
+pl-PL)
     siunitx_language="PL" # Poland
     ;;
-fr_FR)
+fr-FR)
     siunitx_language="FR" # French
     ;;
-sl_SL)
+sl-SL)
     siunitx_language="SI" # Slovene
     ;;
 *)
@@ -63,7 +63,7 @@ sl_SL)
 esac
 
 prompt BABLE_LANGUAGE "The language to use for the bable package" "$bable_language" "dont_ask"
-prompt DATE_TIME_LANGUAGE "The language to use for the datetime2 package" "$(echo "$LANGUAGE" | sed 's/_/-/g')" "dont_ask"
+prompt DATE_TIME_LANGUAGE "The language to use for the datetime2 package" "$LANGUAGE" "dont_ask"
 prompt SIUNITX_LANGUAGE "The language to use for the siunitx package" "$siunitx_language" "dont_ask"
 prompt TODONOTES_LANGUAGE "The language to use for the todonotes package" "$todonotes_language" "dont_ask"