On 5/23/07, Joshua Sierles <[EMAIL PROTECTED]> wrote: > > > > > > > It seems the best bet is to leave the concern entirely outside rails > > itself, until the current disparate efforts can be folded into a > > single 'best practise'. Failing that, perhaps it's something where > > there isn't a solution which suits 'most of the people most of the > > time'. > > > > > > There will never be a best practice because there is more than one > problem to solve. But does this mean > that Rails Core feels that it's OK for a growing number of plugins to > override large chunks of Rails code? > For this problem 'most people' means 'most il8n plugin developers' > and 'people who need localization' of which > there are many of both now. > > One could look at the 'prepend_view_path' option as a feature that > was added specifically to ease the development > of plugins. Why would a similar solution for changing error messages > and other hard-coded strings in Rails be different, > except for the valid point of having extra (though hardly complex > or detrimental) method invocations? > > It's understandable to shy away from il8n because of its 'can of > worms' nature. But what we're really talking about here > is providing a simple mechanism by which plugins can access and > change Rails > error messages and hard-coded strings. Lumping that in with the rest > of the il8n/il0n problems is a red herring.
Agreed 100%. The fact that localization plugins have to override many hard coded strings in core Rails points to a problem with core Rails, and not an issue with localization complexity. This is just a 'better practices' thing - externalize constants so they can be easily changed, whether for language or just preference. International apps shouldn't be penalized just because the core team writes English-only apps. There should be a easier solution to allow overriding the default messages, while maintaining the English messages for the 80% who are fine with that. Are there any patches in trac that address this problem directly? - Rob -- http://robsanheim.com http://seekingalpha.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" 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/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
