diff options
author | Guillaume GARDET <guillaume.gardet@free.fr> | 2016-03-12 14:04:51 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-03-12 06:46:03 -0800 |
commit | c8df5625d4ed8fd687a64a5c4f12480612f84982 (patch) | |
tree | 629cc28a1600782689aa7f9ae60805793f3cbdcd /Documentation/make_POT.sh | |
parent | 343e8e3df6ab284433a70f0c9c39dbaedc0f0a86 (diff) | |
download | subsurface-c8df5625d4ed8fd687a64a5c4f12480612f84982.tar.gz |
Documentation: add mobile user manual to POT/PO management and update french translation of user-manual and mobile-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 | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/Documentation/make_POT.sh b/Documentation/make_POT.sh index afe9cf895..bbf465790 100755 --- a/Documentation/make_POT.sh +++ b/Documentation/make_POT.sh @@ -3,20 +3,23 @@ # Author(s): Guillaume GARDET <guillaume.gardet@free.fr> # # History: +# - 2016-03-12: Generate 2 POT files: one for mobile-manual and another for user-manual # - 2015-01-14: Initial release # # Package deps: - po4a (for po4a-gettextize) # - perl-Unicode-LineBreak # Some vars -File_to_translate="./user-manual.txt" +Files_to_translate="mobile-manual.txt 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 +for File_to_translate in $Files_to_translate; do + POT_name=subsurface-$(basename $File_to_translate ".txt").pot + #Generate a POT file *.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 +done
\ No newline at end of file |