[geeklog-devel] Re: Translation class (IRC)

Dirk Haun dirk at haun-online.de
Wed Apr 9 18:14:19 EDT 2003


Tony wrote on IRC:

> $translator = new Translator('en'); // where en is the default language

I think that class needs at least some knowledge about language codes. If I do

    $translator = new Translator('de-at');

(de-at = Austrian German) and there is no de-at translation, it should be
looking for 'de' first and only if that does not exist fall back to 'en'.

In the end, that language code will come from some user configurable
setting (the GL2 equivalent of config.php or the user's preferences), so
that's something the class itself should handle, not the code using the class.

bye, Dirk

P.S. Tony, the geeklog-devel digest postings to geeklog-devtalk are also
held back for approval now. Can you look into that, please?


-- 
http://www.haun-online.de/
http://www.haun.info/




More information about the geeklog-devel mailing list