diff options
author | Guillaume GARDET <guillaume.gardet@free.fr> | 2015-01-14 16:25:58 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-01-15 07:34:17 +1300 |
commit | b4b08bdcc583efe9fcca4f8e5605606a8906ea12 (patch) | |
tree | 8b6e9578f386f8e859d82766cae6cdede55f91a8 /Documentation/make_POT.sh | |
parent | 501f72c6976da0893d4e5f9bb82378e41c37f756 (diff) | |
download | subsurface-b4b08bdcc583efe9fcca4f8e5605606a8906ea12.tar.gz |
Add POT/PO infrastructure to translate user manual.
Signed-off-by: Guillaume GARDET <guillaume.gardet@free.fr>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'Documentation/make_POT.sh')
-rwxr-xr-x | Documentation/make_POT.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Documentation/make_POT.sh b/Documentation/make_POT.sh new file mode 100755 index 000000000..afe9cf895 --- /dev/null +++ b/Documentation/make_POT.sh @@ -0,0 +1,22 @@ +#!/bin/bash +# +# Author(s): Guillaume GARDET <guillaume.gardet@free.fr> +# +# History: +# - 2015-01-14: Initial release +# +# Package deps: - po4a (for po4a-gettextize) +# - perl-Unicode-LineBreak + +# Some vars +File_to_translate="./user-manual.txt" +POT_files_folder="./50-pot" +POT_name="subsurface-manual.pot" + +#Generate a POT file from user-manual.txt file in current folder +cmd="po4a-gettextize --msgid-bugs-address subsurface@subsurface-divelog.org \ + --package-name subsurface-manual -o porefs=full,nowrap \ + -f asciidoc -M UTF-8 -m $File_to_translate -p $POT_files_folder/$POT_name" +echo "Generating POT file:" +echo $cmd +$cmd |