diff options
author | EuAndreh <eu@euandre.org> | 2022-01-15 20:47:18 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2022-01-15 20:55:51 -0300 |
commit | 31a7db5bf25c411c61ded0e9de8bc65e9cd2611e (patch) | |
tree | fd7c5e94449592ce72ca0870eb104387fb21c9f9 /src/load-locale-messages.sh.in | |
parent | Makefile: Remove makefile.svg (diff) | |
download | git-permalink-31a7db5bf25c411c61ded0e9de8bc65e9cd2611e.tar.gz git-permalink-31a7db5bf25c411c61ded0e9de8bc65e9cd2611e.tar.xz |
Translate and ship strings in src/locale/*.txt
Diffstat (limited to 'src/load-locale-messages.sh.in')
-rw-r--r-- | src/load-locale-messages.sh.in | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/src/load-locale-messages.sh.in b/src/load-locale-messages.sh.in deleted file mode 100644 index e21c784..0000000 --- a/src/load-locale-messages.sh.in +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/sh -set -eu - -get_lang() { - # LC_MESSAGES="ll_CC.CODESET@modifier" -> ll_CC, where quotes are - # optional - locale 2>/dev/null | - grep ^LC_MESSAGES | - cut -d. -f1 | - cut -d\" -f2 | - cut -d= -f2 -} - -locpath() { - lang="$1" - printf '@LOCALEDIR@/%s/LC_MESSAGES/@NAME@.sh' "$lang" -} - -ll_CC="$(get_lang)" -ll="$(echo "$ll_CC" | cut -d_ -f1)" - -if [ -r "$(locpath "$ll")" ]; then - # shellcheck source=/dev/null - . "$(locpath "$ll")" -fi - -if [ -r "$(locpath "$ll_CC")" ]; then - # shellcheck source=/dev/null - . "$(locpath "$ll_CC")" -fi - -# locale hierarchy: -# 1. the language+country specific message -# 2. the language specific message -# 3. the default fallback value |