[PHP] Conceptional question on dealing with different languages

2006-02-22 Thread janbro
Hello list,
it has been a while since I've posted the last time, but now I need your
 help/ opinion again.  I'm re-designing an existing page for an online
shop which is supposed to be used in different languages. The former
design was just a plan echo for an output since the page was only
intended for the German market. But now the output depends  on the
language the user selected. Currently we think of two languages, but
that might change sooner or later (management decision...).

Of course I don't want to ad an case of $language for every former echo.
I want to export the content to one central file/ object / table...
The infrastructure is PHP5 MySQL.

Now my ideas, where I would need your opinion:
1. a XML File which I read via SimplXML
2. a plan Text file
3. a PHP class where I delviver the content out of arrays
4. or a table in MySQL

Do you have other options, that might be useful? Which would you prefer?

thx Jan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Conceptional question on dealing with different languages

2006-02-22 Thread Philip Hallstrom

Hello list,
it has been a while since I've posted the last time, but now I need your
help/ opinion again.  I'm re-designing an existing page for an online
shop which is supposed to be used in different languages. The former
design was just a plan echo for an output since the page was only
intended for the German market. But now the output depends  on the
language the user selected. Currently we think of two languages, but
that might change sooner or later (management decision...).

Of course I don't want to ad an case of $language for every former echo.
I want to export the content to one central file/ object / table...
The infrastructure is PHP5 MySQL.

Now my ideas, where I would need your opinion:
1. a XML File which I read via SimplXML
2. a plan Text file
3. a PHP class where I delviver the content out of arrays
4. or a table in MySQL

Do you have other options, that might be useful? Which would you prefer?


Haven't used it, but see it everywhere...

http://us3.php.net/gettext

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php