1 2 3 4 5 6 7 8 9 10 |
#! /bin/bash # xgettext-generated .po files use different context than QObject::tr. # The generated files use something like a file name while QObject::tr expects # class names. This approach works. rm -f "${podir}/trojita.ts" lupdate -silent -recursive src/ -ts "${podir}/trojita.ts" lconvert "${podir}/trojita.ts" --sort-contexts --output-format pot -o "${podir}/trojita_common.pot" rm "${podir}/trojita.ts" |