Re: RFP: use gnu gettext

From: Christian Biesinger (cbiesinger@web.de)
Date: Tue Apr 30 2002 - 02:56:45 EDT

  • Next message: Christian Biesinger: "Re: RFP: externalize *all* locale-specific information"

    On Tue, Apr 30, 2002 at 04:35:51AM +0100, Andrew Dunbar wrote:
    > --- Karl Ove Hufthammer <huftis@bigfoot.com> wrote: >
    > Dom Lachowicz <doml@appligent.com> wrote in
    > > Some strings probably *need* to be duplicated. I'm
    > > thinking of
    > > strings which are identical in English, but not in
    > > the target
    > > language. [...]
    > I was always suspicious that gettext did this. Is
    > there a way around it?

    Well... you can use "Forward1" or whatever as the english string and
    provide an english .po file as well... but that's a bit of a hack.

    > Also we need to fix the
    > problem where multiple %s need to be in a different
    > order between English and the localized language.
    > Will gettext help with this?

    Sure. (Though this might actually be a feature of printf).
    Just use "foo %2$s bar %1$s" as the msgstr.

    -- 
    "They that can give up essential liberty to obtain a little temporary
    safety deserve neither liberty nor safety."
                                                     -- Benjamin Franklin
    




    This archive was generated by hypermail 2.1.4 : Tue Apr 30 2002 - 02:59:16 EDT