There is another syntax to GlobalizeRails, and that is : 'There are %d users on this site' / @users_count
This will actually translate into different things, depending on @users_count. @users_count = 1 => 'There is one user on this site' @users_count = 10 => 'There are 10 users on this site' There is also a "%s" thing, that lets you insert arbirtary strings into the translation. Like 'Follow this link : %s' / link_to(....) Currently, I tried to use haml and a line like this : = 'Things %s' / @things And it didn't work :( On Jan 20, 4:19 am, Nathan Weizenbaum <[EMAIL PROTECTED]> wrote: > Actually, come version 1.5 (the next version we plan to release, > currently the development branch), there will be. We're working on a > filter mechanism, so you can filter an indented section of text through > some text-manipulation. For example: > > %p > Not filtered > :erb > Filter<%= "ed" %> > > will produce > > <p> > Not filtered > Filtered > </p> > > It'll be very easy to define your own filter, so you can write > > %p > :t > Lots of internationalized text! > Yaay! > > - Nathan > > Tomislav Filipčić wrote: > > Yes, thank you. I was just hoping that there some "haiku" way so that I > > don't have to put everything in quotes :) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Haml" 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/haml?hl=en -~----------~----~----~----~------~----~------~--~---
