fix #1296 by adding translate functions to mobile view of todo

This commit is contained in:
Reinier Balt 2012-07-11 16:46:18 +02:00
parent 48cc8740cb
commit f9dc8c6969
3 changed files with 13 additions and 11 deletions

View file

@ -1,39 +1,39 @@
<h2>Description</h2>
<h2><%= t('common.description') %></h2>
<%= @todo.description %><br/>
<h2>Actions</h2>
<h2><Actions><%= t('common.actions') %></h2>
<form method="get" action="<%= edit_todo_path(@todo, :format => :m)%>">
<button>Edit this action</button>
<button><%=t('todos.edit_action')%></button>
<input type="hidden" name="_method" value="put" />
</form>
<form method="post" action="<%=toggle_star_todo_path(@todo, :format=>:m)%>">
<button>Toggle Star</button>
<button><%=t('todos.star_action')%></button>
<input type="hidden" name="_method" value="put" />
</form>
<form method="post" action="<%=toggle_check_todo_path(@todo, :format=>:m)%>">
<button>Mark complete</button>
<button><%= t('todos.mark_complete')%></button>
<input type="hidden" name="_method" value="put" />
</form>
<form method="post" action="<%=defer_todo_path(@todo, :format=>:m, :days => 1)%>">
<button>Defer 1 day</button>
<button><%=t('todos.defer_x_days', :count => 1)%></button>
<input type="hidden" name="_method" value="put" />
</form>
<form method="post" action="<%=defer_todo_path(@todo, :format=>:m, :days => 2)%>">
<button>Defer 2 days</button>
<button><%=t('todos.defer_x_days', :count => 2)%></button>
<input type="hidden" name="_method" value="put" />
</form>
<form method="post" action="<%=defer_todo_path(@todo, :format=>:m, :days => 3)%>">
<button>Defer 3 days</button>
<button><%=t('todos.defer_x_days', :count => 3)%></button>
<input type="hidden" name="_method" value="put" />
</form>
<form method="post" action="<%=defer_todo_path(@todo, :format=>:m, :days => 7)%>">
<button>Defer 7 days</button>
<button><%=t('todos.defer_x_days', :count => 7)%></button>
<input type="hidden" name="_method" value="put" />
</form>

View file

@ -359,7 +359,7 @@ en:
action_selection_title: TRACKS::Action selection
todos:
show_from: Show from
error_starring_recurring: Could not toggle the star of recurring todo \'%{description}\'
error_starring_recurring: "Could not toggle the star of recurring todo \'%{description}\'"
recurring_action_deleted: Action was deleted. Because this action is recurring, a new action was added
completed_actions: Completed actions
completed_recurring: Completed recurring todos
@ -371,7 +371,7 @@ en:
defer_date_after_due_date: Defer date is after due date. Please edit and adjust due date before deferring.
unable_to_add_dependency: Unable to add dependency
done: Done?
star_action_with_description: star the action '%{description}'
star_action_with_description: "star the action '%{description}'"
tagged_with: tagged with &lsquo;%{tag_name}&rsquo;
completed: Completed
no_deferred_actions_with: No deferred actions with the tag '%{tag_name}'
@ -501,6 +501,7 @@ en:
show_tomorrow: Show Tomorrow
tagged_page_title: TRACKS::Tagged with '%{tag_name}'
action_deferred: The action '%{description}' was deferred
mark_complete: Mark complete
recurrence:
ends_on_number_times: Ends after %{number} times
ends_on_date: Ends on %{date}

View file

@ -347,6 +347,7 @@ nl:
totals_hidden_project_count: "%{count} zijn verborgen"
time_of_day: Tijd van de dag (alle acties)
todos:
mark_complete: Markeer gereed
recurring_action_deleted: Actie werd verwijderd. Omdat deze actie herhalend is. werd een nieuwe actie toegevoegd
show_from: Toon vanaf
error_starring_recurring: Kon niet de ster van deze terugkerende actie niet omzetten \'%{description}\'