#!/bin/bash

qtx11d="$(pwd)/qt4-x11"

if [ "$1" != "" ]
then
cd ../../po
$qtx11d/bin/lconvert -if po -of ts -i $1.po -o ../src/tuxboot/tuxboot_$1.ts
cd ../src/tuxboot
exit 0
fi

cd ../../po
for x in $(ls *.po); do $qtx11d/bin/lconvert -if po -of ts -i $x -o ../src/tuxboot/tuxboot_$(echo $x | sed "s/po/ts/"); done
cd ../src/tuxboot
