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
McInfo
DevNet Resident
Posts: 1532 Joined: Wed Apr 01, 2009 1:31 pm
Post
by McInfo » Mon Jun 28, 2010 4:40 pm
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?
markosjal
Forum Commoner
Posts: 63 Joined: Fri Apr 16, 2010 10:15 pm
Post
by markosjal » Mon Jun 28, 2010 8:24 pm
$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
McInfo
DevNet Resident
Posts: 1532 Joined: Wed Apr 01, 2009 1:31 pm
Post
by McInfo » Mon Jun 28, 2010 11:39 pm
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
Post
by markosjal » Tue Jun 29, 2010 3:35 am
I guess I am not typical!
markosjal
Forum Commoner
Posts: 63 Joined: Fri Apr 16, 2010 10:15 pm
Post
by markosjal » Tue Jul 06, 2010 3:08 am
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