Tweak i18n edited date format(#19104)
This commit is contained in:
parent
814080dc3b
commit
561ed1858f
3 changed files with 10 additions and 7 deletions
|
|
@ -6,8 +6,11 @@
|
|||
</time>
|
||||
|
||||
<% if decorated_comment.edited_at.present? %>
|
||||
<%= t("views.comments.edited.text_html",
|
||||
on: tag.span(t("views.comments.edited.on_html", date: tag.time(decorated_comment.edited_at.strftime(t("time.formats.short")), datetime: decorated_comment.edited_timestamp, class: %w[hidden m:inline-block date-no-year])))
|
||||
) %>
|
||||
<span class="hidden m:inline-block"><%=
|
||||
t("views.comments.edited.text_html",
|
||||
date: tag.time(decorated_comment.edited_at.strftime(t("time.formats.short")), datetime: decorated_comment.edited_timestamp, class: %w[date-no-year])
|
||||
)
|
||||
%></span>
|
||||
<span class="m:hidden"><%= t("views.comments.edited.short_html") %></span>
|
||||
<% end %>
|
||||
</a>
|
||||
|
|
|
|||
|
|
@ -32,8 +32,8 @@ en:
|
|||
collapse: Collapse
|
||||
edit: Editing comment
|
||||
edited:
|
||||
text_html: "• Edited %{on}"
|
||||
on_html: on %{date}
|
||||
text_html: "• Edited on %{date}"
|
||||
short_html: "• Edited"
|
||||
expand: Expand
|
||||
visible_signed_in:
|
||||
text_html: "Some comments may only be visible to logged-in visitors. %{sign_in} to view all comments."
|
||||
|
|
|
|||
|
|
@ -32,8 +32,8 @@ fr:
|
|||
collapse: Collapse
|
||||
edit: Editing comment
|
||||
edited:
|
||||
text_html: "• Edited %{on}"
|
||||
on_html: on %{date}
|
||||
text_html: "• Edited on %{date}"
|
||||
short_html: "• Edited"
|
||||
expand: Expand
|
||||
visible_signed_in:
|
||||
text_html: "Some comments may only be visible to logged-in visitors. %{sign_in} to view all comments."
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue