32
Views
9
Comments
Not possible to use Multilingual Locales to modify the language of Builtin Validation

Not possible to use Multilingual Locales to modify the language of Built-in Validation Messages.

Validation.PNG
2024-05-14 06-49-08
Karnika-EONE

Hi @PRAVEEN R 

You need to change "todefine" to "translate".Like the below image..


Hope it helps.

Thanks

Karnika.

2024-10-03 06-54-46
PRAVEEN RAJKUMAR

Hi Karnika, 

It's already in Translate.

2024-05-14 06-49-08
Karnika-EONE

Hi @PRAVEEN R 

Have you changed this translate behaviour in which module that form present in?

For Instance,If the form is present in CW module(Webblock module) means,you need to change in that module.



Thanks

Karnika.

2024-10-03 06-54-46
PRAVEEN RAJKUMAR

Yes @Karnika-EONE , I have changed the translate behavior in the same module.

The default Build-in validation msg was not changed.

2024-02-20 11-58-14
Satyam Mishra

Hi @PRAVEEN R 

Validation messages like that one 'Required field' are managed automatically by the platform. So they can't be translated like your text widgets or expressions that you have on your code.

As far as I know, they are dependent on the locale. Did you try with different locales?

Regards ~

Satyam Mishra

2024-10-03 06-54-46
PRAVEEN RAJKUMAR

@Satyam Mishra Tried with different locale facing the same.

When trying to submit again the validation message got changed in expected locale.


why it's not changed by default

2024-02-20 11-58-14
Satyam Mishra

@PRAVEEN R 

As I said , Either you can do it manually or Validation messages like   'Required field' are managed automatically by the platform. So they can't be translated 

2019-01-07 16-04-16
Siya
 
MVP

As far I understand you are facing the issue when you follow a particular pattern 

  1. The selected language is English.
  2. You submit without entering data and see the "This field is required" error message.
  3. You change the language to Tamil.
  4. The label translates to Tamil, but the error message remains in English.
  5. Now when you submit again the error message appears in Tamil.
  6. If you switch the language to English the error message remains in Tamil and the rests are translated.

Looks like this is a bug and someone from OutSystems Product may comment on this.

A temporary workaround is to hide the error message by setting Input_Name.Valid = True while changing the language, along with SetCurrentLocale().

2024-10-03 06-54-46
PRAVEEN RAJKUMAR

Thanks @Siya 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.