Mysql adapter for Zend_Translate

Now I am in the planning stage of a rather large project that I will develop in the Zend Framework. One of the problems that I encounter is that clients will want to translate not only the content, but also the interface. Currently, I use gettext and poedit to manage my language files, but this is not an option for the client, because they, for example, do not have FTP access to the site.

Therefore, I am thinking about the end of mysql with an interface in the interface so that the client can manage their own interface translations. However, there is no mysql adapter for Zend_Translate.

So now is anybody from the script adapter for Zend_Translate so that it can work with mysql table? Or any arguments against using mysql and possible other solutions for this problem?

+5
source share
3 answers

You can solve this problem in different ways:

Extend Zend_Translate_Adapter to create your own. All new adapters are only responsible for receiving translation from the source. That is, you only need to get translations from the database. Look at other adapters and see how they are implemented.

Extract data from the database and pass it to Zend_Translate_Adapter_Array

Zend_Translate_Adapter_Csv Ini. , . , , .

, , "" - , , ...

!

+7

Zend , , .

(, ). , ( ) .

Zend_Translate ( , ) , .

+3

All Articles