Fixed translate-man.sh for no top ps
the script errored when top or ps translations didnt exist this minor fix skips those if they dont exist.
This commit is contained in:
parent
283d146602
commit
24432f3b21
@ -7,7 +7,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"POT-Creation-Date: 2014-05-28 19:20+1000\n"
|
||||
"POT-Creation-Date: 2014-05-28 20:02+1000\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
@ -7,7 +7,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"POT-Creation-Date: 2014-05-28 19:20+1000\n"
|
||||
"POT-Creation-Date: 2014-05-28 20:02+1000\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
@ -7,7 +7,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"POT-Creation-Date: 2014-05-28 19:20+1000\n"
|
||||
"POT-Creation-Date: 2014-05-28 20:02+1000\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
@ -44,6 +44,10 @@ for lang in *.po
|
||||
po4a-translate -f man -m ../vmstat.8 -p ${lang} -l ${lang%.*}/man8/vmstat.8
|
||||
po4a-translate -f man -m ../w.1 -p ${lang} -l ${lang%.*}/man1/w.1
|
||||
po4a-translate -f man -m ../watch.1 -p ${lang} -l ${lang%.*}/man1/watch.1
|
||||
if [ -f ps/${lang} ] ; then
|
||||
po4a-translate -f man -m ../ps/ps.1 -p ps/${lang} -l ${lang%.*}/man1/ps.1
|
||||
fi
|
||||
if [ -f top/${lang} ] ; then
|
||||
po4a-translate -f man -m ../top/top.1 -p top/${lang} -l ${lang%.*}/man1/top.1
|
||||
fi
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user