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

Zend Translate /locale/set/en was not found on this server

I'm new to zend framework and i'm finding the obvious problem you meet when you use it for the first time. Now i'm setting un the translate function, and, in order to cange the language of the website, i've placed two flags, one for the language of…
softwareplay
  • 1,379
  • 4
  • 28
  • 64
0
votes
2 answers

where do i have to set zend translate?

i found that is simple to set the translation in zend framework. You just have to make some files with the languages and get the locale from the user agent. The only thing i can't find out is "where" should i place the call to zend_translate class.…
softwareplay
  • 1,379
  • 4
  • 28
  • 64
0
votes
1 answer

Zend Translate Poedit and the Translation Context

is there a way to use the "context" or "msgctxt" in Zend_Translate when I call the method $translator->translate('My String') ? I need to classify the item to be translated to a specific context for instance: Customer Administration Shopping…
Michelangelo
  • 1,398
  • 2
  • 14
  • 37
0
votes
1 answer

Zend Framework URL assembly ignoring translation

I have following Route setup: routeXY.type = "Zend_Controller_Router_Route" routeXY.route = "@XY" routeXY.defaults.module = "default" routeXY.defaults.controller = "index" routeXY.defaults.action = "actionXY" Then also pair in my translation array…
Ivan
  • 315
  • 1
  • 3
  • 16
0
votes
1 answer

Issue in Zend Translation

There was issue with the msgid and msgstr in zend translation define - en_US.PO msgid "hello" msgstr "hello world" View/index.phtml $this->translate("hello"); I would like to show "hello world" when I am trying to using msgid "hello" then it…
Vijay V.
  • 568
  • 2
  • 8
  • 24
0
votes
1 answer

Zend Translate Routing for custom modules

How do I have to set up the routing for a default language in Zend Framework on a custom module, in my case the admin module. I have the following code: $langRoute = new Zend_Controller_Router_Route( ':lang/admin', array( 'lang' =>…
Tudor Ravoiu
  • 2,130
  • 8
  • 35
  • 56
0
votes
1 answer

Gettext and Zend Translate, using multiple languages

I have the following setup in my application Bootstrap.php protected function _initTranslation() { $langPath = APPLICATION_PATH.'/languages/'; $translate = new Zend_Translate_Adapter_Gettext($langPath . 'site-ro.mo', 'ro'); $translate…
Tudor Ravoiu
  • 2,130
  • 8
  • 35
  • 56
0
votes
1 answer

Caching Translations

I think I've hit a mind-road-block and I just can't get out of my own way to figure this situation out. Before I go any further, one of my goals (if possible) is to set 'config_cache_enabled' => true inside of my application.config.php file so that…
Diemuzi
  • 3,507
  • 7
  • 36
  • 61
0
votes
2 answers

ZF translation forms

I'm working with ZF2 and I'm using the translator. In the config of my application I've added the translator to the service_manager factories, so it will be used by the ZF2 helpers. This is how my translator config looks like: 'translator' =>…
ivodvb
  • 1,164
  • 2
  • 12
  • 39
0
votes
1 answer

i18n: gettext + Zend_Translate - namespacing / grouping strings together?

I'm updating my current framework's i18n method from a Localization class that stores language strings in arrays to gettext + Zend_Translate. There's a certain situation which leaves me puzzled, single string outputting is simple but using my…
meder omuraliev
  • 183,342
  • 71
  • 393
  • 434
0
votes
1 answer

zf2 translation tmx support

The Zend Framework 2 documentation says that The translator supports the following major translation formats: PHP arrays Gettext Tmx Xliff I have a ZF1 application where I use Tmx format. However, after looking at the ZF2 source code it seems…
Peter
  • 3
  • 4
0
votes
1 answer

ZF2 - Navigation routing with language

In ZF2 I have two languages English and Chinese. Every route starts with language like: 'about' => array( 'type' => 'Zend\Mvc\Router\Http\Segment', 'options' => array( 'route' => '/[:lang]/about', …
Black
  • 9,541
  • 3
  • 54
  • 54
0
votes
2 answers

zend framework 2 gettext translation using others comments

I want know if is possible use comments already created for build other comment which contain the used commend in addition to other text. e.g. //EN file msgid "User no logged" msgstr "" msgid "#previous commend# as participant" msgstr…
josepmra
  • 617
  • 9
  • 25
0
votes
1 answer

Zend_Translate Help - Slovak Languege

I need to just translate form error messages in my application. The application is not multilingual, it is al in Slovak (so I already write labels and stuff in Slovak language), just need to translate error messages. I have made this method in my…
Richard Knop
  • 81,041
  • 149
  • 392
  • 552
0
votes
1 answer

Default locale using Zend Translate with gettext files

After hours of battling with gettext functions and admitting defeat, I downloaded the Zend Framework for use in my project. It finally worked with the gettext file that I have so far, but now I'm wondering how do I show the default text in the…
rink.attendant.6
  • 44,500
  • 61
  • 101
  • 156