gettext 1.10.0 and rails 2.0

The ruby gem gettext 1.10.0 doesn’t work with html.erb files. It’s simple to fix. In the file .../gems/gettext-1.10.0/lib/gettext/parser/erb.rb change the following:

module GetText
  module ErbParser
    @config = {
      :extnames => ['.rhtml']
    }

to

module GetText
  module ErbParser
    @config = {
      :extnames => ['.rhtml', '.erb']
    }

With this change, the gettext system will parse all your erb files.


Related Posts

  1. Vim ack plugin with MacVim and MacPorts
  2. My 5 Must-have vim Plugins
  3. Rails Fragment Caching With Multiple Accounts
  4. iPhone/iPad UISearchBar and UISearchDisplayController Asynchronous Example
  5. Postgresql Slow Query Log
You should follow me on Twitter: @patrickxb