diff options
Diffstat (limited to 'aux/workflow/l10n.sh')
-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 |