Swedish FormMessages.
This commit is contained in:
parent
9eef4829ad
commit
392e47e1aa
26
yesod-form/Yesod/Form/I18n/Swedish.hs
Normal file
26
yesod-form/Yesod/Form/I18n/Swedish.hs
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
{-# LANGUAGE OverloadedStrings #-}
|
||||||
|
module Yesod.Form.I18n.Swedish where
|
||||||
|
|
||||||
|
import Yesod.Form.Types (FormMessage (..))
|
||||||
|
import Data.Monoid (mappend)
|
||||||
|
import Data.Text (Text)
|
||||||
|
|
||||||
|
swedishFormMessage :: FormMessage -> Text
|
||||||
|
swedishFormMessage (MsgInvalidInteger t) = "Ogiltigt antal: " `mappend` t
|
||||||
|
swedishFormMessage (MsgInvalidNumber t) = "Ogiltigt nummer: " `mappend` t
|
||||||
|
swedishFormMessage (MsgInvalidEntry t) = "Invalid entry: " `mappend` t
|
||||||
|
swedishFormMessage MsgInvalidTimeFormat = "Ogiltigt klockslag, måste vara på formatet HH:MM[:SS]"
|
||||||
|
swedishFormMessage MsgInvalidDay = "Ogiltigt datum, måste vara på formatet ÅÅÅÅ-MM-DD"
|
||||||
|
swedishFormMessage (MsgInvalidUrl t) = "Ogiltig URL: " `mappend` t
|
||||||
|
swedishFormMessage (MsgInvalidEmail t) = "Ogiltig epostadress: " `mappend` t
|
||||||
|
swedishFormMessage (MsgInvalidHour t) = "Ogiltig timme: " `mappend` t
|
||||||
|
swedishFormMessage (MsgInvalidMinute t) = "Ogiltig minut: " `mappend` t
|
||||||
|
swedishFormMessage (MsgInvalidSecond t) = "Ogiltig sekund: " `mappend` t
|
||||||
|
swedishFormMessage MsgValueRequired = "Fältet är obligatoriskt"
|
||||||
|
swedishFormMessage (MsgInputNotFound t) = "Fältet hittades ej: " `mappend` t
|
||||||
|
swedishFormMessage MsgSelectNone = "<Ingenting>"
|
||||||
|
swedishFormMessage (MsgInvalidBool t) = "Ogiltig boolesk: " `mappend` t
|
||||||
|
swedishFormMessage MsgBoolYes = "Ja"
|
||||||
|
swedishFormMessage MsgBoolNo = "Nej"
|
||||||
|
swedishFormMessage MsgDelete = "Radera?"
|
||||||
|
swedishFormMessage MsgCsrfWarning = "Som skydd mot \"cross-site request forgery\" attacker, vänligen bekräfta skickandet av formuläret."
|
||||||
@ -43,6 +43,7 @@ library
|
|||||||
Yesod.Form.Nic
|
Yesod.Form.Nic
|
||||||
Yesod.Form.MassInput
|
Yesod.Form.MassInput
|
||||||
Yesod.Form.I18n.English
|
Yesod.Form.I18n.English
|
||||||
|
Yesod.Form.I18n.Swedish
|
||||||
-- FIXME Yesod.Helpers.Crud
|
-- FIXME Yesod.Helpers.Crud
|
||||||
ghc-options: -Wall
|
ghc-options: -Wall
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user