Hi!

I inserted Configure::write('Config.language', 'spa'); in 
/app/Config/core.php, I created the folders:

   - app/Locale/spa/LC_MESSAGES
   - app/Locale/eng/LC_MESSAGES

with files defatul.po. This files contains one copy of default.pot 
generated by bake tool.

I changed the text "Actions" in both files:

eng file
----------------
msgid "Actions"
msgstr "Actions (eng)" 

spa file
---------------
msgid "Actions"
msgstr "Acciones"


I never see the text in Spanish ("Acciones") but if insert "eng" then I see 
"Actions (eng)".
In the database queries to see who takes good language:

SELECT `Country`.`id`, `Country`.`code`, `Country`.`name`, 
(`I18n__nameI18n`.`content`) AS `Country__i18n_nameI18n` FROM 
`idormy`.`golf_countries` AS `Country` INNER JOIN `idormy`.`golf_i18n` AS 
`I18n__nameI18n` ON (`Country`.`id` = `I18n__nameI18n`.`foreign_key` AND 
`I18n__nameI18n`.`model` = 'Country' AND `I18n__nameI18n`.`field` = 'name' 
AND `I18n__nameI18n`.`locale` = '*spa*') WHERE 1 = 1 LIMIT 20

Any ideas?

Very thanks

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to