Jump to content

Recommended Posts

I'd like to change the error message "missing required field" update-safe.

According to the config file documentation, I can do that as follows:

// file site/config.php

 $config->InputfieldWrapper = array(
     'useDependencies' => true,
      'requiredLabel' => 'Valeur requise manquante',
     );

But this does not work.

The only thing that seems to work is to change the error message directly in the file InputfieldWrapper.php

Christophe is also talking about this misbehaviour.

Is this a bug? Or did I miss something?

Link to comment
Share on other sites

  • 1 year later...

"Missing required value" is a translatable phrase.

I haven't used translations before myself as all my sites are in English, but I believe the process is:

Setup > Languages > [your language] > Translate File (under Core Translation Files) > \core\InputfieldWrapper.php

I created a GitHub issue regarding the obsolete code example in /wire/config.php

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...