Hi again

> However, the local is set in a before_filter at the moment, and the 
> translations will be loaded from the dryml_generator code. This appears to be 
> happening *before* the before_filter is executed, so we always have the 
> default_locale for those translation.

honestly, I'd be interested to hear if anyone uses this feature for an app 
where you can switch the language during runtime. It appears that the 
translations for model names are set during the reload phase, when classes are 
reloaded and (in the hobo case) the dryml is rebuilt. 

This means it's outside the normal controller/request lifecycle and I don't see 
any way to pre-empt it without hacking even more into the code. Also, I assume 
that the reloading will often be skipped in production mode - will this mean 
that the translations are stuck in that case?

Best,

                        Daniel


-- 
Daniel Hahn
Software Architect
[email protected]

Net7 
Via Marche 8a - 56123 Pisa
http://www.netseven.it/




-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" 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/hobousers?hl=en.

Reply via email to