/**
  * Sets up the menu items for non-admin translators pointing at the TM
  * and ST translators interfaces
  */
 function menu()
 {
     if ($this->sitepress->setup()) {
         $wp_api = $this->sitepress->get_wp_api();
         if ($wp_api->current_user_can('wpml_manage_translation_management')) {
             $wp_api->add_submenu_page(apply_filters('icl_menu_main_page', ICL_PLUGIN_FOLDER . '/menu/languages.php'), __('Translations', 'wpml-translation-management'), __('Translations', 'wpml-translation-management'), 'wpml_manage_translation_management', WPML_TM_FOLDER . '/menu/translations-queue.php', array($this, 'translation_queue_page'));
         } elseif ((bool) $this->tm_instance->get_current_translator()->language_pairs === true) {
             $wp_api->add_menu_page(__('Translation interface', 'wpml-translation-management'), __('Translation interface', 'wpml-translation-management'), 'translate', WPML_TM_FOLDER . '/menu/translations-queue.php', array($this, 'translation_queue_page'), ICL_PLUGIN_URL . '/res/img/icon16.png');
         }
     }
 }