diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index 2d6689b554..279549d4cb 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -19,8 +19,13 @@ class AppServiceProvider extends ServiceProvider { public function boot() { HTML::macro('nav_link', function($url, $text, $url2 = '', $extra = '') { + $capitalize = config('former.capitalize_translations'); $class = ( Request::is($url) || Request::is($url.'/*') || Request::is($url2.'/*') ) ? ' class="active"' : ''; - $title = ucwords(trans("texts.$text")) . Utils::getProLabel($text); + if($capitalize){ + $title = ucwords(trans("texts.$text")) . Utils::getProLabel($text); + } else { + $title = trans("texts.$text") . Utils::getProLabel($text); + } return '