lib/papermill/papermill_helper.rb in papermill-0.13.2 vs lib/papermill/papermill_helper.rb in papermill-0.14.0

- old
+ new

@@ -12,10 +12,10 @@ html << %{<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"</script>} if options[:with_jquery] || options[:with_jqueryui_only] html << %{<script type="text/javascript">jQuery.noConflict();</script>} if options[:with_jquery] == "no_conflict" end html << %{<script type="text/javascript">} ["SWFUPLOAD_PENDING", "SWFUPLOAD_LOADING", "SWFUPLOAD_ERROR"].each do |js_constant| - html << %{var #{js_constant} = "#{I18n.t(js_constant, :scope => "papermill")}";} + html << %{var #{js_constant} = "#{t("papermill.#{js_constant}")}";} end html << %{</script>} html << javascript_include_tag("/papermill/papermill", "/papermill/swfupload") unless @content_for_papermill_inline_js.blank? html << '<script type="text/javascript">jQuery(document).ready(function() {' \ No newline at end of file