From 7f1dc1614817f52866af8d29684ea20cd2d2bcb7 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 4 Oct 2018 00:56:49 +0100 Subject: i18n: po4a: Introduce machinery Signed-off-by: Ian Jackson --- po4a/list-documents | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100755 po4a/list-documents (limited to 'po4a/list-documents') diff --git a/po4a/list-documents b/po4a/list-documents new file mode 100755 index 0000000..ca17ec5 --- /dev/null +++ b/po4a/list-documents @@ -0,0 +1,45 @@ +#!/bin/bash +set -e +set -o pipefail + +fail () { "echo >&2 $0: $*"; exit 1; } + +langs=( $( { ! test -f *.po || ls *.po; } \ + | sed 's#\.po$##; s#.*\.##' \ + | LC_COLLATE=C.UTF-8 sort -u) ) + +cat <