Yeah! I find the perfect solution (at the moment)
$quotes = explode(\n,trim($GLOBALS[html]-template('base','quotes'))); #
explode + trim
return $quotes[array_rand($quotes)]; # array_rand() only
On Fri, May 30, 2008 at 5:43 AM, Jeremy Newman [EMAIL PROTECTED] wrote:
Ángel Guzmán Maeso wrote:
For Your Information: Not translate NEVER with google translator or other
translators because they are machines and they translate as if they were
wild Indians or master yoda. If you use your
Ángel Guzmán Maeso wrote:
I send a patch with translations for many templates and 404.template (in
UTF-8 believe) and a small improve in a function of file site.
This improvement use array_ramdom instead of rand+count but the bound is
not clear for me, so you should review
I have committed
Jeremy Newman wrote:
I figured as much. I just needed a template to use as a test. I knew you'd
end up fixing the poor translation. I had no intention to use it on more
templates.
Okay, then nothing happens. All right.
The templates files are well. Sorry for my fail in quote function. I thought
2. The website does not support translations yet. I don't think it is much
work to support it. Mainly the HTML class template() function needs to check
the browser for the language, then change the template dir, if the template
for the language is not found, then the EN version is loaded as a
Yeah, I'm working on a patch now to enable translations of all the
content. Someone will have fun jobs of sending in translations of all
the WWN content, but if they are up to the challenge.
Hold off on your updates until I'm done.
FYI, your templates will need to be in UTF-8 encoded text
OK. Patches are complete. The majority of the website can be translated now.
What still needs to be done is to allow translation of the sidebar nav.
My plan is to move that out of the config.php file and into a separate
file, possibly in XML.
People who want to send translations of the news
OK. Patches are complete. The majority of the website can be translated
now.
O_O XLNT!!
What still needs to be done is to allow translation of the sidebar nav. My
plan is to move that out of the config.php file and into a separate file,
possibly in XML.
Well, sound good for me.