[dev] Horde Metar Block
Rick Emery
rick at emery.homelinux.net
Fri Dec 12 12:40:14 PST 2003
Quoting "Marcus I. Ryan" <marcus at horde.org>:
> As for comments:
> Looking at it more closely, and Jan will correct me if I'm wrong, you
> gettext
> strings that include markup. I would think we wouldn't want to do that
> because then if we change the markup, even if the value doesn't change, it
> has to be retranslated. I've fixed the major ones I saw, but there are more
> that need it.
>
> --
> 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
> -----------------------------------------------------------------------
OK, I have one quick question about this (Jan, are you listening? :-), then
I'll fix the rest and submit a patch.
If I have the original line as:
$html .= sprintf(_("<br /><b>Heading:</b> %s inches"), $v);
should the %s values (I forget the name of these) be translated? In other
words, which is correct:
$html .= sprintf("<br /><b>"._("Heading:")."</b> %s "._("inches"), $v);
or
$html .= sprintf("<br /><b>"._("Heading:")."</b> "._("%s inches"), $v);
Thanks in advance
--
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