Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit f9dc8c6969e41682460c25d0225920c9b367e1b3 1 parent 48cc874
@lrbalt lrbalt authored
View
18 app/views/todos/show.m.erb
@@ -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
5 config/locales/en.yml
@@ -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
1  config/locales/nl.yml
@@ -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}\'
Please sign in to comment.
Something went wrong with that request. Please try again.