]> git.openstreetmap.org Git - rails.git/commitdiff
Move comment changeset locale string out of javascripts
authorAnton Khorev <tony29@yandex.ru>
Tue, 4 Jun 2024 13:17:20 +0000 (16:17 +0300)
committerAnton Khorev <tony29@yandex.ru>
Tue, 4 Jun 2024 13:17:20 +0000 (16:17 +0300)
app/views/changesets/show.html.erb
config/locales/en.yml

index 5a54bd80ecb0fef31d72db40aca127e9c8ab1166..a30dc8c79ac18674878a96e2f9b5e0ec85aeeb7a 100644 (file)
@@ -66,7 +66,7 @@
         <div id="comment-error" class="alert alert-danger p-2 mb-3" hidden>
         </div>
         <div>
-          <%= tag.button t("javascripts.changesets.show.comment"),
+          <%= tag.button t(".comment"),
                          :class => "btn btn-primary",
                          :name => "comment",
                          :disabled => true,
index 0b7027f80fe970ec7cbe6c20f8105110a76b8066..bad3ef02547d0ae629632807629a16a8d3981eb2 100644 (file)
@@ -476,6 +476,7 @@ en:
       hidden_comment_by_html: "Hidden comment from %{user} %{time_ago}"
       hide_comment: "hide"
       unhide_comment: "unhide"
+      comment: "Comment"
       changesetxml: "Changeset XML"
       osmchangexml: "osmChange XML"
     paging_nav:
@@ -3173,7 +3174,6 @@ en:
       embed_html_disabled: HTML embedding is not available for this map layer
     changesets:
       show:
-        comment: "Comment"
         subscribe: "Subscribe"
         unsubscribe: "Unsubscribe"
     edit_help: Move the map and zoom in on a location you want to edit, then click here.