__( 'Settings', 'swiftling' ), 'title' => __( 'General', 'swiftling' ), 'actions' => array( array( __( 'Start over…', 'swiftling' ), 'danger', admin_url( 'admin.php?page=swiftling-settings&swiftling_confirm=1#start-over' ) ), ), ) ); $swiftling_settings = swiftling_settings(); $swiftling_languages = swiftling_languages(); $swiftling_types = swiftling_viewable_types(); $swiftling_counts = swiftling_untranslated_counts( array_keys( $swiftling_types ) ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Read-only notice after the redirect. $swiftling_notice = isset( $_GET['swiftling_notice'] ) ? sanitize_key( wp_unslash( $_GET['swiftling_notice'] ) ) : ''; $swiftling_removed = swiftling_start_over_counts(); $swiftling_word = swiftling_start_over_word(); // What the index of translated text holds, for the search in the visitor's language. $swiftling_index = swiftling_search_state(); $swiftling_index_state = array( /* translators: %s: number of pages. */ sprintf( _n( '%s page in the index', '%s pages in the index', $swiftling_index['pages'], 'swiftling' ), number_format_i18n( $swiftling_index['pages'] ) ), /* translators: %s: number of languages. */ sprintf( _n( '%s language', '%s languages', $swiftling_index['languages'], 'swiftling' ), number_format_i18n( $swiftling_index['languages'] ) ), ); if ( $swiftling_index['built'] ) { /* translators: %s: date, e.g. 3 April 2025. */ $swiftling_index_state[] = sprintf( __( 'last built %s', 'swiftling' ), wp_date( get_option( 'date_format' ), $swiftling_index['built'] ) ); } $swiftling_search_config = array( 'rest' => esc_url_raw( rest_url( 'swiftling/v1/' ) ), 'nonce' => wp_create_nonce( 'wp_rest' ), ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Only shows the confirmation; the form has its own nonce. $swiftling_confirm = isset( $_GET['swiftling_confirm'] ); ?> __( 'Settings saved.', 'swiftling' ) ) ); ?> sprintf( __( 'Nothing was removed: type %s to confirm.', 'swiftling' ), $swiftling_word ) ) ); ?>

$swiftling_object ) : ?>
labels->name ); ?>
labels->name ) ); ?>
$swiftling_language ) : ?>

$swiftling_number ) { $swiftling_per_language[] = $swiftling_languages['targets'][ $swiftling_slug ]['name'] . ' ' . number_format_i18n( $swiftling_number ); } ?>

'swiftling-start-over__warning', 'title' => __( 'This cannot be undone', 'swiftling' ), 'text' => __( 'What is removed is gone for good: there is no way back in SwiftLing. If you may want anything of it again, back up the database first. Deleting the plugin removes nothing; this is the one way to remove what SwiftLing keeps.', 'swiftling' ), ) ); ?>
>