allow to translate image's exceprt

This commit is contained in:
Erick Guan
2015-01-23 17:57:01 +08:00
parent 87cfbfa117
commit 22d580fe76
2 changed files with 3 additions and 1 deletions

View File

@@ -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