Move show/hide changeset comment locale strings out of javascripts
This commit is contained in:
parent
691289bfc0
commit
9db1b47c15
2 changed files with 3 additions and 3 deletions
|
@ -37,7 +37,7 @@
|
|||
:user => link_to(comment.author.display_name, comment.author) %>
|
||||
<% if current_user&.moderator? %>
|
||||
—
|
||||
<%= tag.button t("javascripts.changesets.show.#{comment.visible ? 'hide' : 'unhide'}_comment"),
|
||||
<%= tag.button t(".#{comment.visible ? 'hide' : 'unhide'}_comment"),
|
||||
:class => "btn btn-sm small btn-link link-secondary p-0 align-baseline",
|
||||
:data => { :method => "POST",
|
||||
:url => comment.visible ? changeset_comment_hide_url(comment) : changeset_comment_unhide_url(comment) } %>
|
||||
|
|
|
@ -474,6 +474,8 @@ en:
|
|||
still_open: "Changeset still open - discussion will open once the changeset is closed."
|
||||
comment_by_html: "Comment from %{user} %{time_ago}"
|
||||
hidden_comment_by_html: "Hidden comment from %{user} %{time_ago}"
|
||||
hide_comment: "hide"
|
||||
unhide_comment: "unhide"
|
||||
changesetxml: "Changeset XML"
|
||||
osmchangexml: "osmChange XML"
|
||||
paging_nav:
|
||||
|
@ -3174,8 +3176,6 @@ en:
|
|||
comment: "Comment"
|
||||
subscribe: "Subscribe"
|
||||
unsubscribe: "Unsubscribe"
|
||||
hide_comment: "hide"
|
||||
unhide_comment: "unhide"
|
||||
edit_help: Move the map and zoom in on a location you want to edit, then click here.
|
||||
directions:
|
||||
ascend: "Ascend"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue