From 4a159677c213e0440266b1e35f8d00e93df9f334 Mon Sep 17 00:00:00 2001 From: Joris Guyonvarch Date: Wed, 12 Aug 2015 21:19:09 +0200 Subject: Translating the page title too --- src/server/View/Page.hs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/server/View/Page.hs b/src/server/View/Page.hs index e0b924b..41c9b73 100644 --- a/src/server/View/Page.hs +++ b/src/server/View/Page.hs @@ -17,14 +17,15 @@ import Text.Blaze.Html.Renderer.Text (renderHtml) import Design.Global (globalDesign) -import Model.Message (getTranslations) +import Model.Message +import Model.Message.Key (Key(SharedCost)) page :: Text page = renderHtml . docTypeHtml $ do H.head $ do meta ! charset "UTF-8" - H.title "Shared Cost" + H.title (toHtml $ getMessage SharedCost) script ! src "javascripts/client.js" $ "" script ! A.id "messages" ! type_ "application/json" $ toHtml . decodeUtf8 . encode $ getTranslations link ! rel "stylesheet" ! type_ "text/css" ! href "css/reset.css" -- cgit v1.2.3