From d0e161a164815e1817080b5c9b6f692da6924554 Mon Sep 17 00:00:00 2001 From: Rich Hildebrand Date: Tue, 25 Feb 2014 13:53:50 -0500 Subject: [PATCH] Added docs for "allowPast" setting. --- index.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/index.html b/index.html index 14e033b..9df6513 100644 --- a/index.html +++ b/index.html @@ -116,6 +116,15 @@ jQuery.timeago(jQuery("abbr#some_id")); //=> " jQuery.timeago.settings.allowFuture = true; +

+ To disable timestamps in the past, use the allowPast setting. + This setting is set to true by default. When set to false, if the time is in the past then instead of displaying a message like "5 minutes ago" a static message will be displayed. + The staic message displayed can be configured with the strings.inPast setting: +

+
+jQuery.timeago.settings.strings.inPast = "time has elapsed";
+jQuery.timeago.settings.allowPast = false;
+

Excusez-moi?

Yes, timeago has locale/i18n/language support. Here are some configuration examples. Please submit a GitHub pull request for corrections or additional languages.