Jump to content

Recommended Posts

Posted

Hi,

I've been struggling with building forms with the API this week-end. How would i translate the form errors messages (Missing require value...) ?

Thank you.

  • Like 1
Posted

If you want to translate text, labels and stuff you can do this by wrapping your texts like:

<?php

echo __("String to be translated.");

Read more on this page how to work this out in the backend. Translating files is really easy!

  • Like 1
Posted

The "missing required value" string is translatable in the file /wire/core/InputfieldWrapper.php. For your language pack, you would add this file as a translation target. 

  • Like 2
  • Thanks 2

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
×
×
  • Create New...