Closed thayronarrais closed 6 years ago
Hi, I'm travelling at the moment, and I'll take a look into it tomorrow. The general approach is not to comment out menu items but to search and modify/remove them. Please refer to https://github.com/artkonekt/menu/blob/master/README.md
But I'll give you an example romorrow
Sorry for the long response, here's the solution:
composer update konekt/menu
AppServiceProvider
boot method:
$menu = \Menu::get('appshell');
$menu->removeItem('shop');
$menu->removeItem('crm');
$menu->removeItem('settings');
Please also let me add some notes to the screenshots you posted:
You should never edit files in the vendor/
directory. This applies to any composer package, but Vanilo was especially built with flexibility in mind, so you should be able to replace/modify/disable any part of it. In case not, please submit an issue, like this one :+1: :wink:
Vanilo, and all underlying components are prepared for translations, there's no need to modify the strings like: __('Configurações')
. Actually the __()
function is exactly for handling translations.
The basic idea is to:
resources/lang/pt/messages.php
<?php
return [ 'Settings' => 'Configurações', 'Customers' => 'Clientes', // etc ];
3. Set your language in `config/app.php`: ` 'language' => 'pt',`
This is a built in Laravel facility, refer to the [documentation](https://laravel.com/docs/5.6/localization) for more details.
thank you!
@fulopattila122 how is path to override vanilo strings to translate?
i try resource/vendor/vanilo/pt/pt.php but without success
@mandala21 please open a new issue since this is more than two years old and not even related. I'll answer it there :)
I comment my code, but continuous showing for me in the admin, CRM, Setting Group is hiding, but shop won't where is "Shop" Item ?