diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml index 9f821c150a7..e57e5d5c90c 100644 --- a/config/locales/server.en.yml +++ b/config/locales/server.en.yml @@ -138,6 +138,8 @@ en: hot: "Hot topics" too_late_to_edit: "That post was created too long ago. It can no longer be edited or deleted." + excerpt_image: "image" + groups: errors: can_not_modify_automatic: "You can not modify an automatic group" diff --git a/lib/excerpt_parser.rb b/lib/excerpt_parser.rb index 4d4a107b999..bb2606a1a28 100644 --- a/lib/excerpt_parser.rb +++ b/lib/excerpt_parser.rb @@ -56,7 +56,7 @@ class ExcerptParser < Nokogiri::XML::SAX::Document elsif attributes["title"] characters("[#{attributes["title"]}]") else - characters("[image]") + characters("[#{I18n.t 'excerpt_image'}]") end characters("(#{attributes['src']})") if @markdown_images