[phpwebapp-improvments] [phpwebapp - phpWebApp Improvements] Add i18n support to framework
Brought to you by:
dashohoxha
From: SourceForge.net <no...@so...> - 2003-07-30 09:13:53
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=2127110 By: dashohoxha The GNU system has i18n support (gettext) and PHP has an API for it, however something does not work very well for web applications, so I think that the framework cannot use it. We can build, however, something similar to it. The messages that have to be translated by the framework can be denoted like this: {{i)Hello World!}} Then a tool similar to xgettext can be used to extract all the messages from the templates. Then we can either continue in the same way that gettext does, or we can create a message file for each webbox. In the second case we will have to create the files 'boxid_fr.msg', 'boxid_de.msg' etc. for each webbox and for each language. They can either be stored in the same folder as the webbox, or in the subfolder 'langs' in the same folder, or in the folder 'messages' where are stored all the message files of the application, etc. ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=135220 |