Support the ongoing development of Laravel.io →
posted 8 years ago
Forms
Last updated 1 year ago.
0

Typically you would prefix your routes with the locale - there is one method here

https://laracasts.com/discuss/channels/tips/example-on-how-to-...

0

Hello,

Thanks for the suggestion. I downloaded the project from GITHub and trying in local machine. I am getting the error as

Warning: require(C:\xampp\htdocs\laravelsample\laravel-multiple-locales-master\laravel-multiple-locales-master\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in C:\xampp\htdocs\laravelsample\laravel-multiple-locales-master\laravel-multiple-locales-master\bootstrap\autoload.php on line 17

Any idea why this happens.

Thanks, Sreejith

0

windows ... don't know ....

in Linux type: command:

composer dump-autoload

have you done "composer install" or "composer update"?

I'm redoing my locale setup to update to L5.1.x right now.

But take a look at my older setup which works. https://github.com/illuminate3/rakko

I do not translate my slugs but the goal is to have everything else multi-lingual/

If you want to try out my code refactor that is still being worked on: https://github.com/illuminate3/rakkoII and you will need to put this in the modules directory: https://github.com/illuminate3/core

0

I've written a tutorial and created an open source package especially for this.

Tutorial: http://ied3vil.com/laravel-5-language-switcher/

Open source language switcher package: http://ied3vil.com/open-source-laravel-5-language-switcher/

0

Sign in to participate in this thread!

Eventy

Your banner here too?

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.

© 2024 Laravel.io - All rights reserved.