On Wed, Apr 14, 2010 at 19:03, Norman Clarke <[email protected]> wrote:
> On Wed, Apr 14, 2010 at 18:29, Yaroslav Markin
> <[email protected]> wrote:
>
>> Hey. Really like your patch :)
>
> Thanks a lot for the feedback.
>
>> Quick feedback:
>> — we use i18n.* namespace for stuff like pluralization — maybe this is a
>> better fit than support.*?..
>
> Ok, I'll change that.
>
>> — I'm not really sure about obj.respond_to?(:transliterate) — maybe we
>> should do it pluralize-like and support lambdas as argument? As well as a
>> Hash, of course. It's just that storing a lambda .rb translation is a bit
>> easier than storing classes :) Also, I18n 0.3 has quite good lambda
>> localization support already.
>
> That's actually what I wanted to do at first, but I didn't see how I
> could access the lambda without calling it:
>
> http://gist.github.com/366393
>
> Am I missing something?
>
>> Not really sure about performance issues and solving them this way, I
>> believe stuff like this is handled by pluggable back-ends; I hope Sven or
>> anyone else can correct me on that.
>
> Ok, I'll take a look into the pluggable backends.

Sorry to answer my own post, I realized I can simply pass :resolve =>
false to get the Proc directly. Now I'm looking more closely at i18n's
pluralizations and will see about implementing transliterations in a
similar manner.

-- 
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.

Reply via email to