I don't claim that this is necessarily the best solution, but I've dealt with a 
similar problem (translating English language names into native versions for 
all the languages -- i.e. German => Deutsch) by creating a separate language 
file just for language names and using a custom view helper for displaying them:

http://vufind.git.sourceforge.net/git/gitweb.cgi?p=vufind/vufind;a=blob;f=module/VuFind/src/VuFind/Theme/Root/Helper/DisplayLanguageOption.php;h=639da8a7563a42564bca3d47d7b856cfdef366f4;hb=HEAD

- Demian
________________________________________
From: Bas Kamer [[email protected]]
Sent: Wednesday, September 26, 2012 9:03 AM
To: [email protected]
Subject: [fw-general] [zf2] localized

Hi,

I'm looking for the zf2 way to translate country names to use in a selectbox 
(amongst others).

I know I can add every full country name to my translation file and call 
$this->translate('The Netherlands') in my views, but my model would store the 
country codes not full names.

I don't believe ZF2 has something for this at the moment - is that correct? Any 
suggestions?


thanks
Bas Kamer



--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]



--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to