John Barnette wrote:
> On Sep 30, 2009, at 6:30 AM, Max Williams wrote:
>>    <%= '{count} topic(s)'[(count=Topic.count)==1 ? :topic_count :
>> :topics_count, number_with_delimiter(count)] %>,
>>
>> or
>>
>> <%= submit_tag 'Save Forum'[:save_forum], :or =>
>> link_to('Cancel'[:cancel], forums_path) %>
>>
>> My first thought was "wtf is that?", and it's that question that i put
>> to you, dear readers.
> 
> Looks like a stab at L10N. I bet "string"[:symbol] is a way to have
> 'reasonable' strings embedded in the code, but still look 'em up in a
> translation table.
> 
> 
> ~ j.
hmm, yeah, you may be on to something there, John.

hahahaha no way, just googled "beast forum localization" - 
hahahahahahaha
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to