Questions tagged [zend-translate]

Zend_Translate is the Zend Framework's solution for multilingual applications.

Zend_Translate is solution for multilingual applications. is preferred instead of PHP's native functions. Here you can read more about the benefits from using Zend_Translate and how to start using it.

160 questions
1
vote
1 answer

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

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…
Ben
  • 25,389
  • 34
  • 109
  • 165
1
vote
1 answer

Migration to SilverStripe 3.0 and Zend_Translate

I am migrating a website from SS 2.4 to SS 3.0 and I am having an immensely difficult time due to the fact that the SilverStripe documentation is full of dead links (about every link I have clicked on the 3.0.0 documentation page is dead) and holes…
AbVog
  • 1,435
  • 22
  • 35
1
vote
2 answers

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 =…
Sinisa Valentic
  • 552
  • 6
  • 24
1
vote
0 answers

Encoding problems with Zend Framework 2 (ZF2)

I have a problem to display a translation with the right encoding... Instead of displaying "Olá mundo!" appears "Olá mundo!" I could solve my problem using utf8_decode. But if you use another language that would be a…
1
vote
2 answers

Not translate select options in Zend Framework 1

I have a big form with a lot of select elements with a lot of options each one. All translations work well (labels, descriptions, errors), but i don't want to translate the options shown in the select element. The official guide says nothing about…
1
vote
1 answer

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', …
Exception e
  • 1,864
  • 3
  • 19
  • 33
1
vote
1 answer

ZF2, I18n and dynamic locale not working anymore after update

After finally updating Apache 2.2 -> 2.4 and php 5.4 -> 5.5 translation in view is not dynamic anymore. My app is bilingual with english as fallback. The locale is set i.e. by user's profile using ::onBootstrap class Module { public function…
Sam Mumm
  • 84
  • 9
1
vote
0 answers

Uri multi-languages with zend translate

I have a problem in making url multilanguage with zend because all the guides that I have followed have not worked I want to have url like localhost/compare/public/en/controller/action localhost/compare/public/it/controller/action Can you…
andreadb91
  • 11
  • 3
1
vote
1 answer

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…
meder omuraliev
  • 183,342
  • 71
  • 393
  • 434
1
vote
1 answer

Listen to missingTranslation event

I would like to collect strings, that has not been translated because translation is missing. I would like to enable this event for all translations. Now I can do this by setting it right before translating, but this should be a global setting. I…
Mark
  • 98
  • 6
1
vote
2 answers

How to translate existing PHP project to different language?

I've looked over the web and I couldnt find an appropriate solution. I think I could use Zend Translate over the new project, but how to implent it over the existing one? There lots of native strings - in html, in PHP and in SQL. Whats is the best…
Prosto Trader
  • 3,471
  • 3
  • 31
  • 52
1
vote
0 answers

Zend_Locale - firefox doesn't show region, only language

I have an issue with Firefox. I am trying to create multi language page using Zend_Translate with gettex adapter. Here's part of my Bootstrap: protected function _initTranslate() { $locale = new Zend_Locale(Zend_Locale::BROWSER); …
1
vote
1 answer

How to organize multilingual zend projects

I have built a multilingual web site. Language can be switched by clicking the flags on the site. When clicking any of it, the request is submitted to a controller with following code:
1
vote
0 answers

Force user to use language route

I am changing my application routes so that I can use subdirectories with gTLDs(example.com/de/) instead of URL params (example.com?loc=de). As It is in http://devzone.zend.com/1765/chaining-language-with-default-route/ , I used the following route…
dextervip
  • 4,999
  • 16
  • 65
  • 93
1
vote
1 answer

How can I convert a Zend localization/translation array to gettext?

My multi-lingual site already successfully uses the "array" method of Zend translations. I want to convert from that method to the "gettext" method because I've read that gettext is superior. I've tried using…
Ryan
  • 22,332
  • 31
  • 176
  • 357