Skip to content

Instantly share code, notes, and snippets.

@tlray
Created July 1, 2010 12:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tlray/459899 to your computer and use it in GitHub Desktop.
Save tlray/459899 to your computer and use it in GitHub Desktop.
distance_of_time_in_words in het nederlands
#in config/locals/nl.yml
nl:
half_a_minute: een halve minuut
x_minutes: x minuten
#etc. zie http://apidock.com/rails/v3.0.0.beta3/ActionView/Helpers/DateHelper/distance_of_time_in_words voor alle te vertalen woorden (bij show source)
#in controller of mailer
class MyController
include ActionView::Helpers::DateHelper
def some_method
distance_of_time_in_words(from_time, to_time, false, :locale => :nl)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment