Questions tagged [zend-locale]
36 questions
                    
                    9
                    
            votes
                
                3 answers
            
        Is it feasible to rely on setlocale, and rely on locales being installed?
I was trying to generate a localized date string with strftime, the placeholder I use is %x. The language/locale is setlocale(LC_ALL, array('jp','japanese')), however neither locale was available so it generated a string with improper characters. I…
        
        meder omuraliev
        
- 183,342
 - 71
 - 393
 - 434
 
                    4
                    
            votes
                
                3 answers
            
        Country name with zend locale
When I save countries into my database I use the international abbreviation.
How do I convert this abbreviation with zend_locale to the full country name?
        
        G. De Wilde
        
- 43
 - 1
 - 4
 
                    4
                    
            votes
                
                4 answers
            
        How to convert a country string to its ISO 3166-1 code using Zend?
Does anybody know if it's possible to use Zend_Locale to get the ISO 3166-1 code for a country if you have the country name as a string?
For example I have "Nederland" so I would like to get "NL".
        
        Peter
        
- 1,211
 - 4
 - 17
 - 32
 
                    3
                    
            votes
                
                1 answer
            
        Using "." for decimals in zend validator float
I have a form with a element called "price". I validate this element with the "float" validator. The thing is when I insert, for example:
12,50 => it is valid but when I try to save it on the DB (mysql) it is saved as "12.00"
So I wanna to change…
        
        José Carlos
        
- 1,005
 - 16
 - 29
 
                    3
                    
            votes
                
                4 answers
            
        zend_translate and zend_locale
Please provide me the folder strusture and code for simple small
application for zend_translate and zend_locale.
So that I will have some idea about it.
I referred framework.zend but could not understand what are the things which I should mention in…
        
        vrushali
        
- 59
 - 1
 - 6
 
                    3
                    
            votes
                
                3 answers
            
        How to model multilingual database with Zend, l18n mysql?
I know this topic was discusses a couple of times, but none of them represents the ultimate solution for me.
Situation
I'm designing a relational mysql database which later should hold multilingual content. You know this from the Wikipedia or…
        
        Manuel
        
- 9,112
 - 13
 - 70
 - 110
 
                    3
                    
            votes
                
                2 answers
            
        Using PHPUnit on a Zend Framework application, how can I force the locale to be used for a given test?
I am testing a multi-lingual site with phpunit.  One of the tests I want to perform is that the application will detect the locale of the user and automatically redirect.
That is, user accesses the site on /.   The application detects they're from…
        
        Stephen Maher
        
- 228
 - 5
 - 11
 
                    3
                    
            votes
                
                1 answer
            
        ZF2 Fatal error: Class 'Locale' not found in /home/...../Zend/I18n/Translator/Translator.php on line 228
I have a project in my localhost, already running, after modifying the php.ini  of my XAMPP server [running on Windows 7] (adding: extension=php-intl.dll).
But when i upload this project to my GoDaddy hosting, it doesn´t works and get the following…
        
        pablodonayre
        
- 104
 - 1
 - 5
 
                    3
                    
            votes
                
                1 answer
            
        Aplication scope variables in Zend Framework 2?
I want have an store of variables visibles for all application (application space).
I want it because I need access to $locale variable from all views for translate my multilanguage web.
I know in ZF1 there was a ZEND_REGISTRY class, but it has been…
        
        josepmra
        
- 617
 - 9
 - 25
 
                    2
                    
            votes
                
                1 answer
            
        Implementing Zend_Locale and Zend_Translate with modules
I've searched the internet for a good solution to integrating Zend_Locale and Zend_Translate into a modular structure. Here's the endpath I want:
http://url/:lang/:module/:controller/:action 
http://url/:lang/:controller/:action…
        
        somejkuser
        
- 8,856
 - 20
 - 64
 - 130
 
                    2
                    
            votes
                
                3 answers
            
        Zend_Date / Zend_Locale : Change date format for a specific locale?
Is it possible to instruct Zend_Locale that it should use a certain locale, except for a minor alteration to the date format? I don't want to use  the Zend_Date::toString() with the specific formatting, because that would use this format on all…
        
        kander
        
- 4,226
 - 1
 - 22
 - 43
 
                    2
                    
            votes
                
                1 answer
            
        Zend Framework set on bootstrap.php custom locale
how to set custom locale in zend framework by create a function in bootstrap file? I need to change error messege in zend form.
Thanks for support 
        
        Alessandro Staffolani
        
- 335
 - 1
 - 3
 - 17
 
                    2
                    
            votes
                
                2 answers
            
        Strategy for storing and displaying form dropdown data for provinces, states, prefixes?
I'm currently migrating from a class that stores lists of countries, states & provinces in the form of arrays to using Zend's Locale data in the form of ldml xml files. These ldml files provide localised lists of countries, currencies, languages -…
        
        meder omuraliev
        
- 183,342
 - 71
 - 393
 - 434
 
                    2
                    
            votes
                
                0 answers
            
        Zend Translate - Locale not working
I started working on a multilangual Zend Framework application and I've been stucked on something I hate:
The locale is not working like expected.
There's the .ini config:
; Locale
resources.locale.default = "fr"
resources.locale.force =…
        
        Frederick Marcoux
        
- 2,195
 - 1
 - 26
 - 57
 
                    2
                    
            votes
                
                2 answers
            
        Zend Framework 2 (ZF2) dynamic locale
I am looking for a way to add translations to my ZF2 application, using globals in my URL. 
Is there anyway to do this for the whole application at once?
A typpical URL would look like this: http://domain.com/en_GB/user/index
The first part (en_GB)…
        
        Arthur
        
- 921
 - 3
 - 13
 - 25