Skip to content

Commit 1129a31

Browse files
author
Peter Giacomo Lombardo
committed
Translate push validation error title with gettext.
Fixes #4447
1 parent 058d1b2 commit 1129a31

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/views/pushes/_error.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<% if push.errors.any? %>
22
<div class="alert alert-danger">
3-
<div><%= pluralize(push.errors.count, "error") %> prohibited this push from being saved:</div>
3+
<div><%= n_("%{count} error prohibited this push from being saved:", "%{count} errors prohibited this push from being saved:", push.errors.count) % { count: push.errors.count } %></div>
44

55
<ul>
66
<% push.errors.full_messages.each do |error| %>

0 commit comments

Comments
 (0)