diff options
author | Joris Guyonvarch | 2015-08-12 21:19:09 +0200 |
---|---|---|
committer | Joris Guyonvarch | 2015-08-12 21:19:09 +0200 |
commit | 4a159677c213e0440266b1e35f8d00e93df9f334 (patch) | |
tree | 8a9f959e4a8f158b35cc05b15468153bea541248 /src | |
parent | f8c5ce08352950f4e74f3c51aa16ef366a9de9c7 (diff) |
Translating the page title too
Diffstat (limited to 'src')
-rw-r--r-- | src/server/View/Page.hs | 5 |
1 files 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" |