Re: gnome goals for 3.6



2012/5/16 Matthias Clasen <matthias clasen gmail com>:
> On Tue, May 15, 2012 at 2:07 PM, Piotr Drąg <piotrdrag gmail com> wrote:
>> What about strings with embedded markup, like this one: "Unfortunately
>> GNOME 3 failed to start properly and started in the <i>fallback
>> mode</i>"? Are they also supposed to be changed in some way?
>
> These cases are tricky.
> Sometimes you can eliminate the markup by doing something like
>
> s = g_strdup_printf ("<i>%s</i>", _("fallback mode"));
> /* Translators, %s stands for 'fallback mode' here */
> msg = g_strdup_printf _("Unfortunately GNOME 3 failed to start
> properly and started in the %s"), s);
>
> But this is considerably more clumsy than the embedded markup version,
> and you may well introduce memory leaks and new 'split string'
> translation issues this way.
>
> Use your judgement.

Splitting strings is much worse than having markup, so I think we
should leave those strings as they are.

-- 
Piotr Drąg
http://raven.fedorapeople.org/


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