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
0
votes
2 answers

Use Zend Translate in Zend Plugin

I define a translation pattern in one of my plugin and it work fine in the views but i have other plugin witch create an html for menus and i need it to fill with curent translation of worlds , but when i use : public function…
user1438910
0
votes
1 answer

Zend_navigation & Zend_translate href attribute dont switch with language change

I have a zend framework project with zend version 1.12. I´m using zend_navigation with a xml file and zend_translation with the gettext adapter. This code creates the main menu: echo '
0
votes
2 answers

change language with JS in zend project

i must add a language support to an existing Zend 1.12 project. Is it possible to use a html select box to change the language? The only way that i know is to use the "onChange" attribute of the select box to insert a specific js function which can…
Tomben
  • 73
  • 7
0
votes
1 answer

Zend Framework Translation for Arabic not working on linux server

I've developed an application in Zend Framework and I am translating it to Arabic. It is working fine on my local Windows machine. When I upload it to a Linux machine I am getting no text using the view translate function. I am currently using the…
0
votes
3 answers

Zend Framework 2 Translating the text of the radio buttons

I´m developing an application using Zend Framework 2 and I need to translate the text of the radio buttons ("Show", "Hide") that I´ve created in my form: //within the Form public function addRadioButtons () { …
devanerd
  • 365
  • 4
  • 12
0
votes
0 answers

How to use multiple language in Zend Framework using multiple language files in language folder

I want to convert my system in multiple languages which is build in zend framework. I have a language folder and this folder I created multiple language foldrs like en,jp,ch etc. All language folders have their own language files like…
user1414979
  • 92
  • 4
  • 11
0
votes
1 answer

Use Zend translate in dynamic CSS

I need the Zend translator in a dynamic CSS file that I write with php. So far, I always used the Zend translator outside of a view or a controller like this: Zend_Registry::get('Zend_Translate')->translate('hello'); When using this in my dynamic…
Horen
  • 11,184
  • 11
  • 71
  • 113
0
votes
1 answer

how to assign url to words which make part from text translated with Zend_Translate?

I am using Zend Framework and Zend_Translate, Array adapter. Let's say I have the following article: "Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur" and translations of it in the languages I will use on my web site. The…
Andrei
  • 83
  • 9
0
votes
2 answers

zend framework 2 get locale from view PhpRenderer

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 care to have a view variables. Thank you!
0
votes
0 answers

ZF2 Zend_Translate content to get search completion

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…
RomanKonz
  • 1,027
  • 1
  • 8
  • 15
0
votes
2 answers

How can I find out which Language was used by Translator in ZF2?

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 onBootstrap($e){ $translator =…
0
votes
1 answer

Zend Framework 2.0 translate validators

I'm trying to translate errors in validator, but i have problems.. $translator = new Zend\I18n\Translator\Translator(); $translator->addTranslationFile( 'phpArray', 'resources/languages/en.php', 'default', …
san
  • 147
  • 1
  • 5
0
votes
1 answer

Prevent Zend from translating validate message

I have a custom Zend validator. This validator will run an external program that returns an error message in printf format together with an arguments-array. I have a message template for messages from this external program: const…
ANisus
  • 74,460
  • 29
  • 162
  • 158
0
votes
1 answer

How to include view variable inside zend translate expression?

I want to display latest 3 news at my homepage. I select the latest news from table from MySql database and assign them to view variables in index controller, like this: $this->view->latestNew = $someClass->getNewsfunction(); Then I declare it in…
Andrei
  • 83
  • 9
0
votes
2 answers

Zend Framework 2 - Form translate

i got a question regarding the Zend Framework 2 Form translate. Right now i cannot translate form error messages from english to italian (my language). I tried to set up the module.config.php as follow: //... 'translator' => array( 'locale' =>…
Cristian
  • 327
  • 2
  • 9
1 2 3
10
11