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
1 answer

How to implement the google translate for particular words from Database in Reactjs?

Can I Know how to implement the google translate for particular words in Reactjs ?
Shan
  • 9
  • 2
0
votes
2 answers

Zend_Translate problems between two languages

Hot off the heels of my other question: why doesn't the Zend_Locale honor abbreviated formats like zh_HK or zh_CN These are the two languages I'm wanting to provide translations for using the Zend framework. When a user decides that they don't…
sdolgy
  • 6,963
  • 3
  • 41
  • 61
0
votes
2 answers

Zend_Translate: how to do a revserse translation

my site is built with Zend framework, and default in English. i have a csv file to translate from english to french: fr.csv however, the datas in my db are in English. So I want to translate user frontend input from French to English so as to…
Capitaine
  • 1,923
  • 6
  • 27
  • 46
0
votes
2 answers

No translation for the language - Works on development server but not in production

While translation works fine on the development server we get the following notice on the production server: No translation for the language 'fr' available. Here is the translation configuration in the bootstrap (forcing the locale for the test) :…
Devil
  • 1
  • 1
  • 3
0
votes
3 answers

Zend_Translate : Auto-extract string from views

i don't figure out a way to extract automaticaly string to be translated in files. For instance, you've got in your layout and views some echo $this->translate('my_string'); and I want to created the files 'en_US.php', 'fr_FR.php', 'es_ES.php' with…
Cyril
  • 1,649
  • 1
  • 17
  • 32
0
votes
0 answers

Zend move translator configuration from module.config.php to Module.php

I'm pretty new to ZF and have a question regarding translator configuration. I have an application with the following translator configuration inside the module.cofig file: 'translator' => [ 'locale' => 'ru_RU', …
Angel Deykov
  • 1,199
  • 1
  • 9
  • 15
0
votes
2 answers

Zend Translate Component - Blank page - no framework website

I'm trying to add Zend Translate component into a very basic no-framework website (since gettext is giving me headaches in shared hosting environment) What I did is copy the library directory of the framework into the root directory of my site (i.e.…
Mecca
  • 659
  • 1
  • 7
  • 17
0
votes
2 answers

ZF3 Translator Remote Loader Factory Unable to resolve service

I have a problem using MVCTranslator with translations stored in the database. I configured the translations to use remote_translation, but I can not create a factory for my custom loader. My files look like this: module.config.php 'translator' =>…
0
votes
1 answer

Using plural in Zend_Translate (Array adapter)

Can anybody show me example of using Zend_Translate with Array Adapter when I need to make more than one plural forms for a word. For 1 entity first, for 2 - 4 entities second, for 5 and more - third form.
0
votes
1 answer

Zend_Translate, set up the log via the application resource plugin?

I'm using application resource plugins in a .ini file to set up my Zend_Translate with this code: resources.translate.data = APPLICATION_PATH "/../languages" resources.translate.adapter = "gettext" resources.translate.options.scan = …
Peter
  • 1,211
  • 4
  • 17
  • 32
0
votes
1 answer

How to get an ad hoc translation with Zend_Translate

I'm using Zend_Translated to translated all my strings $translator->_('hello') If my locale is in french this code will print "Bonjour". When browsing the french version of the site i'd like to output some german text. $translator->_('hello',…
murze
  • 4,015
  • 8
  • 43
  • 70
0
votes
2 answers

What's the best option to have language switcher in my ZF2 system?

I have developed small ZF2 doctrine system for one of my client. All is good so far, but they require the system in 2 languages. I can set default language as english or another language from my…
Adarsh Khatri
  • 358
  • 1
  • 5
  • 23
0
votes
2 answers

How to set default translator in configs.ini?

I'm using Zend Framework 1.10.7 and I'm looking for a way to set the default translator. I know I could set it in Bootstrap.php but I would like to set it up in the configs.ini to gather most of my generic config. I guess it needs to specify a…
John
  • 21
  • 3
0
votes
1 answer

Translating model exceptions in php - Zf2 - Zend i18n - Poedit

How can I translate my custom exceptions, inside my module/model? what's the best way? 1) Directly into MyModelTableGetaway.php. example: public function getAlbum($id) { $id = (int) $id; $rowset = $this->tableGateway->select(array('id'…
0
votes
1 answer

Which solution supplied zend_translate for translate word with few meanings?

Which solution supplied zend_translate for translate word with few meanings? Example: http://m-carstairs.com/englishlessons/id12.html Thanks, Yosef
Ben
  • 25,389
  • 34
  • 109
  • 165