Created
July 1, 2010 12:30
-
-
Save tlray/459899 to your computer and use it in GitHub Desktop.
distance_of_time_in_words in het nederlands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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