Include count in messages for the "one" plural category

This commit is contained in:
Tom Hughes 2023-03-15 21:01:32 +00:00
parent cc0473ada8
commit b5cc4449a6
2 changed files with 29 additions and 30 deletions

View file

@ -2,6 +2,5 @@
<p> <p>
<%= render :partial => "gpx_description" %> <%= render :partial => "gpx_description" %>
<%= t(".loaded_successfully", <%= t(".loaded", :trace_points => @trace_points, :count => @possible_points) %>
:trace_points => @trace_points, :possible_points => @possible_points, :count => @possible_points) %>
</p> </p>

View file

@ -159,41 +159,41 @@ en:
datetime: datetime:
distance_in_words_ago: distance_in_words_ago:
about_x_hours: about_x_hours:
one: about 1 hour ago one: about %{count} hour ago
other: about %{count} hours ago other: about %{count} hours ago
about_x_months: about_x_months:
one: about 1 month ago one: about %{count} month ago
other: about %{count} months ago other: about %{count} months ago
about_x_years: about_x_years:
one: about 1 year ago one: about %{count} year ago
other: about %{count} years ago other: about %{count} years ago
almost_x_years: almost_x_years:
one: almost 1 year ago one: almost %{count} year ago
other: almost %{count} years ago other: almost %{count} years ago
half_a_minute: half a minute ago half_a_minute: half a minute ago
less_than_x_seconds: less_than_x_seconds:
one: less than 1 second ago one: less than %{count} second ago
other: less than %{count} seconds ago other: less than %{count} seconds ago
less_than_x_minutes: less_than_x_minutes:
one: less than a minute ago one: less than %{count} minute ago
other: less than %{count} minutes ago other: less than %{count} minutes ago
over_x_years: over_x_years:
one: over 1 year ago one: over %{count} year ago
other: over %{count} years ago other: over %{count} years ago
x_seconds: x_seconds:
one: 1 second ago one: "%{count} second ago"
other: "%{count} seconds ago" other: "%{count} seconds ago"
x_minutes: x_minutes:
one: 1 minute ago one: "%{count} minute ago"
other: "%{count} minutes ago" other: "%{count} minutes ago"
x_days: x_days:
one: 1 day ago one: "%{count} day ago"
other: "%{count} days ago" other: "%{count} days ago"
x_months: x_months:
one: 1 month ago one: "%{count} month ago"
other: "%{count} months ago" other: "%{count} months ago"
x_years: x_years:
one: 1 year ago one: "%{count} year ago"
other: "%{count} years ago" other: "%{count} years ago"
printable_name: printable_name:
with_id: "%{id}" with_id: "%{id}"
@ -312,10 +312,10 @@ en:
no_comment: "(no comment)" no_comment: "(no comment)"
part_of: "Part of" part_of: "Part of"
part_of_relations: part_of_relations:
one: 1 relation one: "%{count} relation"
other: "%{count} relations" other: "%{count} relations"
part_of_ways: part_of_ways:
one: 1 way one: "%{count} way"
other: "%{count} ways" other: "%{count} ways"
download_xml: "Download XML" download_xml: "Download XML"
view_history: "View History" view_history: "View History"
@ -360,7 +360,7 @@ en:
history_title_html: "Relation History: %{name}" history_title_html: "Relation History: %{name}"
members: "Members" members: "Members"
members_count: members_count:
one: 1 member one: "%{count} member"
other: "%{count} members" other: "%{count} members"
relation_member: relation_member:
entry_html: "%{type} %{name}" entry_html: "%{type} %{name}"
@ -1391,7 +1391,7 @@ en:
last_updated_time_user_html: "<abbr title='%{title}'>%{time}</abbr> by %{user}" last_updated_time_user_html: "<abbr title='%{title}'>%{time}</abbr> by %{user}"
link_to_reports: View Reports link_to_reports: View Reports
reports_count: reports_count:
one: "1 Report" one: "%{count} Report"
other: "%{count} Reports" other: "%{count} Reports"
reported_item: Reported Item reported_item: Reported Item
states: states:
@ -1402,7 +1402,7 @@ en:
title: "%{status} Issue #%{issue_id}" title: "%{status} Issue #%{issue_id}"
reports: reports:
zero: No reports zero: No reports
one: 1 report one: "%{count} report"
other: "%{count} reports" other: "%{count} reports"
report_created_at: "First reported at %{datetime}" report_created_at: "First reported at %{datetime}"
last_resolved_at: "Last resolved at %{datetime}" last_resolved_at: "Last resolved at %{datetime}"
@ -1552,9 +1552,9 @@ en:
subject: "[OpenStreetMap] GPX Import failure" subject: "[OpenStreetMap] GPX Import failure"
gpx_success: gpx_success:
hi: "Hi %{to_user}," hi: "Hi %{to_user},"
loaded_successfully: loaded:
one: loaded successfully with %{trace_points} out of a possible 1 point. one: "loaded successfully with %{trace_points} out of a possible %{count} point."
other: loaded successfully with %{trace_points} out of a possible %{possible_points} points. other: "loaded successfully with %{trace_points} out of a possible %{count} points."
subject: "[OpenStreetMap] GPX Import success" subject: "[OpenStreetMap] GPX Import success"
signup_confirm: signup_confirm:
subject: "[OpenStreetMap] Welcome to OpenStreetMap" subject: "[OpenStreetMap] Welcome to OpenStreetMap"
@ -2368,7 +2368,7 @@ en:
trace: trace:
pending: "PENDING" pending: "PENDING"
count_points: count_points:
one: "1 point" one: "%{count} point"
other: "%{count} points" other: "%{count} points"
more: "more" more: "more"
trace_details: "View Trace Details" trace_details: "View Trace Details"
@ -2746,19 +2746,19 @@ en:
time_past_html: "Ended %{time}." time_past_html: "Ended %{time}."
block_duration: block_duration:
hours: hours:
one: "1 hour" one: "%{count} hour"
other: "%{count} hours" other: "%{count} hours"
days: days:
one: "1 day" one: "%{count} day"
other: "%{count} days" other: "%{count} days"
weeks: weeks:
one: "1 week" one: "%{count} week"
other: "%{count} weeks" other: "%{count} weeks"
months: months:
one: "1 month" one: "%{count} month"
other: "%{count} months" other: "%{count} months"
years: years:
one: "1 year" one: "%{count} year"
other: "%{count} years" other: "%{count} years"
blocks_on: blocks_on:
title: "Blocks on %{name}" title: "Blocks on %{name}"
@ -2874,10 +2874,10 @@ en:
locate: locate:
title: Show My Location title: Show My Location
metersPopup: metersPopup:
one: You are within one meter of this point one: You are within %{count} meter of this point
other: You are within %{count} meters of this point other: You are within %{count} meters of this point
feetPopup: feetPopup:
one: You are within one foot of this point one: You are within %{count} foot of this point
other: You are within %{count} feet of this point other: You are within %{count} feet of this point
base: base:
standard: Standard standard: Standard