Take a look at http://www.php.net/manual/en/ref.gettext.php This appears exactly what you are looking for, while your idea is as good.
Moriyoshi "Steve Vernon" <[EMAIL PROTECTED]> wrote: > Hiya, > I'm working on my first international PHP project, which is a site that > displays differently in different languages. So I guess this is the place to > ask adive. > > Ive done the code with flags etc so people can select the country and so > the language. But im not sure about the best way to handle the text and > things such as meta tages. > > My origional idea was to have multiple include files named like uk.php, > french.php with seperate variables for the text parts, or do sommat in XML > which is basically the same. > > I cant find any sources on the net about best ways to do a site like > this. > > Help! > > Thanks, > > Steve > > > -- > PHP Internationalization Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Internationalization Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php