Language Support - GetText
Posted: Wed May 09, 2007 5:44 am
Hey,
I'm building (nearly finished) my own MVC framework that is being used to power a content management system I am creating, however I would like to add language-support to my framework. I could easily create a new php file and put an array in it, with the different langauge phrases and translations, however I have also heard about GetText to provide translations.
Is it a bad idea to use GetText, or will my project benefit from it? I have found a script called php-gettext which you can use instead of the default php gettext functions, which I would use if I do go the GetText route as not all PHP installs have gettext enabled or installed on the system.
How do you do you're language support/translations, should I use Gettext?
I'm building (nearly finished) my own MVC framework that is being used to power a content management system I am creating, however I would like to add language-support to my framework. I could easily create a new php file and put an array in it, with the different langauge phrases and translations, however I have also heard about GetText to provide translations.
Is it a bad idea to use GetText, or will my project benefit from it? I have found a script called php-gettext which you can use instead of the default php gettext functions, which I would use if I do go the GetText route as not all PHP installs have gettext enabled or installed on the system.
How do you do you're language support/translations, should I use Gettext?