diff --git a/yesod-form/ChangeLog.md b/yesod-form/ChangeLog.md index fd6f0c87..8cfb6a81 100644 --- a/yesod-form/ChangeLog.md +++ b/yesod-form/ChangeLog.md @@ -1,5 +1,9 @@ # ChangeLog for yesod-form +## 1.7.5 + +* Add Romanian translation [#1801](https://github.com/yesodweb/yesod/pull/1801) + ## 1.7.4 * Added a `Monad AForm` instance only when `transformers` >= 0.6 [#1795](https://github.com/yesodweb/yesod/pull/1795) diff --git a/yesod-form/Yesod/Form/I18n/Romanian.hs b/yesod-form/Yesod/Form/I18n/Romanian.hs new file mode 100644 index 00000000..53f9d55b --- /dev/null +++ b/yesod-form/Yesod/Form/I18n/Romanian.hs @@ -0,0 +1,30 @@ +{-# LANGUAGE OverloadedStrings #-} +module Yesod.Form.I18n.Romanian where + +import Yesod.Form.Types (FormMessage (..)) +import Data.Monoid (mappend) +import Data.Text (Text) + +-- | Romanian translation +-- +-- @since 1.7.5 +romanianFormMessage :: FormMessage -> Text +romanianFormMessage (MsgInvalidInteger t) = "Număr întreg nevalid: " `Data.Monoid.mappend` t +romanianFormMessage (MsgInvalidNumber t) = "Număr nevalid: " `mappend` t +romanianFormMessage (MsgInvalidEntry t) = "Valoare nevalidă: " `mappend` t +romanianFormMessage MsgInvalidTimeFormat = "Oră nevalidă. Formatul necesar este HH:MM[:SS]" +romanianFormMessage MsgInvalidDay = "Dată nevalidă. Formatul necesar este AAAA-LL-ZZ" +romanianFormMessage (MsgInvalidUrl t) = "Adresă URL nevalidă: " `mappend` t +romanianFormMessage (MsgInvalidEmail t) = "Adresă de e-mail nevalidă: " `mappend` t +romanianFormMessage (MsgInvalidHour t) = "Oră nevalidă: " `mappend` t +romanianFormMessage (MsgInvalidMinute t) = "Minut nevalid: " `mappend` t +romanianFormMessage (MsgInvalidSecond t) = "Secundă nevalidă: " `mappend` t +romanianFormMessage MsgCsrfWarning = "Ca protecție împotriva atacurilor CSRF, vă rugăm să confirmați trimiterea formularului." +romanianFormMessage MsgValueRequired = "Câmp obligatoriu" +romanianFormMessage (MsgInputNotFound t) = "Valoare inexistentă: " `mappend` t +romanianFormMessage MsgSelectNone = "" +romanianFormMessage (MsgInvalidBool t) = "Valoare booleană nevalidă: " `mappend` t +romanianFormMessage MsgBoolYes = "Da" +romanianFormMessage MsgBoolNo = "Nu" +romanianFormMessage MsgDelete = "Șterge?" +romanianFormMessage (MsgInvalidHexColorFormat t) = "Culoare nevalidă. Formatul necesar este #rrggbb în hexazecimal: " `mappend` t diff --git a/yesod-form/yesod-form.cabal b/yesod-form/yesod-form.cabal index ee4adb7c..52f8973f 100644 --- a/yesod-form/yesod-form.cabal +++ b/yesod-form/yesod-form.cabal @@ -1,6 +1,6 @@ cabal-version: >= 1.10 name: yesod-form -version: 1.7.4 +version: 1.7.5 license: MIT license-file: LICENSE author: Michael Snoyman @@ -67,6 +67,7 @@ library Yesod.Form.I18n.Spanish Yesod.Form.I18n.Chinese Yesod.Form.I18n.Korean + Yesod.Form.I18n.Romanian -- FIXME Yesod.Helpers.Crud ghc-options: -Wall