Loading Changelog.md +1 −0 Original line number Diff line number Diff line Loading @@ -164,6 +164,7 @@ before. * Do not include conversation subject in notification mail [#6910](https://github.com/diaspora/diaspora/pull/6910) * Add 'Be excellent to each other!' to the sidebar [#6914](https://github.com/diaspora/diaspora/pull/6910) * Expose Sidekiq dead queue configuration options * Properly support pluralization in timeago strings [#6926](https://github.com/diaspora/diaspora/pull/6926) # 0.5.11.0 Loading app/assets/javascripts/widgets/timeago.js +12 −5 Original line number Diff line number Diff line Loading @@ -10,11 +10,18 @@ if (Diaspora.I18n.language !== "en") { $.timeago.settings.lang = Diaspora.I18n.language; $.timeago.settings.strings[Diaspora.I18n.language] = {}; $.each($.timeago.settings.strings["en"], function(index) { $.each($.timeago.settings.strings.en, function(index) { if (index === "numbers") { $.timeago.settings.strings[Diaspora.I18n.language][index] = []; } else { } else if (index === "minutes" || index === "hours" || index === "days" || index === "months" || index === "years") { $.timeago.settings.strings[Diaspora.I18n.language][index] = function(value) { return Diaspora.I18n.t("timeago." + index, {count: value}); }; } else { $.timeago.settings.strings[Diaspora.I18n.language][index] = Diaspora.I18n.t("timeago." + index); } }); Loading config/locales/javascript/javascript.en.yml +15 −5 Original line number Diff line number Diff line Loading @@ -95,15 +95,25 @@ en: inPast: "any moment now" seconds: "less than a minute" minute: "about a minute" minutes: "%d minutes" minutes: one: "1 minute" other: "%d minutes" hour: "about an hour" hours: "about %d hours" hours: one: "about 1 hour" other: "about %d hours" day: "a day" days: "%d days" days: one: "1 day" other: "%d days" month: "about a month" months: "%d months" months: one: "1 month" other: "%d months" year: "about a year" years: "%d years" years: one: "1 year" other: "%d years" wordSeparator: " " contacts: Loading Loading
Changelog.md +1 −0 Original line number Diff line number Diff line Loading @@ -164,6 +164,7 @@ before. * Do not include conversation subject in notification mail [#6910](https://github.com/diaspora/diaspora/pull/6910) * Add 'Be excellent to each other!' to the sidebar [#6914](https://github.com/diaspora/diaspora/pull/6910) * Expose Sidekiq dead queue configuration options * Properly support pluralization in timeago strings [#6926](https://github.com/diaspora/diaspora/pull/6926) # 0.5.11.0 Loading
app/assets/javascripts/widgets/timeago.js +12 −5 Original line number Diff line number Diff line Loading @@ -10,11 +10,18 @@ if (Diaspora.I18n.language !== "en") { $.timeago.settings.lang = Diaspora.I18n.language; $.timeago.settings.strings[Diaspora.I18n.language] = {}; $.each($.timeago.settings.strings["en"], function(index) { $.each($.timeago.settings.strings.en, function(index) { if (index === "numbers") { $.timeago.settings.strings[Diaspora.I18n.language][index] = []; } else { } else if (index === "minutes" || index === "hours" || index === "days" || index === "months" || index === "years") { $.timeago.settings.strings[Diaspora.I18n.language][index] = function(value) { return Diaspora.I18n.t("timeago." + index, {count: value}); }; } else { $.timeago.settings.strings[Diaspora.I18n.language][index] = Diaspora.I18n.t("timeago." + index); } }); Loading
config/locales/javascript/javascript.en.yml +15 −5 Original line number Diff line number Diff line Loading @@ -95,15 +95,25 @@ en: inPast: "any moment now" seconds: "less than a minute" minute: "about a minute" minutes: "%d minutes" minutes: one: "1 minute" other: "%d minutes" hour: "about an hour" hours: "about %d hours" hours: one: "about 1 hour" other: "about %d hours" day: "a day" days: "%d days" days: one: "1 day" other: "%d days" month: "about a month" months: "%d months" months: one: "1 month" other: "%d months" year: "about a year" years: "%d years" years: one: "1 year" other: "%d years" wordSeparator: " " contacts: Loading