mutoh / gettext

Ruby-GetText-Package is a Localization(L10n) library and tools which modeled after GNU gettext package.
http://www.rubyforge.org/projects/gettext/
Other
68 stars 41 forks source link

Haml parser #2

Closed pupeno closed 14 years ago

pupeno commented 14 years ago

Can you add a parser for Haml?

There's one in here: http://www.nanoant.com/programming/haml-gettext-automagic-translation

Not sure if it works or not. I'm trying to give it a try.

pupeno commented 14 years ago

There might be a more recent one on http://github.com/nanoant/sinatra-hat/blob/master/lib/gettext/haml_parser.rb but I can't get either to work yet.

mutoh commented 14 years ago

I won't add the parsers which depend on other libraries to gettext.

I've studied it's not good idea to support other libraries in gettext. Actually, gettext-1.x had supported rails-1.2.x. But there have been a lot of dependency problems because of rails internal changes. So I've removed rails support and move it to gettext_activerecord and gettext_rails since gettext-2.0.