mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
allow to translate image's exceprt
This commit is contained in:
parent
87cfbfa117
commit
22d580fe76
2 changed files with 3 additions and 1 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue