Skip to content

Commit

Permalink
Fix translation
Browse files Browse the repository at this point in the history
  • Loading branch information
Dumazeau committed Jul 5, 2021
1 parent 5ade88b commit b7c1a64
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
6 changes: 3 additions & 3 deletions elm/Internal/CookiesRegulationBandeau.elm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 11 additions & 1 deletion elm/Internal/Translations.elm
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down

0 comments on commit b7c1a64

Please sign in to comment.