proper syntax???

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
McInfo
DevNet Resident
Posts: 1532
Joined: Wed Apr 01, 2009 1:31 pm

Re: proper syntax???

Post 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. :oops:

Did you enable error reporting?
markosjal
Forum Commoner
Posts: 63
Joined: Fri Apr 16, 2010 10:15 pm

Re: proper syntax???

Post 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
User avatar
McInfo
DevNet Resident
Posts: 1532
Joined: Wed Apr 01, 2009 1:31 pm

Re: proper syntax???

Post 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.
markosjal
Forum Commoner
Posts: 63
Joined: Fri Apr 16, 2010 10:15 pm

Re: proper syntax???

Post by markosjal »

I guess I am not typical!
markosjal
Forum Commoner
Posts: 63
Joined: Fri Apr 16, 2010 10:15 pm

Re: proper syntax???

Post 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
Post Reply