Add Romanian translation for yesod-form (#1801)
This commit is contained in:
parent
ccfd77192e
commit
197ecb409f
@ -1,5 +1,9 @@
|
|||||||
# ChangeLog for yesod-form
|
# ChangeLog for yesod-form
|
||||||
|
|
||||||
|
## 1.7.5
|
||||||
|
|
||||||
|
* Add Romanian translation [#1801](https://github.com/yesodweb/yesod/pull/1801)
|
||||||
|
|
||||||
## 1.7.4
|
## 1.7.4
|
||||||
|
|
||||||
* Added a `Monad AForm` instance only when `transformers` >= 0.6 [#1795](https://github.com/yesodweb/yesod/pull/1795)
|
* Added a `Monad AForm` instance only when `transformers` >= 0.6 [#1795](https://github.com/yesodweb/yesod/pull/1795)
|
||||||
|
|||||||
30
yesod-form/Yesod/Form/I18n/Romanian.hs
Normal file
30
yesod-form/Yesod/Form/I18n/Romanian.hs
Normal file
@ -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 = "<Niciuna>"
|
||||||
|
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
|
||||||
@ -1,6 +1,6 @@
|
|||||||
cabal-version: >= 1.10
|
cabal-version: >= 1.10
|
||||||
name: yesod-form
|
name: yesod-form
|
||||||
version: 1.7.4
|
version: 1.7.5
|
||||||
license: MIT
|
license: MIT
|
||||||
license-file: LICENSE
|
license-file: LICENSE
|
||||||
author: Michael Snoyman <michael@snoyman.com>
|
author: Michael Snoyman <michael@snoyman.com>
|
||||||
@ -67,6 +67,7 @@ library
|
|||||||
Yesod.Form.I18n.Spanish
|
Yesod.Form.I18n.Spanish
|
||||||
Yesod.Form.I18n.Chinese
|
Yesod.Form.I18n.Chinese
|
||||||
Yesod.Form.I18n.Korean
|
Yesod.Form.I18n.Korean
|
||||||
|
Yesod.Form.I18n.Romanian
|
||||||
-- FIXME Yesod.Helpers.Crud
|
-- FIXME Yesod.Helpers.Crud
|
||||||
ghc-options: -Wall
|
ghc-options: -Wall
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user