From c8ea1a79f20d2a94fb2e3c860f5790951b2f43b0 Mon Sep 17 00:00:00 2001 From: Tait Hoyem Date: Mon, 17 Apr 2023 13:44:58 -0600 Subject: [PATCH] Add more translations --- src/main.rs | 2 +- templates/partials/box_score_table.html | 4 ++-- templates/partials/play_by_play_table.html | 6 +++--- translations/en-CA/terms.ftl | 2 ++ translations/fr-CA/terms.ftl | 2 ++ 5 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/main.rs b/src/main.rs index 06afe3c..2ec41f7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -28,7 +28,7 @@ use sqlx::{Pool, Postgres}; use std::net::SocketAddr; use std::sync::Arc; -const VERSION: &str = "0.3.0"; +const VERSION: &str = "0.3.2"; #[derive(Template)] #[template(path = "hello.html")] diff --git a/templates/partials/box_score_table.html b/templates/partials/box_score_table.html index 33ab5ff..6475407 100644 --- a/templates/partials/box_score_table.html +++ b/templates/partials/box_score_table.html @@ -20,14 +20,14 @@ {% if goal.first_assist_name.is_some() %} {{ goal.first_assist_name.as_ref().unwrap() }} {% else %} - unassisted + {{ localize("unassisted") }} {% endif %} {% if goal.second_assist_name.is_some() %} {{ goal.second_assist_name.as_ref().unwrap() }} {% else %} - N/A + {{ localize("not-applicable") }} {% endif %} diff --git a/templates/partials/play_by_play_table.html b/templates/partials/play_by_play_table.html index e6cfb62..09ef543 100644 --- a/templates/partials/play_by_play_table.html +++ b/templates/partials/play_by_play_table.html @@ -29,17 +29,17 @@ {% if shot.first_assist_name.is_some() %} {{ shot.first_assist_name.as_ref().unwrap() }} {% else %} - unassisted + {{ localize("unassisted") }} {% endif %} {% else %} - N/A + {{ localize("not-applicable") }} {% endif %} {% if shot.second_assist_name.is_some() %} {{ shot.second_assist_name.as_ref().unwrap() }} {% else %} - N/A + {{ localize("not-applicable") }} {% endif %} diff --git a/translations/en-CA/terms.ftl b/translations/en-CA/terms.ftl index a9ba81f..ff7c838 100644 --- a/translations/en-CA/terms.ftl +++ b/translations/en-CA/terms.ftl @@ -1,4 +1,6 @@ game-of-division = { $game } of the { $division } +unassisted = unassisted +not-applicable = N/A no-games = No games have been recorded. play-by-play = play-by-play box-score = box score diff --git a/translations/fr-CA/terms.ftl b/translations/fr-CA/terms.ftl index b9d6136..01113af 100644 --- a/translations/fr-CA/terms.ftl +++ b/translations/fr-CA/terms.ftl @@ -1,4 +1,6 @@ game-of-division = { $game } de le { $division } +unassisted = non assisté +not-applicable = S/O no-games = Aucun match n’a été enregistré. play-by-play = jeu-par-jeu box-score = score de la boîte