Use built-in form submit translation keys for traces
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 12 Jun 2019 14:36:13 +0000 (16:36 +0200)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 12 Jun 2019 17:24:06 +0000 (19:24 +0200)
app/views/traces/edit.html.erb
app/views/traces/new.html.erb
config/locales/en.yml

index c17660d..2deae8a 100644 (file)
@@ -50,6 +50,6 @@
 
 </div>
 
-<%= submit_tag t ".save_button" %>
+<%= f.submit %>
 
 <% end %>
index 51cd163..fc6a9f1 100644 (file)
@@ -27,7 +27,7 @@
       </div>
     </fieldset>
 
-    <%= submit_tag t(".upload_button") %>
+    <%= f.submit %>
     <span class="form-help deemphasize"><a href="<%= t ".help_url" %>"><%= t ".help" %></a></span>
   </div>
 <% end %>
index c835df9..d7127a4 100644 (file)
@@ -22,6 +22,9 @@ en:
       redaction:
         create: Create redaction
         update: Save redaction
+      trace:
+        create: Upload
+        update: Save Changes
       user_block:
         create: Create block
         update: Update block
@@ -1758,7 +1761,6 @@ en:
       visibility: "Visibility:"
       visibility_help: "what does this mean?"
       visibility_help_url: "https://wiki.openstreetmap.org/wiki/Visibility_of_GPS_traces"
-      upload_button: "Upload"
       help: "Help"
       help_url: "https://wiki.openstreetmap.org/wiki/Upload"
     create:
@@ -1782,7 +1784,6 @@ en:
       description: "Description:"
       tags: "Tags:"
       tags_help: "comma delimited"
-      save_button: "Save Changes"
       visibility: "Visibility:"
       visibility_help: "what does this mean?"
       visibility_help_url: "https://wiki.openstreetmap.org/wiki/Visibility_of_GPS_traces"