gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-devel] GNUmed packaging help needed


From: Karsten Hilbert
Subject: Re: [Gnumed-devel] GNUmed packaging help needed
Date: Thu, 5 Mar 2009 10:29:12 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

On Thu, Mar 05, 2009 at 10:13:49AM +0100, Karsten Hilbert wrote:

> I would advice not to worry about 100% since not 100% of the

advise

> The single most important thing to remember about a
> translation (in order to not crash the client with it) is to
> keep the same number of %s in the string.

It would, in fact, be a tedious but very valuable project
for someone wanting to get to know the source code to
transform strings inside _() from

        _('something %s or other') % 'else'
to

        _('something %(tag)s or other) % {'tag': else}

This can be done on a partial basis, too, down to one string
at a time and it would protect against crashes from "faulty"
translations...

Karsten
-- 
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346




reply via email to

[Prev in Thread] Current Thread [Next in Thread]