Skip to content

Instantly share code, notes, and snippets.

@hidde-jan
Created July 15, 2011 15:24
Show Gist options
  • Save hidde-jan/1084902 to your computer and use it in GitHub Desktop.
Save hidde-jan/1084902 to your computer and use it in GitHub Desktop.
I18n definition, no translated labels
<%= form_for(@user) do |f| %>
<% if @user.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:</h2>
<ul>
<% @user.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
</div>
<% end %>
<table>
<tbody>
<tr>
<th>
<%= f.label :username %>
</th>
<td>
<%= f.text_field :username %>
</td>
</tr>
</tbody>
</table>
<% f.submit %>
<% end %>
nl:
activerecord:
models:
user: Gebruiker
attributes:
user:
first_name: Voornaam
insertion: Tussenvoegsel
last_name: Achternaam
initials: Initialen
gender: Geslacht
username: Gebruikersnaam
email: 'E-mail'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment