Skip to content

Instantly share code, notes, and snippets.

Date (Year, Month, Day):
%Y - Year with century (can be negative, 4 digits at least)
-0001, 0000, 1995, 2009, 14292, etc.
%C - year / 100 (round down. 20 in 2009)
%y - year % 100 (00..99)
%m - Month of the year, zero-padded (01..12)
%_m blank-padded ( 1..12)
%-m no-padded (1..12)
%B - The full month name (``January'')
@robinvdijk
robinvdijk / nl.yml
Last active August 29, 2015 14:02
Dutch translation for en.yml.
# Change config.i18n.default_locale = :nl in application.rb
nl:
activerecord:
attributes:
<model_name>:
<attribute_name>: '<attribute_translation>'
models:
<model_name>: '<model_translation>'
errors:
models:
# Add I18n.locale = :nl to application.rb
nl:
devise:
failure:
already_authenticated: 'Je bent al ingelogd.'
unauthenticated: 'Je dient in te loggen of je in te schrijven.'
unconfirmed: 'Je dient eerst je account te bevestigen.'
locked: 'Je account is vergrendeld.'