-
Notifications
You must be signed in to change notification settings - Fork 378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error string internationalisation #46
Comments
Just create The translations and submit a pull request :) Il 01 ago 2016 12:14 PM, "megadmini" notifications@github.com ha scritto:
|
OK. I will. |
Depends on the validator. but correct way to localize is to create proper On Mon, Aug 1, 2016 at 1:23 PM, megadmini notifications@github.com wrote:
Andrea Baccega |
waiting for the pull acceptation :) |
Done, will release it today :) thank you and sorry for the delay. |
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,
The text was updated successfully, but these errors were encountered: