From b7c1a6450ac6247eab73b4e5382544467620b3b6 Mon Sep 17 00:00:00 2001 From: Dumazeau Date: Mon, 5 Jul 2021 15:41:12 +0200 Subject: [PATCH] Fix translation --- elm/Internal/CookiesRegulationBandeau.elm | 6 +++--- elm/Internal/Translations.elm | 12 +++++++++++- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/elm/Internal/CookiesRegulationBandeau.elm b/elm/Internal/CookiesRegulationBandeau.elm index 31e7fb0..35f1fb1 100644 --- a/elm/Internal/CookiesRegulationBandeau.elm +++ b/elm/Internal/CookiesRegulationBandeau.elm @@ -20,9 +20,9 @@ view model = ] [ div [ class "cookies-regulation-bandeau-contents" ] [ span [ class "cookies-regulation-description" ] [ text <| Trans.bandeau_cookies_regulation model.local ] - , Button.view { label = "Personnaliser", type_ = Button.Secondary, disabled = False, msg = MsgOpenModal } - , Button.view { label = "Tout accepter", type_ = Button.Primary, disabled = False, msg = MsgBandeauAcceptAll } - , Button.view { label = "Tout refuser", type_ = Button.Primary, disabled = False, msg = MsgBandeauRejectAll } + , Button.view { label = Trans.bandeau_customise model.local, type_ = Button.Secondary, disabled = False, msg = MsgOpenModal } + , Button.view { label = Trans.modal_accept_all model.local, type_ = Button.Primary, disabled = False, msg = MsgBandeauAcceptAll } + , Button.view { label = Trans.modal_reject_all model.local, type_ = Button.Primary, disabled = False, msg = MsgBandeauRejectAll } , a [ class "cookies-regulation-privacy-policy" , href model.privacyPolicy.url diff --git a/elm/Internal/Translations.elm b/elm/Internal/Translations.elm index 5a68b1d..511ec43 100644 --- a/elm/Internal/Translations.elm +++ b/elm/Internal/Translations.elm @@ -1,4 +1,4 @@ -module Internal.Translations exposing (Local(..), bandeau_cookies_regulation, modal_accept_all, modal_cookie_conservation, modal_cookies_with_agreement, modal_cookies_without_agreement, modal_reject_all, modal_related_companies_link_label, modal_related_companies_use_cookies, modal_save_my_choices, modal_title, modal_user_choices_change, modal_user_choices_conservation_duration) +module Internal.Translations exposing (Local(..), bandeau_cookies_regulation, bandeau_customise, modal_accept_all, modal_cookie_conservation, modal_cookies_with_agreement, modal_cookies_without_agreement, modal_reject_all, modal_related_companies_link_label, modal_related_companies_use_cookies, modal_save_my_choices, modal_title, modal_user_choices_change, modal_user_choices_conservation_duration) type Local @@ -16,6 +16,16 @@ bandeau_cookies_regulation local = "Contrôlez les cookies que nous utilisons pour ce site..." +bandeau_customise : Local -> String +bandeau_customise local = + case local of + En -> + "Customise" + + Fr -> + "Personnaliser" + + modal_accept_all : Local -> String modal_accept_all local = case local of