Hello everyone,

I have an array used for populating a select (drop down list).
I'm filling this array with provinces names.  Now I'd like a clean way
to translate that array with special chars (e.g.  'Quebec' becomes
'Québec')

This is what I have so far:

-------------------
add.ctp:
-------------------
$form->select('province', array(
'Ontario'=>'Ontario',
'Quebec'=>'Quebec',
'British Columbia'=>'British Columbia',
... etc...
), null, null, false)


------------------
default.po
------------------

#-- Provinces --#

msgid "Quebec"
msgstr "Qu&#233bec"

msgid "British Columbia"
msgstr "Colombie-Britannique"

msgid "Newfoundland"
msgstr "Terre-Neuve"

msgid "New Brunswick"
msgstr "Nouveau-Brunswick"

msgid "Prince Edward Island"
msgstr "&#206le-du-Prince-&#201douard"

msgid "Nova Scotia"
msgstr "Nouvelle-&#201cosse"

msgid "Northwest Territories"
msgstr "Territoires du Nord-Ouest"

Thing is,  I'm not sure how to go about and make the component
recognize the array,  for a simple string I would just do __
('string');

Any help would be appreciated, thanks.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to