Commit 4f31d596 authored by Phil Hughes's avatar Phil Hughes

Revert line being commented out

parent dc5136a7
module GettextI18nRails module GettextI18nRails
class HamlParser class HamlParser
# singleton_class.send(:alias_method, :old_convert_to_code, :convert_to_code) singleton_class.send(:alias_method, :old_convert_to_code, :convert_to_code)
#
# # We need to convert text in Mustache format # We need to convert text in Mustache format
# # to a format that can be parsed by Gettext scripts. # to a format that can be parsed by Gettext scripts.
# # If we found a content like "{{ 'Stage' | translate }}" # If we found a content like "{{ 'Stage' | translate }}"
# # in a HAML file we convert it to "= _('Stage')", that way # in a HAML file we convert it to "= _('Stage')", that way
# # it can be processed by the "rake gettext:find" script. # it can be processed by the "rake gettext:find" script.
# def self.convert_to_code(text) def self.convert_to_code(text)
# text.gsub!(/{{ (.*)( \| translate) }}/, "= _(\\1)") text.gsub!(/{{ (.*)( \| translate) }}/, "= _(\\1)")
#
# old_convert_to_code(text) old_convert_to_code(text)
# end end
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment