[dev] Horde Metar Block

Rick Emery rick at emery.homelinux.net
Fri Dec 12 18:32:30 PST 2003


Quoting Jan Schneider <jan at horde.org>:

> Zitat von 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.
>
> Correct, but only because this is not a whole sentence. If it was, markup
> would be acceptable inside the string.

I'm not following this. Do you mean that the following is OK?

$html .= sprintf(_("<br /><b>Heading:</b> %s inches"), $v);

For that matter, is the sprintf necessary? Could I say:

$html .= _("<br /><b>Heading:</b> $v inches");

Thanks for your patience!

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


--
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



More information about the dev mailing list