Giter Club home page Giter Club logo

Comments (5)

ragunathjawahar avatar ragunathjawahar commented on August 14, 2024 1

Hi, there is a messageResId attribute that you can use to achieve
localization. Here is an example.

@Email(order = 1, messageResId = R.string.valid_email_required)
On Oct 27, 2012 10:48 PM, "Mehdi Fanai" [email protected] wrote:

First i want to thank you for your huge effort on making form validation
possible and easy to go.
Is there any plans on enabling localization support in android-saripaar so
validation messages could be displayed in desired language(s)?
the following code wont work:
@Email https://github.com/Email(order = 3, message =getString(
R.string.invalid_email_address));
Can I help by writing some code?If yes,how?


Reply to this email directly or view it on GitHubhttps://github.com//issues/1.

from android-saripaar.

ragunathjawahar avatar ragunathjawahar commented on August 14, 2024

@mehdifanai, if you want to help by coding please fork the repository and send in pull requests. Thank you.

from android-saripaar.

mehdifanai avatar mehdifanai commented on August 14, 2024

Email validation is working great but its seems that its ALWAYS required. I need the email field both to be valid and optional(not required).is it possible?

from android-saripaar.

ragunathjawahar avatar ragunathjawahar commented on August 14, 2024

This has been updated in the latest source. Not sure if I have uploaded the
latest jar. @Email, @IPAddress works in the same manner. You need to use
them in conjunction with @required. Else they exhibit the optional or valid
behavior.

from android-saripaar.

mehdifanai avatar mehdifanai commented on August 14, 2024

Thanks. works like a charm.

from android-saripaar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.