php-i18n Digest 29 Mar 2002 18:12:13 -0000 Issue 104

Topics (messages 245 through 248):

gettext
        245 by: Andres Baravalle
        246 by: Naoki Shima

Re: gettext - dates, etc?
        247 by: Matt Friedman
        248 by: Matt Friedman

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Hi,
I'm working at a project that will need a web site with translated texts.

I want to:
- use standard or at least non proprietary solutions
- don't affect too much performance. I have a dedicated but old server 
(freebsd)

I'm thinking at gettext and in fact I'm implementing it in this way 
(openwebsurvey.di.unito.it), but I have some doubts:

1) Is gettext suitable for use in web environment? Someone tested it? I'm 
working with php 4.1.2. I'm very worried about performance. Is better to 
use gettext and translate strings or to translate full pages (or included 
files) "by hand"?
2) Can offline generation of translations be a bit more "safe"? If so, any 
suggestion of how doing it? I'd prefer not to use templating engines like WML.
3) I'd like to edit HTML in my usual WYSIWYG editor. Using gettext with PHP 
I have no more HTML text to edit... Any trick for using HTML editors like 
Dreamweaver?
4) I was trying gettext in winme, with apache, and I noticed that .mo files 
where not reloaded until I stopped apache. Is it normal? Why it is done, 
and how? My .mo files are loaded in memory?

Thanks in advance,
         Andres


____________

Andres Baravalle
http://www.baravalle.it

Tel: +39 011 6706773
Cel: +39 328 2953613
____________

Gli uomini d'azione sono poco pratici.
La stessa azione li allontana dalla loro meta.
         Paco Ignacio Taibo I

--- End Message ---
--- Begin Message ---
Hi Andres,

I have developed I18N_Messages class and put it in PEAR.
It translates text like gettext does and
does not need gettext to be installed on your server.
Actually, it is meant to be an abstruction layer of how messages are
translated.
Currently, there is only I18N_Messages_File class that you can use to do the
job.
You can find it in CVS.
You can look at it at http://cvs.php.net/cvs.php/pear/I18N/Messages
I am working on gettext wrapper with the exact same API of
I18N_Messages_File.
That means when it's ready, you can switch back to gettext with little
configuration change.
Additionally, there is a plan on making I18N_Messages_DB. This class will
fetch
translated text from the database.

Hope it might help,

Naoki Shima
[EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
Does your class or gettext for that matter handle dates, monetary, and
numerical strings by translating them into the appropriate format for
the locale? I already have a system for supplying translated text to my
application which I developed before I knew about gettext. But I don't
as yet have an internationalized system for displaying the items I
mentioned.

Can anyone suggest a good strategy for handling all of the various
formatting issues related to I18N? 

Many Thanks,

Matt Friedman
Web Applications Developer
www.SpryNewMedia.com


-----Original Message-----
From: Naoki Shima [mailto:[EMAIL PROTECTED]] 
Sent: Thursday March 28, 2002 12:30 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP-I18N] gettext

Hi Andres,

I have developed I18N_Messages class and put it in PEAR.
It translates text like gettext does and
does not need gettext to be installed on your server.
Actually, it is meant to be an abstruction layer of how messages are
translated.
Currently, there is only I18N_Messages_File class that you can use to do
the
job.
You can find it in CVS.
You can look at it at http://cvs.php.net/cvs.php/pear/I18N/Messages
I am working on gettext wrapper with the exact same API of
I18N_Messages_File.
That means when it's ready, you can switch back to gettext with little
configuration change.
Additionally, there is a plan on making I18N_Messages_DB. This class
will
fetch
translated text from the database.

Hope it might help,

Naoki Shima
[EMAIL PROTECTED]


-- 
PHP Internationalization Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---
I don't have any code written for this - the main reason being that I
don't totally understand all of the issues associated with I18N. Do you
know of any comprehensive list of items/strings that must be considered
when attempting to produce a locale independent app? 

I think it would be great to start some sort of requirements gathering
via this list - I know I would benefit greatly, as would others who get
these mailings. 

If you are interested, please let me know and I'd be willing to
participate in putting together requirements and possibly writing some
code too. Maybe this list is not the place to do this, but I wanted to
suggest it and see if others are interested.

Matt Friedman
Web Applications Developer
www.SpryNewMedia.com


-----Original Message-----
From: Naoki Shima [mailto:[EMAIL PROTECTED]] 
Sent: Friday March 29, 2002 9:08 AM
To: Matt Friedman
Subject: RE: [PHP-I18N] gettext - dates, etc?

>Seems to me, some sort of strategy class could be written with a common
>type to provide whatever methods are needed to produce the correct
>strings. Include the correct class based on the locale. Then you have a
>common implementation and the right strings are produced. Is this
>anything along the lines you are thinking?

That's the exact description of what we are working on.
However, as I mentioned, we have not build anything for Dates and other
locale stuff yet.
Please tell us if you have any idea or code for this.

Regards,

Naoki Shima


--- End Message ---

Reply via email to