Localise dates and times in notes popups

This commit is contained in:
Tom Hughes 2013-02-02 12:11:46 +00:00
parent db5c58ed09
commit e957aaacb6
3 changed files with 6 additions and 3 deletions

View file

@ -5,11 +5,12 @@
<small class="deemphasize">
<% if (comment.user) { %>
<%= I18n.t('javascripts.notes.show.' + comment.action + '_by', {
user: comment.user, user_url: comment.user_url, time: comment.date
user: comment.user, user_url: comment.user_url,
time: I18n.l("time.formats.long", comment.date)
}) %>
<% } else { %>
<%- I18n.t('javascripts.notes.show.' + comment.action + '_by_anonymous', {
time: comment.date
time: I18n.l("time.formats.long", comment.date)
}) %>
<% } %>
</small>