Translate to Catalan
This commit is contained in:
parent
3fa8c69a49
commit
e826d79240
12 changed files with 502 additions and 110 deletions
|
|
@ -1,25 +1,23 @@
|
|||
<h1>Home</h1>
|
||||
<h1><%= _("Home") %></h1>
|
||||
|
||||
<p>Hello, <%= current_user.email %>.</p>
|
||||
|
||||
<h2>Votes</h2>
|
||||
<h2><%= _("Votes") %></h2>
|
||||
|
||||
<ul>
|
||||
<% @votes.reverse.each do |vote| %>
|
||||
<li>
|
||||
<a href="/votes/<%= vote.secure_id %>"><%= vote.title %></a>
|
||||
<% case vote.state
|
||||
when "draft" %>
|
||||
<% if vote.users.exists?(current_user.id) %>(Draft, organized by you)
|
||||
<% else %>(Draft)
|
||||
when 'draft' %>
|
||||
<% if vote.users.exists?(current_user.id) %><%= _("(Draft, organized by you)") %>
|
||||
<% else %><%= _("(Draft)") %>
|
||||
<% end %>
|
||||
<% when "open" %>
|
||||
<% if vote.users.exists?(current_user.id) %>(Open, organized by you)
|
||||
<% else %>(Open)
|
||||
<% when 'open' %>
|
||||
<% if vote.users.exists?(current_user.id) %><%= _("(Open, organized by you)") %>
|
||||
<% else %><%= _("(Open)") %>
|
||||
<% end %>
|
||||
<% when "closed" %>
|
||||
<% if vote.users.exists?(current_user.id) %>(Closed, organized by you)
|
||||
<% else %>(Closed)
|
||||
<% when 'closed' %>
|
||||
<% if vote.users.exists?(current_user.id) %><%= _("(Closed, organized by you)") %>
|
||||
<% else %><%= _("(Closed)") %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</li>
|
||||
|
|
@ -27,5 +25,5 @@
|
|||
</ul>
|
||||
|
||||
<form action="/votes/new" method="get">
|
||||
<button type="submit">Create new vote</button>
|
||||
<button type="submit"><%= _("Create new vote") %></button>
|
||||
</form>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue