In your po file, you have to define all the terms used in the
timeHelper class. See the code at:

http://api12.cakephp.org/view_source/time-helper/#line-423

There you will find that the timeHelper uses the __() and __n()
function and if you define the translation for these words, you will
get the dutch version of the words.

Enjoy,
   John

On Jan 29, 4:17 pm, Céryl <[email protected]> wrote:
> Hi all,
>
> I keep runnign into this problem and there is probably something I
> don;t understand or do right.
> I'm using the Time helper to display some upcoming activities using
> the timeAgoInWords function. Everything works fine and it displays it
> correct like: "3 days, 15 hours" or "on "12-2-10".
>
> However, I want to display this in another language (Duth in this
> case). I'm trying everything I found, setlocale, Configure::write
> ('Config.language', 'nld'), and something about a __() function, but
> nothing changes. I even tried every localecode I found like this:
>
> setlocale(LC_ALL, array('Dutch_Netherlands', 'Dutch', 'nl_NL', 'nl',
> 'nl_NL.ISO8859-1'));
>
> But to no avail...
>
> Exactly what is needed to change this in another language? Do I need
> to install something, set the server to something, download a
> translation file, use setlocale, __(), Config::Write, or something
> else?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to