cameel/gettext — Issue #2: rake gettext:find not able to parse new Ruby 1.9 Hash syntax
Author: mfernandezrodriguez
Created: 2012-02-23 12:23:16+00:00
State: open

Hi!

we're playing with gettext and the new Ruby 1.9 Hash syntax and the `rake gettext:find` task won't parse our views correctly. The error:

parse error on value ":" (tCOLON)

The syntax we're referring to:

# Ruby 1.8 Syntax
{:this => 'syntax', 'is' => 'fun', # => 'flexible'}
# Ruby 1.9 syntax
{this: 'syntax', 'will': 'cause', #: 'errors'}

Are we doing something wrong? If not, any plans to support this? Shall we find another gettext string searching tool after all :)?

Regards!