php-i18n Digest 25 May 2004 15:42:40 -0000 Issue 230
Topics (messages 719 through 721):
gettext in library
719 by: Alfonso Cepeda Caballos
iconv with UTF-7-IMAP support
720 by: Bjai
Re: Converting "\u00F4" style characters
721 by: Michael Wallner
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 ---
Hello,
I'd like to use gettext in a library. That is, to have the po files in a
directory of the library.
The problem is that php programs that use this library will also have their
po files in another directory. Then, the program will do their
bindtextdomain() call and the library will do another different
bindtextdomain() call.
How can I manage this?. I mean, what can I do so PHP server knows where to
find the po of the text included in the library and also to find the po of
the text included in the application?
Any of you use gettext to translate libraries? I have only seen using the
text array method.
Thanks a lot.
Alfonso Cepeda Caballos.
--- End Message ---
--- Begin Message ---
I have recently found someone that has written a patch for iconv library to
support UTF-7-IMAP encoding (http://www.technoids.org/utf7imap/index.html).
Within the patching instruction it is required to edit the iconv library
file of PHP in order to handle idiosncrasies #2 (there is an example of
editing the Perl equivalent file), in that the end-of-string in UTF-7 IMAP
must include bytes that set the encoding back to the US-ASCII state (with a
hyphen). However I am a newbie in C programming and I have tried to edit the
iconv.c file without success. I would very much appreciate if someone could
give me some help in applying the changes so that the iconv library of PHP
can handle UTF-7 IMAP encoding.
To summarize I think it is required to add a null character to end each
UTF-7 IMAP encoded character:
result = iconv(cd, (char **) NULL, &in_left, (char **) &out_p, &out_left);
I have made several attempts to add the above line into the php_iconv_string
function, but it didn't work (compiling is ok).
I would very much appreciate if someone could provide some advice or help in
the above.
Thank you in advance
Bjai
--- End Message ---
--- Begin Message ---
Hi Moriyoshi Koizumi, you wrote:
> It should be working now. Sorry for the inconvenience.
Thanks, but... it has been renamed to php-i18n.obsolete.
Is there a new repository?
I'm searching for the code that handles date formatting
with the format strings defined in the ICU files...
> Guys who want to take part in the development, please let me know.
Well, I'd love to, but I'm not a C coder, the only C'like
thing I've ever written is a *very* simple ps fake for Win32 =)
[1] http://cvs.php.net/co.php/pear/System_ProcWatch/misc/ps/ps.cpp
Regards,
--
Michael - < mike(@)php.net >
signature.asc
Description: OpenPGP digital signature
--- End Message ---