Welcome Guest, Not a member yet? Register   Sign In
Form field name localization
#1

Hi

How can I set the form field name localization to match the user language?

The textarea form field name is "comment" and has a min length of 10 characters set in the validationRules

English: "The comment field must be at least 10 characters in length."
Portuguese: "O campo comment deve ter pelo menos 10 caracteres."
French: "Le champ comment doit contenir au moins 10 caractères."

So, "comment" is always set to the field name, but I would like to set is proper localization.

How can I do this?

Thanks
Reply
#2

Please Read:

CodeIgniter 4 User Guide - Localization

Try that.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

Hi

I already have all localization working, the only thing I can't find a way to do is the translation of the form field name.

I don't find any reference in the documentation to do this.
I'm using the oficial translation for the validation.

Thanks
Reply
#4

Just an update about this if anyone need it, the file name is translated with Validation Labels: https://codeigniter.com/user_guide/libra...ion-labels
Reply




Theme © iAndrew 2016 - Forum software by © MyBB