diff --git a/translations/messages.json b/translations/messages.json index d79cc124..fa0d5123 100644 --- a/translations/messages.json +++ b/translations/messages.json @@ -21,5 +21,9 @@ "Total up": "Total up", "Username (email)": "Username (email)", "Welcome!": "Welcome!", - "Workouts": "Workouts" + "Workouts": "Workouts", + "distance": "distance", + "duration": "duration", + "up": "up", + "workouts ": "workouts " } diff --git a/translations/nl.json b/translations/nl.json index 16f6cdbf..561386ca 100644 --- a/translations/nl.json +++ b/translations/nl.json @@ -21,5 +21,9 @@ "Total up": "Totaal omhoog", "Username (email)": "Gebruikersnaam (e-mailadres)", "Welcome!": "Welkom!", - "Workouts": "Workouts" + "Workouts": "Workouts", + "distance": "afstand", + "duration": "duur", + "up": "omhoog", + "workouts ": "workouts " } diff --git a/views/partials/stats_records_totals.html b/views/partials/stats_records_totals.html index 34b5e1ef..1eb4aacd 100644 --- a/views/partials/stats_records_totals.html +++ b/views/partials/stats_records_totals.html @@ -1,11 +1,11 @@ {{ define "stats_records_total" }}
- {{ template "statistic_tile" (BuildDecoratedAttribute "workout" ( i18n - "workouts" ) .Workouts) }} {{ template "statistic_tile" - (BuildDecoratedAttribute "distance" ( i18n "distance" ) (.Distance | - ToKilometer )) }} {{ template "statistic_tile" (BuildDecoratedAttribute "up" ( - i18n "up" ) (.Up | HumanDistance)) }} {{ template "statistic_tile" - (BuildDecoratedAttribute "duration" ( i18n "duration" ) (.Duration | - HumanDuration)) }} + {{ $di := i18n "distance" }} {{ $w := i18n "workouts "}} {{ $u := i18n "up" }} + {{ $du := i18n "duration" }} {{ template "statistic_tile" + (BuildDecoratedAttribute "workout" $w .Workouts) }} {{ template + "statistic_tile" (BuildDecoratedAttribute "distance" $di (.Distance | + ToKilometer )) }} {{ template "statistic_tile" (BuildDecoratedAttribute "up" + $u (.Up | HumanDistance)) }} {{ template "statistic_tile" + (BuildDecoratedAttribute "duration" $du (.Duration | HumanDuration)) }}
{{ end }}