[dev] Horde Metar Block
Marcus I. Ryan
marcus at horde.org
Fri Dec 12 14:18:37 PST 2003
Again, Jan may end up correcting me, but I think gettext operates on the
format string before sprintf performs substitutions so sprintf(_("%s")) is
pointless (and sprintf(_("%s %s, (%s)"))).
--
Marcus I. Ryan, marcus at horde.org
-----------------------------------------------------------------------
"Love is a snowmobile racing across the tundra and then suddenly it
flips over, pinning you underneath. At night, the ice weasels come."
-- Matt Groening
-----------------------------------------------------------------------
Quoting Rick Emery <rick at emery.homelinux.net>:
> Quoting Chuck Hagenbuch <chuck at horde.org>:
>
> > Quoting Joel Vandal <jvandal at infoteck.qc.ca>:
> >
> > > $html .= '<br /><b>' . _('Heading:') . '</b> ' .sprintf(_("%s inches"),
> > $v);
> >
> > That looks like the better option of the lot, BUT: never use single
> quotes
> > with
> > gettext strings. They won't be picked up.
> >
> > -chuck
> >
> > --
> > Charles Hagenbuch, <chuck at horde.org>
> > "I'm really... I'm not too fascinated by green food." - Average Joe
>
> OK, I think I've got it. Before I rifle through the script changing every
> occurrence, could somebody check the attached diff and verify that I'm on
> the
> right track?
>
> Thanks
>
> --
> Rick Emery
>
> "When once you have tasted flight, you will forever walk the Earth
> with your eyes turned skyward, for there you have been, and there
> you will always long to return"
> -- Leonardo Da Vinci
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
More information about the dev
mailing list