Closed luke- closed 9 years ago
I would love this too! Now everyone can mess with the translations...
Edit: Found a way to do this: Open the file TranslationModule.php in /home/protected/modules/translation.
At the bottom you see this: public static function onTopMenuInit($event) { $event->sender->addItem(array( 'label' => Yii::t('TranslationModule.base', 'Translations'), 'url' => Yii::app()->createUrl('//translation/translate', array('uguid' => Yii::app()->user->guid)), 'icon' => '', 'isActive' => (Yii::app()->controller->module && Yii::app()->controller->module->id == 'translation'), 'sortOrder' => 700, )); }
Remove $event->sender->addItem(array( 'label' => Yii::t('TranslationModule.base', 'Translations'), 'url' => Yii::app()->createUrl('//translation/translate', array('uguid' => Yii::app()->user->guid)), 'icon' => '', 'isActive' => (Yii::app()->controller->module && Yii::app()->controller->module->id == 'translation'), 'sortOrder' => 700, ));
So only public static function onTopMenuInit($event) {
}
stays intact.
Now the menu button is gone!
I would love this too! Now everyone can mess with the translations...
Edit: Found a way to do this: Open the file TranslationModule.php in /home/protected/modules/translation.
At the bottom you see this: public static function onTopMenuInit($event) { $event->sender->addItem(array( 'label' => Yii::t('TranslationModule.base', 'Translations'), 'url' => Yii::app()->createUrl('//translation/translate', array('uguid' => Yii::app()->user->guid)), 'icon' => '', 'isActive' => (Yii::app()->controller->module && Yii::app()->controller->module->id == 'translation'), 'sortOrder' => 700, )); }
Remove $event->sender->addItem(array( 'label' => Yii::t('TranslationModule.base', 'Translations'), 'url' => Yii::app()->createUrl('//translation/translate', array('uguid' => Yii::app()->user->guid)), 'icon' => '', 'isActive' => (Yii::app()->controller->module && Yii::app()->controller->module->id == 'translation'), 'sortOrder' => 700, ));
So only public static function onTopMenuInit($event) {
stays intact.
Now the menu button is gone!