Form field name localization - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Form field name localization (/showthread.php?tid=79911) |
Form field name localization - nneves - 08-13-2021 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 RE: Form field name localization - InsiteFX - 08-14-2021 Please Read: CodeIgniter 4 User Guide - Localization Try that. RE: Form field name localization - nneves - 08-14-2021 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 RE: Form field name localization - nneves - 08-18-2021 Just an update about this if anyone need it, the file name is translated with Validation Labels: https://codeigniter.com/user_guide/libraries/validation.html#translation-of-messages-and-validation-labels |