zend-translate

Zend_Translate Help - Slovak Languege

I need to just translate form error messages in my application. The application is not multilingual, it is al in Slovak (so I already write labels and stuff in Slovak language), just need to translate error messages. I have made this method in my bootstrap file: protected function _initTranslate() { $this->translate = new Zend_Tr...

i18n: gettext + Zend_Translate - namespacing / grouping strings together?

I'm updating my current framework's i18n method from a Localization class that stores language strings in arrays to gettext + Zend_Translate. There's a certain situation which leaves me puzzled, single string outputting is simple but using my current method I'm grouping certain strings together, for collections such as cities, states, ...

Application-wide locales with Gettext and Zend_Translate?

I have a custom directory, eg /www/phpstuff which is in my include_path. Inside of this phpstuff directory is a folder i18n. It contains server-side level .mo files. Zend_Translate lets you specify a directory in the second parameter of the constructor, I can't really do Zend_Translate( 'gettext', 'i18n/', 'en' ); It tries to read f...

Zend_Translate - Zend_Navigation and Routing combination problem!

Hello there, I'm having some difficulties with the combination of Zend_Navigation, Zend_Translate and the routing needed. My site navigation is done through Zend_Navigation based on and XML file. I've now added translation to the site based on Zend_Translate and added to following change of routing to the bootstrap: protected function...

Integrate Zend translator into my app

Hello. I wish to use the Translator classes of Zend framework in my app, but I don't want to include the whole framework. I grabbed the: Locale folder Translate folder Exception.php Loader.php Locale.php Registry.php Translate.php and copied into a custom folder named zend.translator. Obviously I had to edit all them to adjust the in...

Recommended place for pre-translated Zend Framework resources

Since zf 1.10 Zend Framework ships with pre-translated validation messages. They are outside the library path. The manual illustrates how to load these in your bootstrap. $translator = new Zend_Translate( 'array', '/resources/languages', $language, array('scan' => Zend_Locale::LOCALE_DIRECTORY) ); Zend_Validate_Abstra...

Mysql adapter for Zend_Translate

Hi everybody, I'm currently in the planning phase of a rather large project that I'll develop in the Zend Framework. One of the problems I'm facing is that the customers will want to translate not only the content but also the interface. I'm currently using gettext and poedit to manage my language files but this is not an option for the...

Zend_Controller_Router_Route_Regex reverse route not translated

This is how my route looks like: acc_long.type = Zend_Controller_Router_Route_Regex acc_long.route = "@accommodation/([A-Za-z-]+)/([0-9A-Za-z-]+)-([0-9]+)" acc_long.map.1 = 'location' acc_long.map.2 = 'name' acc_long.map.3 = 'id' acc_long.defaults.controller = "accommodation" acc_long.defaults.action = "index" acc_long.default...

Zend Translate ini adapter exception "Ini file 'Array' not found"

I get an ugly exception from Zend Translate: Fatal error: Uncaught exception 'Zend_Translate_Exception' with message 'Ini file 'Array' not found' in C:\www\libraries\ZendFramework-1.10.5-minimal\library\Zend\Translate\Adapter\Ini.php:54 application.ini resources.translate.registry_key = "Zend_Translate" resources.translate.a...

Zend_Translate : How can be done with zend framework translation that will translate each expression according his html id?

Hi, I beginner in zend framework and its a bit hard for me to understand zend_translate how its works. My Main Question: How can be done with zend framework translation that will translate each expression according his html id and how non programmer translator can see word location in web browser for translate each expression according...

Which solution supplied zend_translate for translate word with few meanings?

Hi, Which solution supplied zend_translate for translate word with few meanings? Example: http://m-carstairs.com/englishlessons/id12.html Thanks, Yosef ...

How to build an inline translation system similar to Magento's

Hi, I am working on a Zend Framework, MVC, enterprise website project. I would like to develop a friendly translation system with the ability to translate each word according its context (sometimes same word have different translation). Zend Framework uses Zend_Translate for i18n and localization. We have also seen Magento's (which use...

PHP/Gettext Problems

I remember running some tests a some months ago with gettext and the following code worked perfectly: putenv('LANG=l33t'); putenv('LANGUAGE=l33t'); putenv('LC_MESSAGES=l33t'); if (defined('LC_MESSAGES')) // available if PHP was compiled with libintl { setlocale(LC_MESSAGES, 'l33t'); } else { setlocale(LC_ALL, 'l33t'); } bindt...

YAML adapter for Zend_Translate?

Does anybody know a high-quality yaml adapter for Zend Framework's Zend_Translate? There seems to be a proposal in the Zend project itself, but it's been inactive for years. ...

The Zend Framework way of storing modified classes?

I have a project that uses Zend Framework and Zend_Translate. I had to alter the standard CSV Adapter to Zend_Translate slightly. Now I'm confronted with the question where to put this altered adapter. By default, adapters are stored in /Library/Zend/Translate/Adapter/Adaptername.php This is where I've put the new adapter as well. ...

How to set default translator in configs.ini ?

Hi, I'm using Zend Framework 1.10.7 and I'm looking for a way to set the default translator. I know I could set it in Bootstrap.php but I would like to set it up in the configs.ini to gather most of my generic config. I guess it needs to specify a registry key (registry_key ?). By the way, does the Zend_Controller_Router use this defa...

No translation for the language 'en_US' available, why ?

Here is my config.ini resources.locale.default = "en" resources.translate.adapter = "gettext" resources.translate.data = APPLICATION_PATH "/../languages/" resources.translate.option.scan = "directory" resources.translate.registry_key = "Zend_Translate" resources.translate.disableNotices = true resources.translate.default = en And my l...

how to solve zend_translate problem with some keywords?

hi all, i am using zend_translate class (ini adaptor) for my multi language site. but when i use some keywords in my language files it produce error. for example (yes, no keywords). sample language file entries which produce error: yes=native language yes no=native language no how do i solve this problem? thx in advance. ...

Log translated strings when using Zend_Translate

Hi, With Zend Framework it's easy to log strings that haven't got a translation. My question: how do you log the strings that do have a translation? Thanks!! ...

Zend framework, gettext, poedit and human language in which key strings are written

I'm writing a website using ZendFramework and decided to use the gettext system to internationalize its content. In my views I write string in french and provide a this moment only one file "en.mo" to translate sentences to english. I would like to avoid to maintain a file "fr.mo" which would only translate a sentence to the exact same s...