Coder Social home page Coder Social logo

Comments (5)

vekexasia avatar vekexasia commented on June 19, 2024

Just create The translations and submit a pull request :)

Il 01 ago 2016 12:14 PM, "megadmini" [email protected] ha scritto:

Hi,
I need to show error msg for Arabic users which not supported (
https://github.com/vekexasia/android-edittext-validator/tree/09a1a466e687e9afb4eef0daf3f179cdae8b967f/library/res
)
So I use [whatever:emptyErrorString="@string/msg_invalid_data_empty"] into
my layout xml file.
But it only shows fr msg which is the default language of the phone. Even
I force my app to use Arabic language (all other UI are correctly in
Arabic).
And when I use a Validator from java like this

MultiValidator tmpValidator = new AndValidator();
tmpValidator.enqueue(new
FormAlphaNumericValidator(getResources().getString(R.string.msg_invalid_data_format)));
tmpValidator.enqueue(new
EmptyValidator(getResources().getString(R.string.msg_invalid_data_empty)));
mScannedDocNumber.addValidator(tmpValidator);

My FormAlphaNumericValidator extends AlphaNumericValidator show correctly
the error msg in Arabic. But not the EmptyValidator.
Are there a better way to show error msg in Arabic, or should I extends
all needed Validators ?

Thanks,


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#46, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAMPS5-YTot2a_ca1Bzh0jBD7BZcbfQ8ks5qbccAgaJpZM4JZcJV
.

from android-edittext-validator.

mahermeg17 avatar mahermeg17 commented on June 19, 2024

OK. I will.
But just to confirm, passing a custom string to the constructor do not really change the error msg ?
new EmptyValidator(getResources().getString(R.string.msg_invalid_data_empty)));

from android-edittext-validator.

vekexasia avatar vekexasia commented on June 19, 2024

Depends on the validator. but correct way to localize is to create proper
string values for the desired language

On Mon, Aug 1, 2016 at 1:23 PM, megadmini [email protected] wrote:

OK. I will.
But just to confirm, passing a custom string to the constructor do not
really change the error msg ?
new
EmptyValidator(getResources().getString(R.string.msg_invalid_data_empty)));


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#46 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAMPS14VuIEdJU8kD2NvdDEcRSkCuMuLks5qbdcZgaJpZM4JZcJV
.

Andrea Baccega
[image: Email][email protected]
[image: Hangouts][email protected]
[image: Personal site] http://www.andreabaccega.com/ [image: Linkedin
Profile] http://it.linkedin.com/in/andreabaccega [image: Facebook]
https://www.facebook.com/andrea.baccega [image: Google+]
https://plus.google.com/109217393200753135791 [image: Twitter]
http://twitter.com/veke87 [image: StackOverflow]
http://stackoverflow.com/users/314407/andrea-baccega [image: GitHub]
https://github.com/vekexasia

from android-edittext-validator.

mahermeg17 avatar mahermeg17 commented on June 19, 2024

waiting for the pull acceptation :)

from android-edittext-validator.

vekexasia avatar vekexasia commented on June 19, 2024

Done, will release it today :) thank you and sorry for the delay.

from android-edittext-validator.

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.