Fix translations
This commit is contained in:
parent
8d8bce3207
commit
507a8dfaea
3 changed files with 4 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
<h1><%= _("Open vote") %></h1>
|
<h1><%= _("Open vote") %></h1>
|
||||||
|
|
||||||
<p><%= _("Closing date: %{date}" % { date: format_date_and_time(@expire_on) }) %></p>
|
<p><%= _("Closing date: %{date}") % { date: format_date_and_time(@expire_on) } %></p>
|
||||||
|
|
||||||
<p><%= _("The vote will automatically close on that date and the results will
|
<p><%= _("The vote will automatically close on that date and the results will
|
||||||
be sent to all users by email.") %></p>
|
be sent to all users by email.") %></p>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<h1><%= @vote.title %></h1>
|
<h1><%= @vote.title %></h1>
|
||||||
|
|
||||||
<% if @vote.expire_on %>
|
<% if @vote.expire_on %>
|
||||||
<p><%= _("Closing date: %{date}" % { date: format_date_and_time(@vote.expire_on) }) %></p>
|
<p><%= _("Closing date: %{date}") % { date: format_date_and_time(@vote.expire_on) } %></p>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= markdown(@vote.description) %>
|
<%= markdown(@vote.description) %>
|
||||||
|
|
|
||||||
|
|
@ -3,13 +3,13 @@
|
||||||
<% if @errors %>
|
<% if @errors %>
|
||||||
<% @errors.each do |error| %>
|
<% @errors.each do |error| %>
|
||||||
<% if error.attribute == :rating and error.type == :blank %>
|
<% if error.attribute == :rating and error.type == :blank %>
|
||||||
<p class="error"><%= _("Missing rating for candidate <i>%{name}</i>." % { name: error.candidate.name }) %></p>
|
<p class="error"><%= _("Missing rating for candidate <i>%{name}</i>.") % { name: error.candidate.name } %></p>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if @vote.expire_on %>
|
<% if @vote.expire_on %>
|
||||||
<p><%= _("Closing date: %{date}" % { date: format_date_and_time(@vote.expire_on) }) %></p>
|
<p><%= _("Closing date: %{date}") % { date: format_date_and_time(@vote.expire_on) } %></p>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= markdown(@vote.description) %>
|
<%= markdown(@vote.description) %>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue