]> source.dussan.org Git - redmine.git/commitdiff
Fixes i18n call in macro error fallback (#37668).
authorGo MAEDA <maeda@farend.jp>
Fri, 6 Oct 2023 08:30:33 +0000 (08:30 +0000)
committerGo MAEDA <maeda@farend.jp>
Fri, 6 Oct 2023 08:30:33 +0000 (08:30 +0000)
Patch by Jens Krämer.

git-svn-id: https://svn.redmine.org/redmine/trunk@22331 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/wiki_formatting/macros.rb

index cb4976eb78b4afef66089c999c20932214f0e08b..0f1a4b62d30e2234c47aaf3998cd59b52a2e275f 100644 (file)
@@ -50,7 +50,7 @@ module Redmine
               send(method_name, obj, args)
             end
           rescue => e
-            %|<div class="flash error">#{t(:error_can_not_execute_macro_html, :name => name, :error => e.to_s)}</div>|.html_safe
+            %|<div class="flash error">#{::I18n.t(:error_can_not_execute_macro_html, :name => name, :error => e.to_s)}</div>|.html_safe
           end
         end