[geeklog-devel] Re: Translation class (IRC)
Tony Bibbs
tony at tonybibbs.com
Wed Apr 9 23:08:33 EDT 2003
Dirk, I just finished the code to get it in beta status. I'm going to
bed now but first thing in the morning I have a few clean-up type of
things I need to do and I'll email you the code.
Works pretty slick so far. I just need to nail down the file stuff with
you (e.g. if you specify en-gb and it doesn't exist you get en). Want
to make sure I have all the rules right to stay in good light with all
my international buddies ;-)
--Tony
Dirk Haun wrote:
> 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?
>
>
--
+-------------------+--------------------------------------------------+
|Tony Bibbs |[R]egardless of what you may think of our penal |
|tony at tonybibbs.com |system, the fact is that every man in jail is one |
| |less potential fisherman to clutter up your |
| |favorite pool or pond. --Ed Zern |
+-------------------+--------------------------------------------------+
More information about the geeklog-devel
mailing list