Forum Moderators: coopster
We have this website which is translated to different langauges, right now when there are new translation pages we have to manually create a language link e.g. german english french and then link each one to the equivalent language which sometimes causes error because of mis-linking. what we want is a way for us to enter just one code and then when online the language links will automatically be linked to the equivalent page on the other languages.
I suspect we need a database for this and our database will have these fields.
german url
english url
french url
We also need a way for us to enter the records online.
Please help. I am a newbie in PHP.
Thanks,
Aries
Then write on each page top:
country_id="fr"; etc...
Your navigation could be switch based [us2.php.net] to define each country case.
If the pages are created/copied from a template system you could use fopen [us2.php.net] to open the page
and write to the page using fseek [us2.php.net] to a pre defined spot that country_id
using fwrite [us2.php.net]
hope I am on the right track :)
Have you looked into content negotiation [httpd.apache.org]? It's not an easy read but its purpose is exactly what you're describing.