aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoris Guyonvarch2015-08-12 21:19:09 +0200
committerJoris Guyonvarch2015-08-12 21:19:09 +0200
commit4a159677c213e0440266b1e35f8d00e93df9f334 (patch)
tree8a9f959e4a8f158b35cc05b15468153bea541248
parentf8c5ce08352950f4e74f3c51aa16ef366a9de9c7 (diff)
Translating the page title too
-rw-r--r--src/server/View/Page.hs5
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"