haml-magic-translations 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/haml-magic-translations.gemspec +1 -1
- data/lib/haml/magic_translations.rb +2 -0
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
@@ -81,6 +81,7 @@ module Haml::MagicTranslations
|
|
81
81
|
unless action && action != '!' || action == '!' && value[0] == '=' || value.empty?
|
82
82
|
value, interpolation_arguments = prepare_i18n_interpolation(value)
|
83
83
|
value = "\#{_('#{value.gsub(/'/, "\\\\'")}') % #{interpolation_arguments}\}\n"
|
84
|
+
@precompiled << value
|
84
85
|
end
|
85
86
|
end
|
86
87
|
[tag_name, attributes, attributes_hashes, object_ref, nuke_outer_whitespace,
|
@@ -100,6 +101,7 @@ module Haml::MagicTranslations
|
|
100
101
|
value, interpolation_arguments = prepare_i18n_interpolation(text,
|
101
102
|
:escape_html => options[:escape_html])
|
102
103
|
value = "_('#{value.gsub(/'/, "\\\\'")}') % #{interpolation_arguments}\n"
|
104
|
+
@precompiled << value
|
103
105
|
push_script(value, :escape_html => false)
|
104
106
|
else
|
105
107
|
if contains_interpolation?(text)
|