ZF2 Zend_Translate content to get search completion

DavidK

New Member
i'm searching for a solution to solve the following problem in zf2:i have a list of destinations, and i want a search-formular on my page with auto-completion.also the list is used to translate parts of my web-page, so i will use zend_translate to do this.it it possible to "reverse-search" the list of translations with zend_translate?Example:\[code\]$translate->getKeysByExpression('*ger*');\[/code\]result:\[code\]array ( array ( 'key' => '__germany__', 'name' => 'germany'), array ( 'key' => '__trn_landwithger__', 'name' => 'landwithger')\[/code\]it is not the biggest problem if i have to load the complete list of translations, it is not that much.or is it better to use mongodb as backend for zend_translate, and use direct queries to find the completion-candidates?
 
Top