Translate to Catalan

This commit is contained in:
ricola 2025-04-06 17:04:31 -06:00
parent 3fa8c69a49
commit e826d79240
12 changed files with 502 additions and 110 deletions

View file

@ -1,42 +1,42 @@
<h1>Edit draft vote</h1>
<h1><%= _("Edit draft vote") %></h1>
<form action="/votes/<%= @vote.secure_id %>/edit" method="post">
<p>
<label for="title">Title</label>
<label for="title"><%= _("Title") %></label>
<input type="text" name="title" value="<%= @vote.title %>">
</p>
<p>
<label for="description">Description</label>
<label for="description"><%= _("Description") %></label>
<input type="text" name="description" value="<%= @vote.description %>">
</p>
<button type="submit">Update vote description</button>
<button type="submit"><%= _("Save") %></button>
</form>
<h2>Candidates</h2>
<h2><%= _("Candidates") %></h2>
<% @vote.candidates.each do |candidate| %>
<h3><%= candidate.name %></h3>
<p><%= candidate.description %></p>
<form action="/votes/<%= @vote.secure_id %>/candidates/<%= candidate.id %>/delete" method="post">
<button type="submit">Delete candidate</button>
<button type="submit"><%= _("Delete") %></button>
</form>
<% end %>
<h3>Add candidate</h3>
<h3><%= _("Add candidate") %></h3>
<form action="/votes/<%= @vote.secure_id %>/candidates" method="post">
<p>
<label for="name">Name</label>
<label for="name"><%= _("Name") %></label>
<input type="text" name="name">
</p>
<p>
<label for="description">Description</label>
<label for="description"><%= _("Description") %></label>
<input type="text" name="description">
</p>
<button type="submit">Add new candidate</button>
<button type="submit"><%= _("Add") %></button>
</form>
<h2>Organizers</h2>
<h2><%= _("Organizers") %></h2>
<ul>
<% @vote.organizers.each do |organizer| %>
@ -44,21 +44,21 @@
<% end %>
</ul>
<h3>Add organizer</h3>
<h3><%= _("Add organizer") %></h3>
<form action="/votes/<%= @vote.secure_id %>/organizers" method="post">
<p>
<label for="email">Email</label>
<label for="email"><%= _("Email") %></label>
<input type="text" name="email">
</p>
<button type="submit">Add new organizer</button>
<button type="submit"><%= _("Add") %></button>
</form>
<h3>Actions for organizers</h2>
<h3><%= _("Actions for organizers") %></h2>
<form action="/votes/<%= @vote.secure_id %>/open" method="post">
<button type="submit">Open vote to participants</button>
<button type="submit"><%= _("Open vote to participants") %></button>
</form>
<form action="/votes/<%= @vote.secure_id %>/delete" method="post">
<button type="submit">Delete vote</button>
<button type="submit"><%= _("Delete vote") %></button>
</form>