173 |
# checking the syntax of po file if required |
# checking the syntax of po file if required |
174 |
if [ $check_po_syntax -eq 1 ]; then |
if [ $check_po_syntax -eq 1 ]; then |
175 |
if [ -f $language_code.po ]; then |
if [ -f $language_code.po ]; then |
176 |
msgfmt --statistics --verbose -c $language_code.po -o $language_code.po.mo 2>&1 | tee -a "$logfile"_this_run.log |
msgfmt --statistics --verbose -c $language_code.po -o /dev/null 2>&1 | tee -a "$logfile"_this_run.log |
|
rm $language_code.po.mo |
|
177 |
else |
else |
178 |
echo "File $language_code.po is not present in $project_name. Automatic test is not possible." | tee -a "$logfile"_this_run.log |
echo "File $language_code.po is not present in $project_name. Automatic test is not possible." | tee -a "$logfile"_this_run.log |
179 |
fi |
fi |
180 |
# checking the syntax of po file if required |
# checking the syntax of po file if required |
181 |
if [ $check_pot_syntax -eq 1 ]; then |
if [ $check_pot_syntax -eq 1 ]; then |
182 |
if [ -f *.pot ]; then |
if [ -f *.pot ]; then |
183 |
msgfmt -c *.pot -o pot.mo 2>&1 | tee -a "$logfile"_this_run.log |
msgfmt -c *.pot -o /dev/null 2>&1 | tee -a "$logfile"_this_run.log |
|
rm pot.mo |
|
184 |
else |
else |
185 |
echo "File *.pot is not present in $project_name. Automatic test is not possible." | tee -a "$logfile"_this_run.log |
echo "File *.pot is not present in $project_name. Automatic test is not possible." | tee -a "$logfile"_this_run.log |
186 |
fi |
fi |