laravel/laravel — pull request #2011 by dr-dimitru (2013-05-23 00:36:27+00:00)
Title: Set locale for url in URL::to() (Laravel 3)

URL::to($url, $https, $asset, $locale = true);
Now if $locale is string and in_array
Config::get('application.languages') we set user selected locale.

Ex.:
Config::set('application.language', 'en');
$key = 'ru';
URL::to(URI::current(), null, false, $key);

We have: http://yoursite.com/ru/...