Skip to content

Commit

Permalink
Translate workout add page
Browse files Browse the repository at this point in the history
Signed-off-by: Jo Vandeginste <[email protected]>
  • Loading branch information
jovandeginste committed Feb 22, 2024
1 parent 95f05c9 commit ca55297
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
8 changes: 7 additions & 1 deletion translations/messages.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
{
"Add a workout": "Add a workout",
"Add workout": "Add workout",
"Add workouts": "Add workouts",
"Average speed": "Average speed",
"Average speed (no pause)": "Average speed (no pause)",
"Create a new account": "Create a new account",
"Dashboard": "Dashboard",
"Dashboard for %s": "Dashboard for %s",
"Distance": "Distance",
"Duration": "Duration",
"File": "File",
"Logout": "Logout",
"Manage": "Manage",
"Max speed": "Max speed",
"Name": "Name",
"Notes": "Notes",
"Other users": "Other users",
"Password": "Password",
"Recent activity": "Recent activity",
Expand All @@ -21,11 +25,13 @@
"Total distance": "Total distance",
"Total duration": "Total duration",
"Total up": "Total up",
"Type": "Type",
"Username (email)": "Username (email)",
"Welcome!": "Welcome!",
"Workouts": "Workouts",
"Your progress the past year": "Your progress the past year",
"distance": "distance",
"duration": "duration",
"up": "up"
"up": "up",
"workouts": "workouts"
}
8 changes: 7 additions & 1 deletion translations/nl.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
{
"Add a workout": "Voeg een workout toe",
"Add workout": "Workout toevoegen",
"Add workouts": "Workouts toevoegen",
"Average speed": "Gemiddelde snelheid",
"Average speed (no pause)": "Gemiddelde snelheid (zonder pauze)",
"Create a new account": "Maak een nieuwe account",
"Dashboard": "Dashboard",
"Dashboard for %s": "Dashboard voor %s",
"Distance": "Afstand",
"Duration": "Duur",
"File": "Bestand",
"Logout": "Afmelden",
"Manage": "Beheer",
"Max speed": "Maximale snelheid",
"Name": "Naam",
"Notes": "Notities",
"Other users": "Andere gebruikers",
"Password": "Wachtwoord",
"Recent activity": "Recente activiteit",
Expand All @@ -21,11 +25,13 @@
"Total distance": "Totale afstand",
"Total duration": "Totale duur",
"Total up": "Totaal omhoog",
"Type": "Type",
"Username (email)": "Gebruikersnaam (e-mailadres)",
"Welcome!": "Welkom!",
"Workouts": "Workouts",
"Your progress the past year": "Jouw vooruitgang afgelopen jaar",
"distance": "afstand",
"duration": "duur",
"up": "omhoog"
"up": "omhoog",
"workouts": "workouts"
}
12 changes: 7 additions & 5 deletions views/workouts/workouts_add.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{{ template "header" . }}
<div class="content">
<div class="inner-form">
<h2 class="{{ IconFor `workout-add` }}">Add a workout</h2>
<h2 class="{{ IconFor `workout-add` }}">{{ i18n "Add a workout" }}</h2>
<form
method="post"
action="{{ RouteFor `workouts-create` }}"
Expand All @@ -15,7 +15,7 @@ <h2 class="{{ IconFor `workout-add` }}">Add a workout</h2>
<table>
<tbody>
<tr>
<td><label for="file">File</label></td>
<td><label for="file">{{ i18n "File" }}</label></td>
<td>
<input
type="file"
Expand All @@ -28,7 +28,7 @@ <h2 class="{{ IconFor `workout-add` }}">Add a workout</h2>
</tr>
<tr>
<td>
<label for="type">Type</label>
<label for="type">{{ i18n "Type" }}</label>
</td>
<td>
<input
Expand All @@ -42,7 +42,7 @@ <h2 class="{{ IconFor `workout-add` }}">Add a workout</h2>
</tr>
<tr>
<td>
<label for="notes">Notes</label>
<label for="notes">{{ i18n "Notes" }}</label>
</td>
<td>
<textarea
Expand All @@ -55,7 +55,9 @@ <h2 class="{{ IconFor `workout-add` }}">Add a workout</h2>
</tr>
<tr>
<td></td>
<td><button type="submit">Add workouts</button></td>
<td>
<button type="submit">{{ i18n "Add workouts" }}</button>
</td>
</tr>
</tbody>
</table>
Expand Down

0 comments on commit ca55297

Please sign in to comment.