No, there's not. Sorry. On Mon, Dec 27, 2010 at 11:06 AM, Dmitry Sokurenko < [email protected]> wrote:
> Hi guys, > > I'm working on a yet another one i18n system for a legacy app. It uses > english phrases as translation keys, so the general API is similar to > the Globablize one > > "Some Phrase".l > > But I have a lot of literal HAML strings in views, eg: > > %h3 Subject Status > %p some literal message here > > I can replace them with something like > > %h3= "Subject Status".l > > but, it's quite boring. So I wonder if it's possible to override some > HAML method to preprocess all the literal HAML strings? E.g. > > def output(text) > should_be_translated?(text) ? text.l : text > end > > Thanks, > Dmitry > > -- > 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] <haml%[email protected]>. > For more options, visit this group at > http://groups.google.com/group/haml?hl=en. > > -- 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.
