translation_manager_settings = $translation_manager_settings; $this->translator_settings = $translator_settings; } /** * @inheritDoc */ public function get_slug() { return 'translators'; } /** * @inheritDoc */ public function get_capabilities() { return array( WPML_Manage_Translations_Role::CAPABILITY, 'manage_options' ); } /** * @inheritDoc */ public function get_caption() { return current_user_can( 'manage_options' ) ? __( 'Translation Roles', 'wpml-translation-management' ) : __( 'Translators', 'wpml-translation-management' ); } /** * @inheritDoc */ public function get_callback() { return array( $this, 'render' ); } /** * @inheritDoc */ public function is_visible() { return true; } public function render() { $this->translation_manager_settings->render(); echo $this->translator_settings->render(); } }