diff options
author | EuAndreh <eu@euandre.org> | 2021-10-02 22:37:02 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-10-02 22:37:02 -0300 |
commit | 4bb8a07e27f0c9645a298517b923a68c5a85cf13 (patch) | |
tree | 2ca59c71dd02fe7659643e821854bf04b9e979ee /aux/workflow | |
parent | TODOs.md: Mark #task-79c9aa0e-d5ef-78d2-0a01-1b5a06cce6d9 as CANCELLED (diff) | |
download | git-permalink-4bb8a07e27f0c9645a298517b923a68c5a85cf13.tar.gz git-permalink-4bb8a07e27f0c9645a298517b923a68c5a85cf13.tar.xz |
Use po4a for translating src/locale/en.sh
Diffstat (limited to 'aux/workflow')
-rwxr-xr-x | aux/workflow/l10n.sh | 4 |
1 files changed, 2 insertions, 2 deletions
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 |