[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gallery-devel
Subject:    Re: [Gallery-devel] G2 translation: Japanese / more i18n research
From:       Jesse Mullan <jmullan () visi ! com>
Date:       2003-03-31 12:24:49
[Download RAW message or body]


--Bharat Mediratta <bharat@menalto.com> wrote:
> If you have gettext installed, then you should be able to see the
> language change right away after changing the master language.  Ie,
> . . .
> and make sure that it's properly detecting the dgettext function.
> If it isn't then no translations will work for you.

function.exists.dgettext:0
function.exists.dngettext:0
function.exists.is_a:1

Aha!  I don't think that I saw any reference to needing the gettext module in the Install doc, and 
there wasn't any mention in the initialization process or on any test screen or admin screen.  I 
made a silly assumption that it was a default part of php or that I'd be warned.  I thought that I 
had gettext installed anyway.  It might be useful to add a notice to the test suite or language 
settings piece if dgettext doesn't come up.

http://www.php.net/manual/en/ref.gettext.php

gettext seems to want iconv or libiconv

http://www.php.net/manual/en/ref.iconv.php

I've just installed iconv and I'm reinstalling gettext now.  Then, I'm going to reinstall php. 
Then, ummm...

>> [enlightening explanation removed]
> So, it sounds like we should do the following:
>     - force all output to be UTF-8
>     - Convert all of our translations to Unicode entities (perhaps write
>       a script to do this)?
>     - Write a script to detect non Unicode entities in translation files
>       and complain loudly about them so that we can detect these problems
>       quickly in the future and avoid them.
>
> How does that sound?  I can force output to UTF-8 with my next checkin;
> anybody got time to work on the above two scripts?




-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
__[ g a l l e r y - d e v e l ]_________________________

[ list info/archive --> http://gallery.sf.net/lists.php ]
[ gallery info/FAQ/download --> http://gallery.sf.net ]
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic