Load translation catalog, make lupdate silent

Review Request #123622 - Created May 4, 2015 and submitted

Yuri Chornoivan

Curently, there are problems with messages extraction using the Messages.sh script similar to this (adopted from Trojita):

! /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}/kreenshot-editor.ts"
lupdate -silent -recursive src/ -ts "${podir}/kreenshot-editor.ts"
lconvert "${podir}/kreenshot-editor.ts" --sort-contexts --output-format pot -o "${podir}/kreenshot-editor.pot"
rm "${podir}/kreenshot-editor.ts"

This patch is to remove such troubles.

Compiles, installs, even looks partially translated into Ukrainian.

Gregor Mi
Yuri Chornoivan
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit e061cae61f642a8a7c0eaa7b1556603267341ff0 by Yuri Chornoivan to branch master.