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) %>
|
:user => link_to(comment.author.display_name, comment.author) %>
|
||||||
<% if current_user&.moderator? %>
|
<% 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",
|
:class => "btn btn-sm small btn-link link-secondary p-0 align-baseline",
|
||||||
:data => { :method => "POST",
|
:data => { :method => "POST",
|
||||||
:url => comment.visible ? changeset_comment_hide_url(comment) : changeset_comment_unhide_url(comment) } %>
|
: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."
|
still_open: "Changeset still open - discussion will open once the changeset is closed."
|
||||||
comment_by_html: "Comment from %{user} %{time_ago}"
|
comment_by_html: "Comment from %{user} %{time_ago}"
|
||||||
hidden_comment_by_html: "Hidden comment from %{user} %{time_ago}"
|
hidden_comment_by_html: "Hidden comment from %{user} %{time_ago}"
|
||||||
|
hide_comment: "hide"
|
||||||
|
unhide_comment: "unhide"
|
||||||
changesetxml: "Changeset XML"
|
changesetxml: "Changeset XML"
|
||||||
osmchangexml: "osmChange XML"
|
osmchangexml: "osmChange XML"
|
||||||
paging_nav:
|
paging_nav:
|
||||||
|
@ -3174,8 +3176,6 @@ en:
|
||||||
comment: "Comment"
|
comment: "Comment"
|
||||||
subscribe: "Subscribe"
|
subscribe: "Subscribe"
|
||||||
unsubscribe: "Unsubscribe"
|
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.
|
edit_help: Move the map and zoom in on a location you want to edit, then click here.
|
||||||
directions:
|
directions:
|
||||||
ascend: "Ascend"
|
ascend: "Ascend"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue