__( 'Languages saved.', 'swiftling' ), /* translators: %s: language name, e.g. Hrvatski. */ 'setup' => sprintf( __( 'Your content is written in %s. Now add the languages to translate it into.', 'swiftling' ), $swiftling_languages['source']['name'] ), 'slug' => __( 'Two languages had the same address, so one of them now uses its full locale.', 'swiftling' ), 'custom_invalid' => __( 'A custom language needs a name and a language code such as cnr or es_MX, of at most 12 characters.', 'swiftling' ), 'custom_exists' => __( 'The site already has a language with that code.', 'swiftling' ), 'forget_refused' => __( 'Nothing was deleted: that language is on the site again.', 'swiftling' ), ); // phpcs:disable WordPress.Security.NonceVerification.Recommended -- Read-only: which language's warning is open, and which one was deleted. $swiftling_forget = isset( $_GET['swiftling_forget'] ) ? sanitize_text_field( wp_unslash( $_GET['swiftling_forget'] ) ) : ''; $swiftling_last_step = isset( $_GET['swiftling_step'] ) && 'last' === sanitize_key( wp_unslash( $_GET['swiftling_step'] ) ); $swiftling_forgotten = isset( $_GET['swiftling_forgotten'] ) ? sanitize_text_field( wp_unslash( $_GET['swiftling_forgotten'] ) ) : ''; $swiftling_copies = isset( $_GET['swiftling_copies'] ) ? absint( $_GET['swiftling_copies'] ) : 0; // phpcs:enable if ( 'forgotten' === $swiftling_notice && '' !== $swiftling_forgotten ) { /* translators: %s: language name, e.g. Shqip. */ $swiftling_messages['forgotten'] = sprintf( __( 'The translations of %s were deleted.', 'swiftling' ), swiftling_kept_language_name( $swiftling_forgotten ) ); if ( $swiftling_copies ) { $swiftling_messages['forgotten'] .= ' ' . sprintf( /* translators: %s: number of separate copies. */ EMPTY_TRASH_DAYS ? _n( 'Its %s separate copy is in the Trash.', 'Its %s separate copies are in the Trash.', $swiftling_copies, 'swiftling' ) : _n( 'Its %s separate copy was deleted.', 'Its %s separate copies were deleted.', $swiftling_copies, 'swiftling' ), number_format_i18n( $swiftling_copies ) ); } } $swiftling_kept = swiftling_kept_languages(); // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Read-only notice after the redirect. $swiftling_taken = isset( $_GET['swiftling_taken'] ) ? array_filter( array_map( 'sanitize_title', explode( ',', sanitize_text_field( wp_unslash( $_GET['swiftling_taken'] ) ) ) ) ) : array(); // The address column shows the format the Addresses screen chose. $swiftling_folders = 'directory' === swiftling_saved_url_format(); $swiftling_hosts = swiftling_is_host_format() ? swiftling_url_format() : ''; $swiftling_folder_on = $swiftling_folders && swiftling_saved_source_folder(); $swiftling_source = $swiftling_languages['source']; $swiftling_wordpress = swiftling_available_languages( false ); $swiftling_ordered = swiftling_ordered_languages(); // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Read-only: the name typed before a failed add, to type it again. $swiftling_custom = isset( $_GET['swiftling_custom'] ) ? sanitize_text_field( wp_unslash( $_GET['swiftling_custom'] ) ) : ''; $swiftling_intl = class_exists( 'Locale' ); Ui::screenHeader( array( 'crumb' => __( 'Settings', 'swiftling' ), 'title' => __( 'Languages', 'swiftling' ), 'description' => __( 'The language your content is written in, and the languages it is translated into.', 'swiftling' ), ) ); ?> $swiftling_messages[ $swiftling_notice ] ) ); ?> __( 'Nothing was deleted: tick that you understand the translations cannot be brought back.', 'swiftling' ) ) ); ?> sprintf( __( 'WordPress, the theme and plugins now show their own texts translated in %s, with dates in the language. Your translations still come first.', 'swiftling' ), wp_sprintf( '%l', $swiftling_wp_names['installed'] ) ), ) ); ?> sprintf( __( 'WordPress\'s own translations for %s could not be downloaded, so texts of WordPress, the theme and plugins stay in English there until you translate them. A site administrator can add the language under Settings > General.', 'swiftling' ), wp_sprintf( '%l', $swiftling_wp_names['missing'] ) ), ) ); ?> sprintf( _n( '%s is not on the site until its address leads here.', '%s are not on the site until their addresses lead here.', count( $swiftling_unreached ), 'swiftling' ), wp_sprintf( '%l', $swiftling_unreached ) ), 'link' => array( __( 'Check on URLs', 'swiftling' ), admin_url( 'admin.php?page=swiftling-addresses#swiftling-format' ) ), ) ); ?>
/ / >

>

$swiftling_kept_one ) : ?>

array(), 'page' => array(), 'both' => array(), ); foreach ( $swiftling_ordered as $swiftling_row ) { // As the switcher names it on a page in the original: the name written for it first. $swiftling_translated = $swiftling_row['source'] ? '' : swiftling_language_name_in( $swiftling_row['locale'], $swiftling_source['locale'] ); $swiftling_translated = '' !== $swiftling_translated || $swiftling_row['source'] ? $swiftling_translated : swiftling_translated_language_name( $swiftling_row['locale'], $swiftling_source['wp_locale'], false ); $swiftling_translated = '' !== $swiftling_translated ? $swiftling_translated : $swiftling_row['name']; $swiftling_examples['native'][] = $swiftling_row['name']; $swiftling_examples['page'][] = $swiftling_translated; $swiftling_examples['both'][] = $swiftling_translated !== $swiftling_row['name'] ? $swiftling_row['name'] . ' (' . $swiftling_translated . ')' : $swiftling_row['name']; } $swiftling_name_choices = array( 'native' => __( 'In their own language', 'swiftling' ), 'page' => __( 'In the language of the page', 'swiftling' ), 'both' => __( 'Both', 'swiftling' ), ); ?> $swiftling_choice_label ) : ?>
>

—
__( 'Names in the language of the page come from the intl extension of PHP, which this server does not have. Your host can switch it on.', 'swiftling' ), 'compact' => true, ) ); ?>
$swiftling_kept_one ) : ?> >
>

>