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

Translating the language in a textbox on submit click

I am beginner with the Zend Framework. I have a simple form that contains a text box and a submit button. I want to translate the language in that text box when I click on submit, and also I want to print the translated language.
DjangoDev
  • 889
  • 6
  • 16
  • 25
1
vote
2 answers

ZF2 how to change locale in the view

my config is 'translator' => array( 'locale' => 'en_EN', 'translation_file_patterns' => array( array( 'type' => 'gettext', 'base_dir' => __DIR__ . '/../language', 'pattern' => '%s.mo', ), ), ), and…
Cawa
  • 1,269
  • 3
  • 25
  • 44
1
vote
1 answer

Zend-Framework -Forms and Translation

Hi I have a form element error and it keeps breaking it when I wrap it in the translation function. I am using gettext for the translation. I understand that if I have it set in the registry and Zend_Form it should pick it up automatically but how…
Jim
  • 13
  • 4
1
vote
1 answer

How to implement Zend Translation in Core PHP Project

I need to implement Zend Translation in a project that is made in Core PHP that is i don't want to use Full ZF Just Zend Translation Classes that is used for Translation. How would i do that means how would i start ? which classes i need to add ?? i…
user1540078
1
vote
0 answers

Zend_Translate | Routes reversed

I'm having trouble with own defined routes of my ZF1.12 Application. The switch of the language Parameters works, but the translation of the routes is reversed - for…
1
vote
1 answer

Doctrine extensions (Gedmo) Translatable - how display translated entity based on current locale

I have the gedmo translatable extension working in my zend framework application. I mean that the following code creates the ext_translations table and inserts the translated articles in the table. $article = new…
dimbo
  • 817
  • 1
  • 11
  • 25
0
votes
1 answer

Multilingual database application with Zend and Doctrine

I am using Zend translate in my application. This works for most things, but what should I do in the case of database stored values that will be seen in the user interface. eg. A user has to select a colour from a select box. The select box is…
dimbo
  • 817
  • 1
  • 11
  • 25
0
votes
1 answer

Zend_Navigation and Zend_Translation France accent

I have setup a internet application with multi languages. The navigation is set by navigation.xml, zend translation files are .php files. Everything is going well but I cant make it to use accents for the france language in my navigation. When I put…
directory
  • 3,093
  • 8
  • 45
  • 85
0
votes
1 answer

Zend_Translate vs Zend_Navigation

I build a internet application with multi languages. I setup everything well, it work when I call as an example site.com/fr/ I get all in france or site.com/en/ all in english. I try to get these languages also in my zend_navigation url's like the…
directory
  • 3,093
  • 8
  • 45
  • 85
0
votes
1 answer

Zend_Translate Navigation items from application.ini

At the moment I try to translate my web application with zend_translate. I made it already that far to translate the view in the application. At the moment I struggle with the follow thing. I want to translate my navigation items who I setup by…
directory
  • 3,093
  • 8
  • 45
  • 85
0
votes
1 answer

Zend translate URL and language switcher

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 facing is the following I have a language switcher that is…
JF Dion
  • 4,014
  • 2
  • 24
  • 34
0
votes
2 answers

How to run Zend Project module...?

How to run Zend Project module...? This is my project folder structure. VIEW at $APP_DIR/application/modules/catalog/views/scripts/item/display.phtml. CONTROLLER at $APP_DIR/application/modules/catalog/controllers/ItemController.php BOOTSTRAP at…
vrushali
  • 59
  • 1
  • 6
0
votes
1 answer

Poedit not recognizing translation value - why?

I am building a multi-language site and present my text in the form _('mytext') or _("mytext") so that Poedit can recognize it and add it to my pending translations. Why is the text below not recognized unless I remove the :…
dimbo
  • 817
  • 1
  • 11
  • 25
0
votes
1 answer

Translating URLs ZendFramework

I have been using zend translate to translate the site content but what about the urls? How could I translate it? Ex.: localhost/app/contact (English) localhost/app/contato (Portuguese)
dextervip
  • 4,999
  • 16
  • 65
  • 93
0
votes
1 answer

ZEND tralslations for addMultiOption text in Form for poEdit

I dont have an idea why translations are not working in with Zend_Form. I would like to be able translate options for selects. For now i have something like this: my form class: (...) $this->translate =…
DarAss
  • 97
  • 8