Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
AO3-7404 Add translation for comment button
  • Loading branch information
bre-nana committed Apr 18, 2026
commit ad381519d918284a17d4a287ce0f35afa919f099
2 changes: 1 addition & 1 deletion app/views/comments/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<%= render :partial => 'comments/comment_form', :locals => {
:comment => @comment,
:commentable => @commentable,
:button_name => ts("Comment")
:button_name => t(".actions.comment")
}
%>
<!--/content-->
Expand Down
2 changes: 2 additions & 0 deletions config/locales/views/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -917,6 +917,8 @@ en:
index:
header_html: Reading Comments on %{link}
new:
actions:
comment: Comment
header_html: New Comment on %{link}
show:
comment_on_html: Comment on %{commentable_link}
Expand Down