]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/diary_entry/edit.rhtml
Fix a few typos in translation resource names.
[rails.git] / app / views / diary_entry / edit.rhtml
index a08f7182e4f6db138e7f9fe5394e5d776ae0e559..553367756b3611ca4aea0928c4407c3eb00ce72e 100644 (file)
@@ -14,7 +14,7 @@
     </tr>
     <tr valign="top">
       <td class="fieldName"><%= t 'diary_entry.edit.language' -%></td>
-      <td><%= f.collection_select :language, Language.find(:all), :code, :name %></td>
+      <td><%= f.collection_select :language_code, Language.find(:all, :order => :english_name), :code, :name %></td>
     </tr>
     <tr valign="top">
       <td class="fieldName"><%= t 'diary_entry.edit.location' -%></td>
@@ -28,7 +28,7 @@
     <tr>
       <td></td>
       <td>
-         <%= submit_tag t 'diary_entry.edit.save_button' %>
+         <%= submit_tag t('diary_entry.edit.save_button') %>
          <%# TODO: button should say 'publish' or 'save changes' depending on new/edit state %>
       </td>
     </tr>