Translating dates to Spanish and .png files

Translating dates to Spanish and .png files

by Beatriz Cowan -
Number of replies: 3

Would you please answer these few questions?
In the assignment module we couldn't translate the deathline date to Spanish: 
"Fecha de entrega: Thursday, 9 October 2003, 06:00 PM (201  días 5 horas)"

We are using PHP code:
PHP Version 4.2.3
Configure Command =
'./configure' '--disable-debug' '--with-config-file-path=conf'
'--enable-fastcgi' '--enable-magic-quotes' '--with-gd=/usr/local'
'--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local'
'--with-zlib-dir=/usr/local'
'--with-apxs=/usr/local/apache-1.3.27/bin/apxs'
'--with-mysql=/usr/local/mysql-3.23.55'

Información sobre GD
GD Support = enabled
GD Version = 2.0 or higher
JPG Support = enabled
PNG Support = enabled
WBMP Support = enabled

So we try to use this to solve the problem:

setlocale ('LC_ALL', 'es');
setlocale ('LC_TIME', 'es');
setlocale ('LC_CTYPE', 'es');
setlocale ('LC_COLLATE', 'es');

And also 'es', 'es_ES' and 'es_ES@euro', without any positive result.

Another problem we have is that in the survey module it doesn't appear the graphic results (consinting in a png file).
 
Hope is not a big problem. Thanks.

Average of ratings: -
In reply to Beatriz Cowan

Re: Translating dates to Spanish and .png files

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Remove any code you altered - all you need to do is set the locale correctly in the admin's variables page. Try the ones you mentioned above again, and also try "espanol".

To see why the survey graphs aren't displaying, try displaying the images directly eg in Mozilla you can right-click the image and select "View Image". You should see error messages that are preventing the image from displaying. Possibly Freetype isn't included in PHP.
In reply to Martin Dougiamas

Trouble with .png files

by Beatriz Cowan -

In your answer you told us to include Freetype in our PHP code. This requiered a personalized instalation that our server offer us for 150 u$s.

Is there another way to solve this problem?

Thank you.

In reply to Beatriz Cowan

Re: Trouble with .png files

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
It's bad enough that it's not included already, since it's very standard, but US$150 is outrageous. It would take them ten minutes to fix it.

All they need to do is recompile PHP and add the following flags:

--with-ttf --with-freetype-dir=/usr

Unfortunately there is no other way around this (apart from switching to another web provider).