Re: I18N Translations
| From: | Wolfram Kriesing | Date: | Mon, 25 Nov 2002 11:00:32 +0000 |
| Subject: | Re: I18N Translations | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-11076@lists.php.net to get a copy of this message | ||
Marcos Lois Bermúdez wrote:
The I18N package are very nice, support negotiation of language, i see that are a I10N package for datetime, currency, and string compare. I see that the translation class, now uses only DB interface taht can overhead a bit the data base if the pages contain a lot of text or a lot of clients fecth the pages at the same time. I want to make a warper for gettext message translation in a I18N Translate class, where i can start? Any help will be apreciated.great. i would suggest to have a look into the other classes, not only the I18N_Message_Translation, but all the other I18N_Message_* classes, since they provide something alike. i just really didnt have the time to look into those, but as far as i know there is supposed to be something like an gettext-wrapper, you might prove me wrong. what i also have in mind already for quite some time, but as usual no time to implement yet is: *completely redesign the I18N_Message - API to support the following* - different data sources where to get the translations from
such as gettext, DB, text-files, etc.- different translate levels/methods for translating either:
plain strings, dynamic strings, markup-strings, etc.- a unique interface for all those data source
like: $translate = new I18N_Message( 'mysql://user@host' );
$translate = new I18N_Message( 'gettext://directory' );
$translate = new I18N_Message( 'plainFile://file.xxx' );
etc.
help/suggestions/implementations would be great :-)
--
Wolfram
.. opensource @ vision:produktion ...
http://opensource.visionp.de
.. translating template engine ....
http://sf.net/projects/simpletpl
.. authentication system ....
http://sf.net/projects/auth