Merge pull request #3123 from fantasticfears/excerpt-translation
allow to translate image's exceprt
This commit is contained in:
commit
c2da725f75
|
@ -138,6 +138,8 @@ en:
|
||||||
hot: "Hot topics"
|
hot: "Hot topics"
|
||||||
too_late_to_edit: "That post was created too long ago. It can no longer be edited or deleted."
|
too_late_to_edit: "That post was created too long ago. It can no longer be edited or deleted."
|
||||||
|
|
||||||
|
excerpt_image: "image"
|
||||||
|
|
||||||
groups:
|
groups:
|
||||||
errors:
|
errors:
|
||||||
can_not_modify_automatic: "You can not modify an automatic group"
|
can_not_modify_automatic: "You can not modify an automatic group"
|
||||||
|
|
|
@ -56,7 +56,7 @@ class ExcerptParser < Nokogiri::XML::SAX::Document
|
||||||
elsif attributes["title"]
|
elsif attributes["title"]
|
||||||
characters("[#{attributes["title"]}]")
|
characters("[#{attributes["title"]}]")
|
||||||
else
|
else
|
||||||
characters("[image]")
|
characters("[#{I18n.t 'excerpt_image'}]")
|
||||||
end
|
end
|
||||||
|
|
||||||
characters("(#{attributes['src']})") if @markdown_images
|
characters("(#{attributes['src']})") if @markdown_images
|
||||||
|
|
Loading…
Reference in New Issue