php-i18n Digest 11 Aug 2003 08:52:38 -0000 Issue 188

Topics (messages 601 through 603):

Reg. Unicode
        601 by: vinod

Re: PHP's Unicode roadmap?
        602 by: l0t3k

gettext and variable parsing
        603 by: Ramil Sagum

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 ---
I am using php+windows2000+sql server 2000.
I want to stote Unicode data in sqlserver. I used Nvarchar in sql server2000.
But I am not able to store data in Unicode. It stores Data in Western 
European(Windows) format .

Instead of using PHP if I use ASP & set codepage to 65001. I can store data in unicode.

Pl. Help me
Regards
Vinod

--- End Message ---
--- Begin Message ---
Hank,
 i certainly am not an official voice of PHP, but some movement is happening
(albeit slow and scattered) to provide some form of Unicode support. the
Japanese I18N group have recently created a path to allow the engine to
process scripts in various encodings, Unicode included [1].

in addition, i've been working on a PHP extension based on ICU
(http://www-124.ibm.com/icu/), hosted at http://www.pearfr.org/~cshmoove/
much has been done, but ICU is huge, and there are only 2 people working on
the PHP project. with additional help, we can have full Normalization and
UCA collation support by the time PHP5 ships. as it stands now, i can only
commit to wrapping up the work that has already been done to make it stable
enough for general usage.

if you have time and talent to spare (coding, documentation or otherwise),
feel free to join the party.

l0t3k
[1] http://www.zend.com/lists/engine2/200308/msg00013.html



"Hank Tt" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> I've been trying to locate some documentation on where PHP is headed in
> terms of Unicode support.



--- End Message ---
--- Begin Message ---
i've successfully setup internationalization, however, i have problems with
variable parsing :

how do you make this work?


$from = 10;
$to = 15;
$total = 25;
echo _("Displaying records from $from to $to of $total");

I know that the expression  "Displaying records from $from to $to of $total"
gets parsed first into "Displaying records from 10 to 15 of 25" before being
passed to gettext. So when gettext looks it up in the .mo files, it doesn't
see the appropriate string. However, if I do

echo _('Displaying records from $from to $to of $total');

it gets translated alright, but the values of $from, $to and $total don't
get parsed. Is there any way other than doing a replace (say, replace $from
with '5'..etc)

thanks!


ramil


--- End Message ---

Reply via email to