zend-translate Questions

5

I have to change the locale dynamically depending which language the user wants. I can set the locale in the Application/Module.php like this : public function onBootstrap(MvcEvent $e) { $transl...
Cite asked 11/4, 2013 at 10:53

3

Solved

Usually i user translation in View with this code : <?php echo $this->translate("hello"); ?> How do i get a translation in the Controller?
Zirconia asked 24/6, 2011 at 23:11

3

Solved

I've been looking at options for internationalizing an open source project: Gettext, which everyone seems to recommend, apparently needs locales to be "installed on your system" to be used. See t...
Dissatisfied asked 21/3, 2013 at 7:29

2

How I can obtain traslator locale in my view? I want to do it starting from the variable $this (the PhpRenderer of the view). i.e. I don't want use onBootstrap nor ActionController because I don't...

2

Solved

In my ZF2 application I want to retrieve the language that was used to translate the page. I use the ZendSkeletonApplication as basis. In the Module.php I set the Locale like this: public function...
Saturate asked 24/9, 2012 at 15:11

1

Solved

I am trying to implement URL based translation in Zend Framework so that my site is SEO friendly. This means that I want URLs like the below in addition to the default routes. zend.local/en/module...
Tramontane asked 29/8, 2012 at 13:52

1

Solved

I have managed to make my URL i18n compliant using Zend_Controller_Router. Ie: en/user/login becomes fr/utilisateur/connexion and both URLs go to the same controller/action. The problem I am faci...
Ashcroft asked 20/1, 2012 at 20:55

4

Solved

For translations in our application, we're using Zend Translate with the gettext adapter. In each module is a folder translations, containing .mo files for all the languages; da.mo nl.mo en.mo ...
Parboil asked 31/8, 2011 at 7:45

2

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 adde...

3

Solved

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 conte...
Canzona asked 8/6, 2010 at 8:4

2

Solved

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_MESS...
Manes asked 3/8, 2010 at 15:34
1

© 2022 - 2024 — McMap. All rights reserved.