'; $notification_text .= $this->get_message(); $notification_text .= '
'; return $notification_text; } /** * Returns the message to show. * * @return string The message. */ protected function get_message() { $reason = \get_option( Populate_File_Command_Handler::GENERATION_FAILURE_OPTION, false ); switch ( $reason ) { case 'not_managed_by_yoast_seo': $message = \sprintf( /* translators: 1: Link start tag to the WordPress Reading Settings page, 2: Link closing tag. */ \esc_html__( 'An existing llms.txt file wasn\'t created by Yoast or has been edited manually. Yoast won\'t overwrite it. %1$sDelete it manually%2$s or turn off this feature.', 'wordpress-seo' ), '', '', ); break; case 'filesystem_permissions': $message = \__( 'You have activated the Yoast llms.txt feature, but we couldn\'t generate an llms.txt file. It looks like there aren\'t sufficient permissions on the web server\'s filesystem.', 'wordpress-seo' ); break; default: $message = \__( 'You have activated the Yoast llms.txt feature, but we couldn\'t generate an llms.txt file, for unknown reasons.', 'wordpress-seo' ); break; } return \sprintf( '%1$s %2$s', \esc_html__( 'Your llms.txt file couldn\'t be auto-generated', 'wordpress-seo' ), $message, ); } }