So how would I produce the languages on the actual page? The same way I currently do?
I'm saying that you make a column in the db for each individual field that needs language (fname, lname, etc) and when you edit them, you can edit them from the front end.
If you want, you could also do an insert instead of update and add multiple languages with this form.
Hey,
Looking back at this now because this whole language file is getting tedious, I'm getting annoyed. Is there any way we can load a language database into the helpers section? My languages database will of course have the general base of ID, Name, Text, like the format of the languages file. So, can we run a query in the languages file that populates more languages so I can start doing modifications via a web app?
E.g. the query would run and supply this to the languages file:
"SYSTEM_ADDED" => "The system has been added!",
Thanks.
Anyone got any thoughts on this?
You could do several things. You could do fwrite (I think it's called) to write your language to typical language files or you could make one table per page in the db (call it the pagename without the php) and do all your language in there. Each user could have a language stored in the user table.
Hey,
So I've made a file called customlang.php. My thought is using fwrite() on that to avoid screwing up the language.php file. Now, how can I use some kind of PHP include or require feature or something, to include these lang's in the language.php file without actually being in there?