[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problem with Kbabel v. 1.11.2
- To: Documentation and Translation <doc at arabeyes dot org>
- Subject: Re: problem with Kbabel v. 1.11.2
- From: Youssef Chahibi <chahibi at gmail dot com>
- Date: Fri, 1 Sep 2006 08:18:42 +0000
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=SbQAMmZ886nkMuq242O/uFYeZKFhprV8AvB5fr9+krvsS/5U4758FeGjgpDDZqR/Bc7umTzduKycNQGND2lGMJMMgpShEbP7TBgqYK+ZGyuoF/oZ9PoDNc1Ecp5a5RHN9Rf9LH8uLldfY+XeJOorMlpIAPkVBMPzMe9th1icti8=
- User-agent: KMail/1.9.3
On Friday 01 September 2006 04:39, Christian Perrier wrote:
> When a PO file (say, ar.po) is apparently invalid, the following
> command can help spotting the error:
>
> msgfmt -o /dev/null -c ar.po
>
> It will output the number of the line where the error happens.
>
> I highly recommend ALL translators to validate their translation files
> this way before sending them to maintainers or committing them. It
> usually helps to spot invalid format errors, plural forms errors,
> variable substitution errors, etc.
Validation is very important, here are some few scripts to check lot of files
at once:
for i in `find . -name "*.po"`; do echo $i; msgfmt -o /dev/null -cv $i; done
for i in `find . -name "*.po"`; do echo $i; msgfmt -o /dev/null --statistics
$i; done
Use the second one with KDE. KDE has a special plural form syntax, when the
number of plurals is not equal to 2 msgfmt -o /dev/null -c kde-ar.po returns
errors which are correct. msgfmt -o /dev/null --statistics is sufficient to
ensure the validity of KDE files.