lib/globalize/backend/gettext.rb in kriss-gettext_i18n-0.2.2 vs lib/globalize/backend/gettext.rb in kriss-gettext_i18n-0.2.3
- old
+ new
@@ -16,10 +16,14 @@
translate locale, key.to_sym, options
rescue I18n::MissingTranslationData
interpolate locale, key, options
end
else
- translate locale, key, options
+ begin
+ translate locale, key, options
+ rescue I18n::MissingTranslationData
+ $1
+ end
end
end
end
end
end
\ No newline at end of file