[horde] translations for weatherdotcom results

Jan Schneider jan at horde.org
Wed Mar 31 05:16:09 PST 2004


Zitat von Daniel Eckl <daniel.eckl at gmx.de>:

> Would it be possible to make the results from weatherdotcom query
> translation-aware?
>
> Example: lib/Block/weatherdotcom.php:221
>         $html .= ' ' . _($weather['condition']);
>
> After that the translator could make translation entries like:
>
> #: lib/Block/weatherdotcom.php:221
> msgid "Fair"
> msgstr "Heiter"
> ... etc.
>
> I tested it manually and it works. But I don't understand the
> translation system with templates, compendiums, xml data etc. good
> enough to make a smooth patch...
>
> e.g. How could we make translation.php update recognize this and so on?

We can't, because the strings to be translated need to be in the source
code. But these strings come from weather.com.

A solution would be to add all possible strings as dummy strings to the
source code, assumed that we know all possible strings.

Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - Neue Wege des Lernens
http://www.tip4all.de - Deine private Tippgemeinschaft



More information about the horde mailing list