Questions tagged [zend-locale]

36 questions
1
vote
2 answers

Zend Translate custom language

Depending on the user role, I need to show different texts in my Zend project. For normal users I'm using the "en" language. For new users I want something like "en_new". However, the language "en_new" always reverts to just "en". I'm using the…
1
vote
1 answer

Set View Script in Plugin - Check if Exist?

I'm developing a multi-lingual site. Some languages uses right-to-left layouts and some left-to-right. So some of my view scripts have another RTL view script that I want to load automatically. I wrote a plugin that checks if the user is RTL and if…
Ran
  • 4,117
  • 4
  • 44
  • 70
1
vote
1 answer

Is the Zend Locale library usable with CodeIgniter?

I've been reading some of the questions and answers regarding locales and some of the suggest the use of the Zend Locale library. Would it be possible to use this library in CodeIgniter or does it depend on other components? I'd like to be able to…
RS7
  • 2,341
  • 8
  • 34
  • 57
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
2 answers

jquery datepicker date format with output of Zend_Locale

I'm trying to set the format for a jquery datepicker element with the date format returned by Zend_Locale::getTranslationList('date', $locale); My problem is zend returns the string 'dd/MM/yyyy' for the date format but jquery expects only 2…
JasonM
  • 165
  • 12
1
vote
1 answer

zend-framework how to Localize Zend_Date

how to localize the Zend_Date when i wrote Zend_Debug::dump(Zend_Locale::getTranslationList('type', 'en_US')); i got long array some of its elements . . ["hebrew"] => string(15) "Hebrew Calendar" ["indian"] => string(24) "Indian National…
ahmedsafan86
  • 1,776
  • 1
  • 26
  • 49
1
vote
2 answers

How to get all available languages from Localized Fields in pimcore?

I'm a little bit stuck with this: I have a controller where I'm collecting all available languages for an object in pimcore. Right now I simply take a Localized Field from that object, run through it via foreach and fill an array with the Localized…
Stephan Weinhold
  • 1,623
  • 1
  • 28
  • 37
1
vote
1 answer

Zf2 Locale in URL and $this->url

I am developing a web app on ZF2 Skeleton App base. I have played with lot of options but failed to get final headway. I need to route the url as under: http://myapp/ http://myapp/en/album to AlbumController/indexAction. Also, links need to work…
1
vote
0 answers

Zend_Locale - firefox doesn't show region, only language

I have an issue with Firefox. I am trying to create multi language page using Zend_Translate with gettex adapter. Here's part of my Bootstrap: protected function _initTranslate() { $locale = new Zend_Locale(Zend_Locale::BROWSER); …
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
1 answer

why doesn't the Zend_Locale honor abbreviated formats like zh_HK or zh_CN

I have the following piece of code and am trying to do something simple with the Zend framework and Zend_Locale() $supported_langs = array( 'en' => 'English', 'zh_CN' => '中文(简体)', 'zh_HK' => '中國(傳統)', 'es' => 'Español', 'ja'…
sdolgy
  • 6,963
  • 3
  • 41
  • 61
0
votes
1 answer

Time conversion using Zend locale

Is there a way of converting a time, say 17:00 to 5:00pm using Zend Locale? I've tried the method in the docs as it is (which has a typo), but it doesn't work. It gives the error 'Unable to parse date '13:44:42' using 'dd.MM.yyyy' (M <> y)' $locale…
JasonM
  • 165
  • 12
0
votes
0 answers

Uncaught exception 'Zend_Locale_Exception' with message 'The locale '' is no known locale'

i'm trying to make the translation of a website in zend framework, but, given that is the first time i use this framework, i'm having some problems. The last one is the one that gives me the error you're seeing as a title here. I've set two…
softwareplay
  • 1,379
  • 4
  • 28
  • 64
0
votes
2 answers

Zend_Locale_Format::toNumber very slow in Dutch locale

I have a website accessible in multiple languages and I'm seeing something strange in my page load times with the different locales. Here are the load times of one of the more important pages as an example. en_GB = 469ms fr_BE = 545ms nl_BE =…
Peter
  • 1,211
  • 4
  • 17
  • 32
0
votes
1 answer

Zend Locale & Zend_Currency: Region code

I am trying to create a connection between the Zend_Locale and the Zend_Currency using the browser language preferences. BROWSER: en $locale = new…
Michelangelo
  • 1,398
  • 2
  • 14
  • 37