search for: time_messag

Displaying 1 result from an estimated 1 matches for "time_messag".

Did you mean: time_messages
2007 Sep 18
0
distance_of_time_in_words hardcoded strings should be separated for easier localization
...as a placeholder (@@default_error_messages) for messages that can be overridden. Just the same way, the hardcoded time strings should be easily overridden without breaking or re-implementing the logic in distance_of_time_in_words. This patch creates a new placeholder for the hardcoded strings: @@time_messages = { :less_than_x_seconds => "less than %d seconds", :half_a_minute => "half a minute", ... } Now you are able to overwrite with Helpers::DateHelpers::time_messages[:less_than_x_seconds] = "an instant" or similar. I also added some lines of document...