Using gettext() on dynamic text from a database?

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

Post Reply
barnbuster
Forum Newbie
Posts: 7
Joined: Fri May 02, 2003 10:19 am

Using gettext() on dynamic text from a database?

Post by barnbuster »

I have a web application which requires translation and will use gettext() to streamline and standardise this process.

I was wondering what I should be doing with dynamic pages which have differing data generated from a database.

For overall translation elegance and simplification I would prefer to apply the GetText format across the whole site, rather than have a two tier system where there are separate language MySql db tables for the dynamic pages.

Has anyone come across this problem and come up with a workable solution before? I have read that it can be done but not any wiser as to how.
Post Reply