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

Disable translation for special controllers

is there any possibility to disable the language translator for a controller? This example controller only delivers images. $this->_helper->layout->disableLayout(); $this->_helper->translator ??? TIA Matt
frgtv10
  • 5,300
  • 4
  • 30
  • 46
1
vote
3 answers

Translate variables with POEdit/xgettext

I am using PHP, Zend Framework and Zend_Translate (gettext adapter). To edit translations I use POEdit which utilizes xgettext to fetch strings to be translated. POEdit (xgettext) will search for keywords to find strings to translate. So, if…
ANisus
  • 74,460
  • 29
  • 162
  • 158
1
vote
1 answer

Zend Framework locale and translation problems in form with Zend_Locale, Zend_Translate and Zend_Form

I've been having a few problems with Zend_Locale and Zend_Translate, specifically with htmlentities. But there a couple of other oddities. Firstly, in the Zend_Locale documentation it states: Zend Framework allows the usage of an application wide…
baseten
  • 1,362
  • 1
  • 13
  • 34
1
vote
1 answer

Zend internationalized view helper

in my current project, I need to to use a helper and I would like to translate the string inside this view helper in my .po files. So, I think i need to use the translate() helper but I don't figure out how to use it in a helper. Here is the helper…
Cyril
  • 1,649
  • 1
  • 17
  • 32
1
vote
1 answer

how to add multiple types of translations in zend

I used this code to try and add a translation array from /resources/languages ANd to add a translation from /application/languages/nl.mo (gettext) $translate = new Zend_Translate( array( 'adapter' => 'array', …
Arthur
  • 921
  • 3
  • 13
  • 25
1
vote
1 answer

How to do Zend_Locale with db and fallback?

So, I've google'd and found a way to make my application work with a db adapter for localization (which works great btw), now the next rising problem is fallback. Here's the scenario: Application has translations for English, German, French and…
1
vote
1 answer

Zend_Translate class and space character

I am using Zend_Translate with ini adapter in my project. I want to know how it is possible to use space character in my ini file. Sample: ini file: Show All = my translation // there is space between Show & All view scipt: echo…
rahim asgari
  • 12,197
  • 10
  • 43
  • 53
1
vote
1 answer

Encoding Problem with Zend Navigation using Zend Translate Spanish in XMLTPX File Special Characters

I have been attempting to use Zend Translate to display translated menu items to the user. It works fine until I introduce special characters into the translation files. I instantiate the Zend_Translate object in my bootstrap and pass it in as a…
Nick
  • 1,180
  • 1
  • 10
  • 15
1
vote
1 answer

how can I add csv files for zend translate in ini file

I have translate.tr, translate.en, translate.fr files under application/config directory. I used to $translate = new Zend_Translate('csv', '../application/configs/translate.tr', 'tr'); $writer = new…
nerkn
  • 1,867
  • 1
  • 20
  • 36
1
vote
1 answer

Log translated strings when using Zend_Translate

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!!
murze
  • 4,015
  • 8
  • 43
  • 70
1
vote
1 answer

ZF2 translate formelement button

I have a form which is build with fieldsets and the translate is working well for the label and the placeholders on the form elements. The translator is initiated in the bootstrap and the form fields are translated on the fly. The only text which is…
cwhisperer
  • 1,478
  • 1
  • 32
  • 63
1
vote
1 answer

how to solve zend_translate problem with some keywords?

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…
rahim asgari
  • 12,197
  • 10
  • 43
  • 53
1
vote
1 answer

Why is there no translation for the language 'en_US'?

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 =…
John
  • 181
  • 1
  • 6
1
vote
2 answers

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…
Pekka
  • 442,112
  • 142
  • 972
  • 1,088
1
vote
1 answer

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.
Pekka
  • 442,112
  • 142
  • 972
  • 1,088