Re: Weird problem with T_gettext()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 2009-04-04 10:13:52, schrieb Per Jessen:
> Michelle Konzack wrote:
> 
> > Now selecting "de" as prefered language is  working,  but  if  I 
> > select "de_DE" in  Firefox,  the  second  term  "About Us"  is 
> > something like "Ã?ber Uns" insteed "Über Uns" because the Website is
> > UTF-8. 
> 
> Indeed.  I'll venture a guess and say it's because your dictionary file
> is bad or not actually UTF8.

Weird, since my whole system is UTF-8 and if I try to einter  iso-8859-1
charachters it complys that there is a error. Even xgettext tell me this

I have checkd it already with "iconv"

It seems the problem is if my "msgid" have strings like ü which are
not correctly converted to UTF-8 if I use "de_DE" since in  "de"  it  is
working.

Unfortunately the upstream of "php-gettext" is not responding to my mail

> > This is realy weird, since the MO file  is  the  same  for  both 
> > locale versions.
> 
> Ah. Very weird, yes.  Are you doing a setlocale() anywhere? 

The only setlocale() I have found in the whole system is in

    /usr/share/php/php-gettext/gettext.inc

which a part of the php-gettext package.

> Fallback to what?  I only have 'de' in my browser language preferences,
> and your site came up fine in German.

If someone have in the browser only "de-de" and I have NO locale "de_DE"
but "de", php-gettext does not fallback to "de".

Normaly under Linux you can have 

    /usr/share/locale/de_DE.UTF-8
    /usr/share/locale/de_DE@euro

    /usr/share/locale/de_DE
    /usr/share/locale/de

So if your system is "de_DE.UTF-8" and there is no UTF-8 locale, gettext
try "de_DE" and if that fais it try "de".  Unfortunately this  does  not
work with "php-gettext".  For me it is a bug.

Thanks, Greetings and nice Day/Evening
    Michelle Konzack


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
<http://www.tamay-dogan.net/>                 Michelle Konzack
<http://www.can4linux.org/>                   Apt. 917
<http://www.flexray4linux.org/>               50, rue de Soultz
Jabber linux4michelle@xxxxxxxxxxxxx           67100 Strasbourg/France
IRC #Debian (irc.icq.com)                     Tel. DE: +49 177 9351947
ICQ #328449886                                Tel. FR: +33  6  61925193

<<attachment: signature.pgp>>


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux