Re: Variables placheholders comment



Hi

On Mon, Mar 28, 2011 at 5:54 PM, dooteo <dooteo zundan com> wrote:
> Hi all,
>
> There is a comment into gnome-packagekit which makes me doubt about my
> faith in gettext.
>
> Here is the comment:
>
>        #. TRANSLATOR: "%i %s %i %s" are "%i minutes %i seconds"
>        #. * Swap order with "%2$s %2$i %1$s %1$i if needed
>        #. TRANSLATOR: "%i %s %i %s" are "%i hours %i minutes"
>        #. * Swap order with "%2$s %2$i %1$s %1$i if needed
>
> but, as far as I know, swap order (if translation needs) should be:
>
>        %4$s %3$i %2$s %1$i (which outputs such as 'seconds number minutes
> number' message)
>
> So, placeholders should be unique. Am I wrong?
>
> Best regards,
>
> Dooteo

You can validate the substitution codes with "msgfmt -cv filename.po".
 It should complain if the substitution codes are wrong.

If the translator comment is wrong, I guess one should file a bug
report with gnome-packagekit.

Regards
Ask


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