From 4bb8a07e27f0c9645a298517b923a68c5a85cf13 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 2 Oct 2021 22:37:02 -0300 Subject: Use po4a for translating src/locale/en.sh --- aux/workflow/l10n.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'aux') diff --git a/aux/workflow/l10n.sh b/aux/workflow/l10n.sh index 1512c78..15486aa 100755 --- a/aux/workflow/l10n.sh +++ b/aux/workflow/l10n.sh @@ -28,7 +28,7 @@ assert_arg "${LANGS:-}" '-l LANGS' for from_f in "$@"; do for lang in $LANGS ${CONTRIBLANGS:-}; do - to_f="$(echo "$from_f" | sed "s/\.en\./.$lang./")" + to_f="$(echo "$from_f" | sed "s/en\./$lang./")" printf 'Generating %s...\n' "$to_f" >&2 pofile="po/LC_MESSAGES/$from_f/$lang.po" mkdir -p "$(dirname "$pofile")" @@ -51,7 +51,7 @@ for from_f in "$@"; do po2md --pofiles "$pofile" --save "$to_f" \ --quiet --wrapwidth 999 < "$from_f" ;; - *.en.msg) + *.en.msg|*/en.sh) po4a-updatepo -f text -m "$from_f" -p "$pofile" po4a-translate -f text -m "$from_f" \ -p "$pofile" -l "$to_f" -k 0 -v >&2 -- cgit v1.2.3