%s

', esc_attr( (string) $columns ), esc_attr( $this->message_class() ), esc_html( $this->message() ) ); } public function message(): string { if ( $this->settings->get()->deletes_data_on_uninstall() ) { return __( 'Deactivating keeps everything. Deleting Blocklingo after that removes the links between translations, the language strings and its settings ("Remove all data when the plugin is deleted" is on). Pages and their translations stay as separate pages. This cannot be undone.', 'blocklingo' ); } return __( 'Deactivating keeps everything; until you activate it again, translations show up as ordinary pages and posts. Deleting keeps the links between translations and the settings too, so installing it again brings everything back. To remove all its data, turn on "Remove all data when the plugin is deleted" in Settings > Blocklingo > Content and sync before deleting.', 'blocklingo' ); } private function message_class(): string { return $this->settings->get()->deletes_data_on_uninstall() ? 'notice-warning' : 'notice-info'; } }