Page 2 of 2
Re: proper syntax???
Posted: Mon Jun 28, 2010 4:40 pm
by McInfo
markosjal wrote:As I said it DOES correspond to the array!
It IS in the array or however you want to put it.
Sorry; I misread.
Did you enable error reporting?
Re: proper syntax???
Posted: Mon Jun 28, 2010 8:24 pm
by markosjal
$lang is obviously a variable. In this case it comes from an Array so $lang['text'] would be searched for in the array *a 500+ line text file.
in the example I list here there would need to be a corresponding entry in that text file
'text' => "texto",
(in the case of the spanish file)
so in this case $lang['text'] = "texto"
I just need to pass this on to the javascript so I can get from 99% translated to 100%
As for the error reporting i suppose I just place the code on the page and it reports the errors on the page?
I need to do this at 3AM when nobody is visiting the site
Re: proper syntax???
Posted: Mon Jun 28, 2010 11:39 pm
by McInfo
markosjal wrote:As for the error reporting i suppose I just place the code on the page and it reports the errors on the page?
Yes, under normal conditions.
markosjal wrote:I need to do this at 3AM when nobody is visiting the site
Typically, developers work on a copy of a site and make the site public only when it is ready for release.
Re: proper syntax???
Posted: Tue Jun 29, 2010 3:35 am
by markosjal
I guess I am not typical!
Re: proper syntax???
Posted: Tue Jul 06, 2010 3:08 am
by markosjal
Thanks for the ideas.
I managed to set up a subdomain test.domain.com which has the diags running on it based on HTTP_HOST. When I get to a point I can get back to inserting the PHP variable into the javascript, I will post here any results.
thanks