Support the ongoing development of Laravel.io →
posted 11 years ago
Configuration

I have translated the validation.php under the lang/en and placed it under lang/el, everything works fine but I also want to translate the :attribute. How I can do that?

Last updated 3 years ago.
0

You can change the messages for specific attributes: http://laravel.com/docs/validation#custom-error-messages

Last updated 3 years ago.
0

Is it possible to add all this attributes in a file attributes.php under the lang/el and then use Lang::get to translate them?

Edit: can someone tell me where the :attribute is replaced with real value? I will add Lang::get there.

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Almis90 almis90 Joined 25 Jun 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.