end
def friendly_date(date)
- tag.span(time_ago_in_words(date), :title => l(date, :format => :friendly))
+ tag.time(time_ago_in_words(date), :title => l(date, :format => :friendly), :datetime => date.xmlschema)
end
def friendly_date_ago(date)
- tag.span(time_ago_in_words(date, :scope => :"datetime.distance_in_words_ago"), :title => l(date, :format => :friendly))
+ tag.time(time_ago_in_words(date, :scope => :"datetime.distance_in_words_ago"), :title => l(date, :format => :friendly), :datetime => date.xmlschema)
end
def body_class
def application_data
data = {
:locale => I18n.locale,
- :preferred_editor => preferred_editor
+ :preferred_editor => preferred_editor,
+ :preferred_languages => preferred_languages.expand.map(&:to_s)
}
if current_user
contact:
km away: "%{count}km away"
m away: "%{count}m away"
+ latest_edit_html: "Latest edit (%{ago}):"
popup:
your location: "Your location"
nearby mapper: "Nearby mapper"
ct status: "Contributor terms:"
ct undecided: Undecided
ct declined: Declined
- latest edit: "Latest edit (%{ago}):"
email address: "Email address:"
created from: "Created from:"
status: "Status:"
role:
administrator: "This user is an administrator"
moderator: "This user is a moderator"
+ importer: "This user is a importer"
grant:
administrator: "Grant administrator access"
moderator: "Grant moderator access"
+ importer: "Grant importer access"
revoke:
administrator: "Revoke administrator access"
moderator: "Revoke moderator access"
+ importer: "Revoke importer access"
block_history: "Active Blocks"
moderator_history: "Blocks Given"
comments: "Comments"
revoke:
title: "Revoking block on %{block_on}"
heading_html: "Revoking block on %{block_on} by %{block_by}"
- time_future: "This block will end in %{time}."
- past: "This block ended %{time} and cannot be revoked now."
+ time_future_html: "This block will end in %{time}."
+ past_html: "This block ended %{time} and cannot be revoked now."
confirm: "Are you sure you wish to revoke this block?"
revoke: "Revoke!"
flash: "This block has been revoked."