[dev] Horde Metar Block

Jan Schneider jan at horde.org
Sat Dec 13 06:03:43 PST 2003


Zitat von Rick Emery <rick at emery.homelinux.net>:

> > > For that matter, is the sprintf necessary? Could I say:
> > >
> > > $html .= _("<br /><b>Heading:</b> $v inches");
> >
> > No, this wouldn't work, you *have to* use placeholders (%s, %d etc).
>
> I don't understand this; if I don't use sprintf() or printf(), I'm not
> sure why
> I'd need placeholders. But I don't need to understand it, as long as the

I missed the part about sprintf. ;-) So, you *have to* use sprintf if you
want to have variable parts inside gettext strings and then you have to use
placeholders of course.

Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft


More information about the dev mailing list