Plugin Directory

Changeset 3833014


Ignore:
Timestamp:
11/29/2026 12:44:43 PM (8 hours ago)
Author:
lyode
Message:

Release 1.4.0 (security fix)

  • Security: ALT text is always read as plain text on Media Library screens.
  • Simpler menu: Dashboard, ALT Text, Settings. Duplicate files moved to Media, resizing existing images to Tools.
  • New Dashboard, Bulk actions tab in ALT Text and review invitation.
  • A title becomes the ALT text of an image without one before it is cleared.
  • French translation and file size units updated.
Location:
filikod
Files:
74 added
22 edited

Legend:

Unmodified
Added
Removed
  • filikod/trunk/admin/views/alt-audit.php

    r3763820 r3833014  
    1616$filikod_allowed_statuses = array( 'missing', 'generic', 'too_short', 'too_long', 'duplicated', 'decorative' );
    1717$filikod_status_param      = isset( $_GET['status'] ) ? sanitize_text_field( wp_unslash( $_GET['status'] ) ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Read-only filter parameter for UI navigation, value is strictly validated below.
    18 if ( ! in_array( $filikod_status_param, $filikod_allowed_statuses, true ) ) {
    19         $filikod_status_param = 'missing';
    20 }
    21 $status = class_exists( 'Filikod_Alt_Audit' ) ? Filikod_Alt_Audit::normalize_filter_status( $filikod_status_param ) : 'missing';
    22 
    23 $per_page = isset( $_GET['per_page'] ) ? max( 20, min( 50, (int) $_GET['per_page'] ) ) : 20; // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Read-only pagination parameter, cast to int and clamped.
    24 $paged    = isset( $_GET['paged'] ) ? max( 1, (int) $_GET['paged'] ) : 1; // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Read-only pagination parameter, cast to int and clamped.
    25 
    26 $filikod_data = array( 'ids' => array(), 'items' => array(), 'total' => 0, 'total_pages' => 0 );
    27 if ( class_exists( 'Filikod_Alt_Audit' ) ) {
    28         $filikod_data = Filikod_Alt_Audit::get_filtered_ids_paginated( $status, $per_page, $paged );
    29 }
    30 
    31 // Borne la page demandée au nombre réel de pages : un onglet qui rétrécit après des corrections
    32 // affichait « Page 7 of 3 » avec un lien Précédent vers une page inexistante.
    33 $paged = max( 1, min( $paged, max( 1, (int) $filikod_data['total_pages'] ) ) );
    34 
    35 $filikod_form_action = add_query_arg(
    36         array(
    37                 'page'     => 'filikod-alt-audit',
    38                 'status'   => $filikod_status_param,
    39                 'paged'    => $paged,
    40                 'per_page' => $per_page,
    41         ),
    42         admin_url( 'admin.php' )
    43 );
     18// Onglet « Actions en masse » (1.4.0) : les cartes de l'ancien écran Traitement en masse, sauf le redimensionnement.
     19$filikod_view = ( isset( $_GET['view'] ) && 'bulk' === sanitize_key( wp_unslash( $_GET['view'] ) ) ) ? 'bulk' : 'list'; // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Read-only view parameter, whitelisted.
    4420
    4521$filikod_audit_counts = array(
    … …  
    6440}
    6541
     42if ( ! in_array( $filikod_status_param, $filikod_allowed_statuses, true ) ) {
     43        // Sans filtre demandé : le premier onglet qui a des images, pour ne pas ouvrir sur une liste vide
     44        // quand le travail attend à côté. Rien à corriger : l'onglet Manquant et son message positif.
     45        $filikod_status_param = 'missing';
     46        $filikod_count_keys   = array( 'missing' => 'missing', 'generic' => 'generic', 'too_short' => 'too_short', 'too_long' => 'too_long', 'duplicated' => 'duplicate' );
     47        foreach ( $filikod_count_keys as $filikod_tab_status => $filikod_count_key ) {
     48                if ( (int) $filikod_audit_counts[ $filikod_count_key ] > 0 ) {
     49                        $filikod_status_param = $filikod_tab_status;
     50                        break;
     51                }
     52        }
     53}
     54$status = class_exists( 'Filikod_Alt_Audit' ) ? Filikod_Alt_Audit::normalize_filter_status( $filikod_status_param ) : 'missing';
     55
     56$per_page = isset( $_GET['per_page'] ) ? max( 20, min( 50, (int) $_GET['per_page'] ) ) : 20; // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Read-only pagination parameter, cast to int and clamped.
     57$paged    = isset( $_GET['paged'] ) ? max( 1, (int) $_GET['paged'] ) : 1; // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Read-only pagination parameter, cast to int and clamped.
     58
     59$filikod_data = array( 'ids' => array(), 'items' => array(), 'total' => 0, 'total_pages' => 0 );
     60if ( class_exists( 'Filikod_Alt_Audit' ) && 'list' === $filikod_view ) {
     61        $filikod_data = Filikod_Alt_Audit::get_filtered_ids_paginated( $status, $per_page, $paged );
     62}
     63
     64// Borne la page demandée au nombre réel de pages : un onglet qui rétrécit après des corrections
     65// affichait « Page 7 of 3 » avec un lien Précédent vers une page inexistante.
     66$paged = max( 1, min( $paged, max( 1, (int) $filikod_data['total_pages'] ) ) );
     67
     68$filikod_form_action = add_query_arg(
     69        array(
     70                'page'     => 'filikod-alt-audit',
     71                'status'   => $filikod_status_param,
     72                'paged'    => $paged,
     73                'per_page' => $per_page,
     74        ),
     75        admin_url( 'admin.php' )
     76);
     77
    6678$filikod_issue_labels = array(
    6779        'missing'    => __( 'Missing', 'filikod' ),
    … …  
    7991        'too_long'   => sprintf(
    8092                /* translators: %d: maximum recommended ALT length in characters */
    81                 __( 'ALT text that is too long (over %d characters) is poorly read by screen readers and dilutes SEO signals. Aim for a concise description.', 'filikod' ),
     93                __( 'ALT text that is too long (over %d characters) is hard to follow: screen readers read it in full and listeners cannot go back inside it. Keep what the image shows and move credits, dates or details to the caption or the text around the image.', 'filikod' ),
    8294                (int) ( class_exists( 'Filikod_Alt_Audit' ) ? Filikod_Alt_Audit::TOO_LONG_MIN_LEN : 125 )
    8395        ),
    84         'duplicate'  => __( 'Duplicated ALT often occurs with logos and decorative elements. When possible, differentiate each image with a unique description. Exact copies of the same file (see Filikod > Duplicates) sharing one ALT are not counted here.', 'filikod' ),
     96        'duplicate'  => __( 'Duplicated ALT often occurs with logos and decorative elements. When possible, differentiate each image with a unique description. Exact copies of the same file (see Media > Duplicate files) sharing one ALT are not counted here.', 'filikod' ),
    8597        'decorative' => __( 'Decorative images are intentionally hidden from assistive technologies (alt=""). They are excluded from the ALT score. Use this for icons, separators or purely visual elements that carry no information.', 'filikod' ),
     98);
     99
     100$filikod_empty_messages = array(
     101        'missing'    => __( 'Every image has an ALT text.', 'filikod' ),
     102        'generic'    => __( 'No generic ALT text.', 'filikod' ),
     103        'too_short'  => __( 'No ALT text is too short.', 'filikod' ),
     104        'too_long'   => __( 'No ALT text is too long.', 'filikod' ),
     105        'duplicate'  => __( 'No ALT text is shared by several images.', 'filikod' ),
     106        'decorative' => __( 'No image is marked as decorative.', 'filikod' ),
    86107);
    87108
    … …  
    119140};
    120141</script>
    121 <div class="wrap filikod-alt-audit-page" data-current-status="<?php echo esc_attr( $filikod_status_param ); ?>">
    122         <h1><?php esc_html_e( 'ALT Audit', 'filikod' ); ?></h1>
     142<div class="wrap filikod-alt-audit-page" data-current-status="<?php echo esc_attr( 'bulk' === $filikod_view ? '' : $filikod_status_param ); ?>">
     143        <h1><?php esc_html_e( 'ALT Text', 'filikod' ); ?></h1>
    123144
    124145        <div id="filikod-alt-audit-notice" class="notice notice-success is-dismissible" style="display:none;"><p></p></div>
    … …  
    127148        <div class="filikod-tabs-wrapper">
    128149                <nav class="filikod-tabs-nav" role="navigation" aria-label="<?php esc_attr_e( 'Filter by issue type', 'filikod' ); ?>">
    129                         <a href="<?php echo esc_url( add_query_arg( 'status', 'missing', $filikod_base_url ) ); ?>" class="filikod-tab <?php echo $filikod_status_param === 'missing' ? 'active' : ''; ?>" data-count-key="missing">
     150                        <a href="<?php echo esc_url( add_query_arg( 'status', 'missing', $filikod_base_url ) ); ?>" class="filikod-tab <?php echo ( 'list' === $filikod_view && $filikod_status_param === 'missing' ) ? 'active' : ''; ?>" data-count-key="missing">
    130151                                <?php echo esc_html( $filikod_issue_labels['missing'] ); ?> (<span class="filikod-alt-tab-count"><?php echo esc_html( (string) $filikod_audit_counts['missing'] ); ?></span>)
    131152                        </a>
    132                         <a href="<?php echo esc_url( add_query_arg( 'status', 'generic', $filikod_base_url ) ); ?>" class="filikod-tab <?php echo $filikod_status_param === 'generic' ? 'active' : ''; ?>" data-count-key="generic">
     153                        <a href="<?php echo esc_url( add_query_arg( 'status', 'generic', $filikod_base_url ) ); ?>" class="filikod-tab <?php echo ( 'list' === $filikod_view && $filikod_status_param === 'generic' ) ? 'active' : ''; ?>" data-count-key="generic">
    133154                                <?php echo esc_html( $filikod_issue_labels['generic'] ); ?> (<span class="filikod-alt-tab-count"><?php echo esc_html( (string) $filikod_audit_counts['generic'] ); ?></span>)
    134155                        </a>
    135                         <a href="<?php echo esc_url( add_query_arg( 'status', 'too_short', $filikod_base_url ) ); ?>" class="filikod-tab <?php echo $filikod_status_param === 'too_short' ? 'active' : ''; ?>" data-count-key="too_short">
     156                        <a href="<?php echo esc_url( add_query_arg( 'status', 'too_short', $filikod_base_url ) ); ?>" class="filikod-tab <?php echo ( 'list' === $filikod_view && $filikod_status_param === 'too_short' ) ? 'active' : ''; ?>" data-count-key="too_short">
    136157                                <?php echo esc_html( $filikod_issue_labels['too_short'] ); ?> (<span class="filikod-alt-tab-count"><?php echo esc_html( (string) $filikod_audit_counts['too_short'] ); ?></span>)
    137158                        </a>
    138                         <a href="<?php echo esc_url( add_query_arg( 'status', 'too_long', $filikod_base_url ) ); ?>" class="filikod-tab <?php echo $filikod_status_param === 'too_long' ? 'active' : ''; ?>" data-count-key="too_long">
     159                        <a href="<?php echo esc_url( add_query_arg( 'status', 'too_long', $filikod_base_url ) ); ?>" class="filikod-tab <?php echo ( 'list' === $filikod_view && $filikod_status_param === 'too_long' ) ? 'active' : ''; ?>" data-count-key="too_long">
    139160                                <?php echo esc_html( $filikod_issue_labels['too_long'] ); ?> (<span class="filikod-alt-tab-count"><?php echo esc_html( (string) $filikod_audit_counts['too_long'] ); ?></span>)
    140161                        </a>
    141                         <a href="<?php echo esc_url( add_query_arg( 'status', 'duplicated', $filikod_base_url ) ); ?>" class="filikod-tab <?php echo $filikod_status_param === 'duplicated' ? 'active' : ''; ?>" data-count-key="duplicate">
     162                        <a href="<?php echo esc_url( add_query_arg( 'status', 'duplicated', $filikod_base_url ) ); ?>" class="filikod-tab <?php echo ( 'list' === $filikod_view && $filikod_status_param === 'duplicated' ) ? 'active' : ''; ?>" data-count-key="duplicate">
    142163                                <?php echo esc_html( $filikod_issue_labels['duplicate'] ); ?> (<span class="filikod-alt-tab-count"><?php echo esc_html( (string) $filikod_audit_counts['duplicate'] ); ?></span>)
    143164                        </a>
    144                         <a href="<?php echo esc_url( add_query_arg( 'status', 'decorative', $filikod_base_url ) ); ?>" class="filikod-tab <?php echo $filikod_status_param === 'decorative' ? 'active' : ''; ?>" data-count-key="decorative">
     165                        <a href="<?php echo esc_url( add_query_arg( 'status', 'decorative', $filikod_base_url ) ); ?>" class="filikod-tab <?php echo ( 'list' === $filikod_view && $filikod_status_param === 'decorative' ) ? 'active' : ''; ?>" data-count-key="decorative">
    145166                                <?php echo esc_html( $filikod_issue_labels['decorative'] ); ?> (<span class="filikod-alt-tab-count"><?php echo esc_html( (string) $filikod_audit_counts['decorative'] ); ?></span>)
    146167                        </a>
     168                        <a href="<?php echo esc_url( Filikod_Admin::bulk_url() ); ?>" class="filikod-tab filikod-tab-bulk <?php echo 'bulk' === $filikod_view ? 'active' : ''; ?>"<?php echo 'bulk' === $filikod_view ? ' aria-current="page"' : ''; ?>>
     169                                <?php esc_html_e( 'Bulk actions', 'filikod' ); ?>
     170                        </a>
    147171                </nav>
    148172
    149173                <div class="filikod-tabs-content">
     174                <?php if ( 'bulk' === $filikod_view ) : ?>
     175                <p class="filikod-alt-audit-description">
     176                        <?php esc_html_e( 'Fix the images already in your Media Library in one go. Settings only apply to new uploads.', 'filikod' ); ?>
     177                        <?php
     178                        printf(
     179                                /* translators: %s: link to the Tools > Resize large images screen */
     180                                esc_html__( 'To resize large images, use %s.', 'filikod' ),
     181                                '<a href="' . esc_url( Filikod_Admin::resize_url() ) . '">' . esc_html__( 'Tools > Resize large images', 'filikod' ) . '</a>'
     182                        );
     183                        ?>
     184                </p>
    150185                <?php
     186                $filikod_bulk_only = array( 'auto_alt', 'clean_chars', 'remove_title' );
     187                include FILIKOD_PLUGIN_PATH . 'admin/views/bulk.php';
     188                else :
    151189                $filikod_alt_description = isset( $filikod_issue_descriptions[ $status ] ) ? $filikod_issue_descriptions[ $status ] : '';
    152190                if ( $filikod_alt_description ) :
    … …  
    155193                <?php endif; ?>
    156194
     195                <?php if ( 'missing' === $status && (int) $filikod_data['total'] > 0 ) : ?>
     196                <p class="filikod-alt-audit-bulk-hint">
     197                        <?php
     198                        printf(
     199                                esc_html(
     200                                        /* translators: %s: number of images without ALT text */
     201                                        _n(
     202                                                '%s image has no ALT text. Write it below, or fill it from its title or file name in one go.',
     203                                                '%s images have no ALT text. Write them below, or fill them from their titles or file names in one go.',
     204                                                (int) $filikod_data['total'],
     205                                                'filikod'
     206                                        )
     207                                ),
     208                                '<strong>' . esc_html( number_format_i18n( (int) $filikod_data['total'] ) ) . '</strong>'
     209                        );
     210                        ?>
     211                        <a href="<?php echo esc_url( Filikod_Admin::bulk_url( 'filikod-bulk-auto-alt' ) ); ?>" class="filikod-btn-outline"><?php esc_html_e( 'Fill missing ALT text', 'filikod' ); ?></a>
     212                </p>
     213                <?php endif; ?>
     214
    157215        <?php if ( $filikod_data['total'] === 0 ) : ?>
    158                 <p class="filikod-alt-audit-empty"><?php esc_html_e( 'No images match this filter.', 'filikod' ); ?></p>
     216                <?php $filikod_empty_key = isset( $filikod_url_to_internal[ $filikod_status_param ] ) ? $filikod_url_to_internal[ $filikod_status_param ] : 'missing'; ?>
     217                <p class="filikod-alt-audit-empty"><?php echo esc_html( isset( $filikod_empty_messages[ $filikod_empty_key ] ) ? $filikod_empty_messages[ $filikod_empty_key ] : __( 'No images match this filter.', 'filikod' ) ); ?></p>
    159218        <?php else : ?>
    160219                <table class="wp-list-table widefat fixed striped filikod-alt-audit-table">
    … …  
    330389                <?php endif; ?>
    331390        <?php endif; ?>
     391                <?php endif; // Fin de la vue liste. ?>
    332392                </div><!-- .filikod-tabs-content -->
    333393        </div><!-- .filikod-tabs-wrapper -->
  • filikod/trunk/admin/views/dashboard.php

    r3704678 r3833014  
    11<?php
    22/**
    3  * Vue du Dashboard Filikod
     3 * Vue du tableau de bord Filikod (refonte 1.4.0, retouchée le 29/11/2026 sur les retours de Sébastien).
     4 *
     5 * En haut à gauche, l'état de santé du texte ALT : le score sur 100 avec son appréciation en toutes
     6 * lettres, puis les six contrôles et leurs chiffres (tout ce que Filikod vérifie). À droite, ce qu'il
     7 * faut corriger (un seul bouton principal) et ce qui se passe pour les prochaines images. Dessous, la
     8 * vue d'ensemble de la médiathèque et les outils Filikod rangés sous Médias et Outils. L'invitation à laisser
     9 * un avis est un bandeau compact sous le titre.
    410 *
    511 * @package Filikod
    … …  
    1723
    1824$filikod_plugin       = filikod();
    19 $filikod_total_images = $filikod_plugin->dashboard->get_total_images_count();
    20 $filikod_original_size = $filikod_plugin->dashboard->get_original_total_size();
    21 $filikod_optimized_size = $filikod_plugin->dashboard->get_optimized_total_size();
    22 $filikod_saved_bytes   = $filikod_original_size['bytes'] - $filikod_optimized_size['bytes'];
    23 $filikod_saved_percentage = $filikod_original_size['bytes'] > 0
    24         ? round( ( $filikod_saved_bytes / $filikod_original_size['bytes'] ) * 100, 1 )
    25         : 0;
    26 $filikod_optimization_ratio = $filikod_original_size['bytes'] > 0
    27         ? round( ( $filikod_optimized_size['bytes'] / $filikod_original_size['bytes'] ) * 100, 1 )
    28         : 100;
    29 
    30 $filikod_alt_audit   = $filikod_plugin->dashboard->get_alt_audit_data();
    31 $filikod_alt_counts  = $filikod_alt_audit['counts'];
    32 $filikod_alt_score   = isset( $filikod_alt_audit['global_score_precise'] ) ? (float) $filikod_alt_audit['global_score_precise'] : (float) $filikod_alt_audit['global_score'];
    33 // When there are no images with problems (missing, generic, too short, too long, duplicated), show 100%.
    34 // Decorative images are excluded from the score and never count as an issue.
    35 $filikod_has_alt_issues = ( ! empty( $filikod_alt_counts['missing'] ) || ! empty( $filikod_alt_counts['generic'] )
    36         || ! empty( $filikod_alt_counts['too_short'] ) || ! empty( $filikod_alt_counts['too_long'] )
    37         || ! empty( $filikod_alt_counts['duplicate'] ) );
    38 if ( ! $filikod_has_alt_issues ) {
     25$filikod_total_images = (int) $filikod_plugin->dashboard->get_total_images_count();
     26
     27$filikod_alt_audit  = $filikod_plugin->dashboard->get_alt_audit_data();
     28$filikod_alt_counts = wp_parse_args(
     29        isset( $filikod_alt_audit['counts'] ) ? (array) $filikod_alt_audit['counts'] : array(),
     30        array( 'missing' => 0, 'generic' => 0, 'too_short' => 0, 'too_long' => 0, 'duplicate' => 0, 'decorative' => 0, 'correct' => 0 )
     31);
     32$filikod_alt_score = isset( $filikod_alt_audit['global_score_precise'] ) ? (float) $filikod_alt_audit['global_score_precise'] : ( isset( $filikod_alt_audit['global_score'] ) ? (float) $filikod_alt_audit['global_score'] : 0.0 );
     33
     34// À corriger : ce qu'un lecteur d'écran ou Google ne peut pas utiliser. À relire : ce qui peut être voulu.
     35$filikod_to_fix    = (int) $filikod_alt_counts['missing'] + (int) $filikod_alt_counts['generic'] + (int) $filikod_alt_counts['too_short'];
     36$filikod_to_review = (int) $filikod_alt_counts['duplicate'] + (int) $filikod_alt_counts['too_long'];
     37if ( 0 === $filikod_to_fix && 0 === $filikod_to_review ) {
     38        // Aucune image à problème : 100 %, les décoratives ne comptent pas.
    3939        $filikod_alt_score = 100.0;
    4040}
    41 
    42 $filikod_avg_size = $filikod_plugin->dashboard->get_average_image_size_from( $filikod_optimized_size['bytes'], $filikod_total_images );
    43 
    44 // Images en double (module Duplicates) : redondances détectées, ou invitation à lancer le scan.
     41$filikod_score_int = (int) round( min( 100.0, max( 0.0, $filikod_alt_score ) ) );
     42if ( $filikod_score_int >= 75 ) {
     43        $filikod_score_label = __( 'Good score', 'filikod' );
     44} elseif ( $filikod_score_int >= 50 ) {
     45        $filikod_score_label = __( 'Could be better', 'filikod' );
     46} else {
     47        $filikod_score_label = __( 'Needs work', 'filikod' );
     48}
     49
     50// Le bouton principal ouvre le premier onglet « à corriger » qui a des images.
     51$filikod_audit_base = add_query_arg( array( 'page' => 'filikod-alt-audit' ), admin_url( 'admin.php' ) );
     52$filikod_fix_status = 'missing';
     53foreach ( array( 'missing' => 'missing', 'generic' => 'generic', 'too_short' => 'too_short' ) as $filikod_tab => $filikod_key ) {
     54        if ( (int) $filikod_alt_counts[ $filikod_key ] > 0 ) {
     55                $filikod_fix_status = $filikod_tab;
     56                break;
     57        }
     58}
     59$filikod_fix_parts = array(
     60        'missing'   => __( 'Missing', 'filikod' ),
     61        'generic'   => __( 'Generic', 'filikod' ),
     62        'too_short' => __( 'Too short', 'filikod' ),
     63);
     64
     65// Prochaines images : options d'envoi, toutes coupées par défaut.
     66$filikod_upload_options = array(
     67        array( 'label' => __( 'Fill missing ALT text from the title or file name', 'filikod' ), 'on' => 'yes' === get_option( 'filikod_auto_alt', 'no' ) ),
     68        array( 'label' => __( 'Clean ALT text taken from file names', 'filikod' ), 'on' => 'yes' === get_option( 'filikod_clean_alt_special_chars', 'no' ) ),
     69        array( 'label' => __( 'Clear the title, after using it as ALT text', 'filikod' ), 'on' => 'yes' === get_option( 'filikod_remove_title', 'no' ) ),
     70        array(
     71                /* translators: %s: maximum width in pixels, e.g. "2,000" */
     72                'label' => sprintf( __( 'Resize images wider than %s px', 'filikod' ), number_format_i18n( (int) $filikod_plugin->image_resizer->get_max_width() ) ),
     73                'on'    => 'yes' === get_option( 'filikod_auto_resize_enabled', 'no' ),
     74        ),
     75);
     76
     77// Outils Filikod rangés sous Médias et Outils.
    4578$filikod_dup_summary = class_exists( 'Filikod_Duplicates' )
    4679        ? Filikod_Duplicates::get_summary()
    4780        : array( 'groups' => 0, 'redundant' => 0, 'wasted_bytes' => 0, 'hashed' => 0, 'total' => 0, 'scanned' => false );
    48 $filikod_dup_url = add_query_arg( array( 'page' => 'filikod-duplicates' ), admin_url( 'admin.php' ) );
     81$filikod_max_width   = (int) $filikod_plugin->image_resizer->get_max_width();
     82$filikod_wide_count  = class_exists( 'Filikod_Media_Utils' ) ? Filikod_Media_Utils::count_images_wider_than( $filikod_max_width ) : null;
     83
     84// État de santé : les six contrôles de Filikod, chacun vers son onglet de Textes ALT.
     85$filikod_health_items = array(
     86        'missing'    => array( __( 'Missing', 'filikod' ), 'missing' ),
     87        'generic'    => array( __( 'Generic', 'filikod' ), 'generic' ),
     88        'too_short'  => array( __( 'Too short', 'filikod' ), 'too_short' ),
     89        'too_long'   => array( __( 'Too long', 'filikod' ), 'too_long' ),
     90        'duplicate'  => array( __( 'Duplicated', 'filikod' ), 'duplicated' ),
     91        'decorative' => array( __( 'Decorative', 'filikod' ), 'decorative' ),
     92);
     93
     94// Vue d'ensemble de la médiathèque (taille totale mise en cache par le tableau de bord).
     95$filikod_media_size  = $filikod_plugin->dashboard->get_optimized_total_size();
     96$filikod_media_bytes = isset( $filikod_media_size['bytes'] ) ? (int) $filikod_media_size['bytes'] : 0;
     97$filikod_avg_bytes   = $filikod_total_images > 0 ? (int) round( $filikod_media_bytes / $filikod_total_images ) : 0;
     98
     99$filikod_forum_link = '<a href="https://wordpress.org/support/plugin/filikod/" target="_blank" rel="noopener noreferrer">'
     100        . esc_html__( 'A problem? Ask on the support forum', 'filikod' )
     101        . '<span class="screen-reader-text"> ' . esc_html__( '(opens in a new tab)', 'filikod' ) . '</span></a>';
    49102?>
    50 
    51 <div class="wrap filikod-dashboard">
     103<div class="wrap filikod-dashboard filikod-dashboard-v2">
    52104        <h1><?php echo esc_html( get_admin_page_title() ); ?></h1>
    53105
     106        <?php
     107        // Invitation à laisser un avis, en bandeau compact sous le titre (29/11/2026 : en bas de page, peu de gens
     108        // l'auraient vue). Après quelques jours d'utilisation ou tout de suite après une mise à jour, refermable.
     109        $filikod_scored_images = 0;
     110        foreach ( array( 'missing', 'generic', 'too_short', 'too_long', 'duplicate', 'correct' ) as $filikod_count_key ) {
     111                $filikod_scored_images += isset( $filikod_alt_counts[ $filikod_count_key ] ) ? (int) $filikod_alt_counts[ $filikod_count_key ] : 0;
     112        }
     113        $filikod_review_shown = Filikod_Dashboard::should_show_review_prompt( get_current_user_id(), $filikod_scored_images );
     114        if ( $filikod_review_shown ) {
     115                // Nombre cité dans le bandeau : images vérifiées par Filikod, décoratives comprises.
     116                $filikod_checked_images = $filikod_scored_images + ( isset( $filikod_alt_counts['decorative'] ) ? (int) $filikod_alt_counts['decorative'] : 0 );
     117                include FILIKOD_PLUGIN_PATH . 'admin/views/dashboard-review.php';
     118        }
     119        ?>
     120
    54121        <div class="filikod-dashboard-content">
    55                 <!-- Ligne 1 : Welcome -->
    56                 <div class="filikod-welcome-panel">
    57                         <h2><?php esc_html_e( 'Welcome to Filikod', 'filikod' ); ?></h2>
    58                         <p><?php esc_html_e( 'Optimize your media files, improve accessibility and SEO for your visual content.', 'filikod' ); ?></p>
    59                         <p>
    60                                 <a href="<?php echo esc_url( admin_url( 'admin.php?page=filikod-settings' ) ); ?>" class="button button-primary filikod-go-to-settings-button">
    61                                         <?php esc_html_e( 'Go to Settings', 'filikod' ); ?>
    62                                 </a>
    63                         </p>
    64                 </div>
    65 
    66                 <!-- Ligne 2 : Alt Text Health | Media Size Savings -->
    67                 <div class="filikod-cards-row filikod-cards-row-main">
    68                         <!-- Carte Alt Text Health -->
    69                         <div class="filikod-card filikod-card-alt">
    70                                 <h3 class="filikod-card-title"><?php esc_html_e( 'Alt Text Health', 'filikod' ); ?></h3>
     122
     123                <div class="filikod-dashboard-top">
     124                        <!-- État de santé du texte ALT : le score et les six contrôles -->
     125                        <section class="filikod-card filikod-card-alt" aria-labelledby="filikod-health-title">
     126                                <h2 id="filikod-health-title" class="filikod-card-title"><?php esc_html_e( 'Alt Text Health', 'filikod' ); ?></h2>
     127                                <?php if ( $filikod_total_images > 0 ) : ?>
    71128                                <div class="filikod-alt-donut-wrapper">
    72129                                        <?php
    73                                         $filikod_alt_radius         = 80;
    74                                         $filikod_alt_circumference = 2 * M_PI * $filikod_alt_radius;
    75                                         $filikod_alt_progress_pct  = min( 100.0, max( 0.0, $filikod_alt_score ) );
    76                                         $filikod_alt_progress_len = $filikod_alt_circumference * ( $filikod_alt_progress_pct / 100 );
    77                                         $filikod_alt_remaining    = $filikod_alt_circumference - $filikod_alt_progress_len;
    78                                         $filikod_alt_score_display = number_format_i18n( $filikod_alt_score, 1 );
     130                                        $filikod_ring_radius = 80;
     131                                        $filikod_ring_circ   = 2 * M_PI * $filikod_ring_radius;
     132                                        $filikod_ring_len    = $filikod_ring_circ * ( $filikod_score_int / 100 );
    79133                                        ?>
    80                                         <svg class="filikod-alt-donut-chart" viewBox="0 0 200 200" aria-label="<?php esc_attr_e( 'ALT score gauge', 'filikod' ); ?>">
    81                                                 <circle class="filikod-alt-donut-background" cx="100" cy="100" r="<?php echo esc_attr( $filikod_alt_radius ); ?>" fill="none" stroke="#e0e0e0" stroke-width="20"></circle>
    82                                                 <circle class="filikod-alt-donut-progress" cx="100" cy="100" r="<?php echo esc_attr( $filikod_alt_radius ); ?>" fill="none" stroke="#2E00D5" stroke-width="20"
    83                                                         stroke-dasharray="<?php echo esc_attr( $filikod_alt_progress_len ); ?> <?php echo esc_attr( $filikod_alt_remaining ); ?>"
    84                                                         stroke-dashoffset="<?php echo esc_attr( $filikod_alt_circumference / 4 ); ?>"
     134                                        <svg class="filikod-alt-donut-chart" viewBox="0 0 200 200" role="img" aria-label="<?php echo esc_attr( sprintf( /* translators: %d: ALT score out of 100 */ __( 'ALT score: %d out of 100', 'filikod' ), $filikod_score_int ) ); ?>">
     135                                                <circle cx="100" cy="100" r="<?php echo esc_attr( $filikod_ring_radius ); ?>" fill="none" stroke="#e0e0e0" stroke-width="18"></circle>
     136                                                <circle cx="100" cy="100" r="<?php echo esc_attr( $filikod_ring_radius ); ?>" fill="none" stroke="#2E00D5" stroke-width="18"
     137                                                        stroke-dasharray="<?php echo esc_attr( $filikod_ring_len ); ?> <?php echo esc_attr( $filikod_ring_circ - $filikod_ring_len ); ?>"
    85138                                                        transform="rotate(-90 100 100)"></circle>
    86                                                 <text x="100" y="100" text-anchor="middle" dominant-baseline="middle" class="filikod-alt-donut-percentage">
    87                                                         <?php echo esc_html( $filikod_alt_score_display ); ?>%
    88                                                 </text>
     139                                                <text x="100" y="92" text-anchor="middle" dominant-baseline="middle" class="filikod-hero-score-value"><?php echo esc_html( number_format_i18n( $filikod_score_int ) ); ?></text>
     140                                                <text x="100" y="128" text-anchor="middle" dominant-baseline="middle" class="filikod-hero-score-unit"><?php esc_html_e( 'out of 100', 'filikod' ); ?></text>
    89141                                        </svg>
    90                                         <span class="filikod-alt-score-label"><?php esc_html_e( 'ALT Score', 'filikod' ); ?></span>
    91                                 </div>
    92                                 <div class="filikod-alt-legend" aria-hidden="true">
    93                                         <span class="filikod-alt-legend-item"><span class="filikod-alt-legend-dot filikod-alt-legend-dot-red"></span> 0–49</span>
    94                                         <span class="filikod-alt-legend-item"><span class="filikod-alt-legend-dot filikod-alt-legend-dot-orange"></span> 50–74</span>
    95                                         <span class="filikod-alt-legend-item"><span class="filikod-alt-legend-dot filikod-alt-legend-dot-green"></span> 75–100</span>
    96                                 </div>
     142                                </div>
     143                                <p class="filikod-health-label"><?php echo esc_html( $filikod_score_label ); ?></p>
     144                                <?php endif; ?>
    97145                                <div class="filikod-alt-separator"></div>
    98146                                <div class="filikod-alt-counts">
    99                                         <?php
    100                                         $filikod_alt_audit_base = esc_url( add_query_arg( array( 'page' => 'filikod-alt-audit' ), admin_url( 'admin.php' ) ) );
    101                                         ?>
    102                                         <div class="filikod-alt-count-item">
    103                                                 <span class="filikod-alt-count-label"><?php esc_html_e( 'Missing', 'filikod' ); ?>:</span>
    104                                                 <a href="<?php echo esc_url( add_query_arg( array( 'status' => 'missing' ), $filikod_alt_audit_base ) ); ?>" class="filikod-alt-count-link" role="link" aria-label="<?php esc_attr_e( 'View images with missing ALT', 'filikod' ); ?>"><?php echo esc_html( (string) $filikod_alt_counts['missing'] ); ?></a>
    105                                         </div>
    106                                         <div class="filikod-alt-count-item">
    107                                                 <span class="filikod-alt-count-label"><?php esc_html_e( 'Generic', 'filikod' ); ?>:</span>
    108                                                 <a href="<?php echo esc_url( add_query_arg( array( 'status' => 'generic' ), $filikod_alt_audit_base ) ); ?>" class="filikod-alt-count-link" role="link" aria-label="<?php esc_attr_e( 'View images with generic ALT', 'filikod' ); ?>"><?php echo esc_html( (string) $filikod_alt_counts['generic'] ); ?></a>
    109                                         </div>
    110                                         <div class="filikod-alt-count-item">
    111                                                 <span class="filikod-alt-count-label"><?php esc_html_e( 'Too short', 'filikod' ); ?>:</span>
    112                                                 <a href="<?php echo esc_url( add_query_arg( array( 'status' => 'too_short' ), $filikod_alt_audit_base ) ); ?>" class="filikod-alt-count-link" role="link" aria-label="<?php esc_attr_e( 'View images with too short ALT', 'filikod' ); ?>"><?php echo esc_html( (string) $filikod_alt_counts['too_short'] ); ?></a>
    113                                         </div>
    114                                         <div class="filikod-alt-count-item">
    115                                                 <span class="filikod-alt-count-label"><?php esc_html_e( 'Too long', 'filikod' ); ?>:</span>
    116                                                 <a href="<?php echo esc_url( add_query_arg( array( 'status' => 'too_long' ), $filikod_alt_audit_base ) ); ?>" class="filikod-alt-count-link" role="link" aria-label="<?php esc_attr_e( 'View images with too long ALT', 'filikod' ); ?>"><?php echo esc_html( (string) $filikod_alt_counts['too_long'] ); ?></a>
    117                                         </div>
    118                                         <div class="filikod-alt-count-item">
    119                                                 <span class="filikod-alt-count-label"><?php esc_html_e( 'Duplicated', 'filikod' ); ?>:</span>
    120                                                 <a href="<?php echo esc_url( add_query_arg( array( 'status' => 'duplicated' ), $filikod_alt_audit_base ) ); ?>" class="filikod-alt-count-link" role="link" aria-label="<?php esc_attr_e( 'View images with duplicated ALT', 'filikod' ); ?>"><?php echo esc_html( (string) $filikod_alt_counts['duplicate'] ); ?></a>
    121                                         </div>
    122                                         <div class="filikod-alt-count-item">
    123                                                 <span class="filikod-alt-count-label"><?php esc_html_e( 'Decorative', 'filikod' ); ?>:</span>
    124                                                 <a href="<?php echo esc_url( add_query_arg( array( 'status' => 'decorative' ), $filikod_alt_audit_base ) ); ?>" class="filikod-alt-count-link" role="link" aria-label="<?php esc_attr_e( 'View decorative images (excluded from the ALT score)', 'filikod' ); ?>"><?php echo esc_html( (string) $filikod_alt_counts['decorative'] ); ?></a>
    125                                         </div>
    126                                 </div>
    127                         </div>
    128 
    129                         <!-- Carte Media Size Savings -->
    130                         <div class="filikod-card filikod-card-media">
    131                                 <h3 class="filikod-card-title"><?php esc_html_e( 'Media Size Savings', 'filikod' ); ?></h3>
    132                                 <div class="filikod-media-percentage-block">
    133                                         <span class="filikod-media-percentage-value"><?php echo esc_html( (string) $filikod_saved_percentage ); ?>%</span>
    134                                         <span class="filikod-media-percentage-label"><?php esc_html_e( 'Resizing size impact', 'filikod' ); ?></span>
    135                                 </div>
    136                                 <p class="filikod-media-saved">
    137                                         <?php
    138                                         printf(
    139                                                 /* translators: %s: amount saved (e.g. "13.56 MB") */
    140                                                 esc_html__( 'You saved %s', 'filikod' ),
    141                                                 esc_html( $filikod_plugin->image_resizer->format_saved_bytes( $filikod_saved_bytes ) )
    142                                         );
    143                                         ?>
    144                                 </p>
    145                                 <div class="filikod-progress-bar-wrapper">
    146                                         <div class="filikod-progress-bar-header">
    147                                                 <span class="filikod-progress-label"><?php esc_html_e( 'Original', 'filikod' ); ?></span>
    148                                                 <span class="filikod-progress-value"><?php echo esc_html( $filikod_original_size['formatted'] ); ?></span>
    149                                         </div>
    150                                         <div class="filikod-progress-bar-container">
    151                                                 <div class="filikod-progress-bar filikod-progress-bar-original" style="width: 100%;"></div>
    152                                         </div>
    153                                 </div>
    154                                 <div class="filikod-progress-bar-wrapper">
    155                                         <div class="filikod-progress-bar-header">
    156                                                 <span class="filikod-progress-label"><?php esc_html_e( 'Optimized', 'filikod' ); ?></span>
    157                                                 <span class="filikod-progress-value"><?php echo esc_html( $filikod_optimized_size['formatted'] ); ?></span>
    158                                         </div>
    159                                         <div class="filikod-progress-bar-container">
    160                                                 <div class="filikod-progress-bar filikod-progress-bar-optimized" style="width: <?php echo esc_attr( $filikod_optimization_ratio ); ?>%;"></div>
    161                                         </div>
    162                                 </div>
     147                                        <?php foreach ( $filikod_health_items as $filikod_count_key => $filikod_health_item ) : ?>
     148                                        <a class="filikod-alt-count-item" href="<?php echo esc_url( add_query_arg( array( 'status' => $filikod_health_item[1] ), $filikod_audit_base ) ); ?>">
     149                                                <span class="filikod-alt-count-label"><?php echo esc_html( $filikod_health_item[0] ); ?></span>
     150                                                <span class="filikod-alt-count-value"><?php echo esc_html( number_format_i18n( (int) $filikod_alt_counts[ $filikod_count_key ] ) ); ?></span>
     151                                        </a>
     152                                        <?php endforeach; ?>
     153                                </div>
     154                        </section>
     155
     156                        <div class="filikod-dashboard-side">
     157                                <!-- Ce qu'il faut corriger : un titre, une phrase, un bouton -->
     158                                <section class="filikod-card filikod-hero" aria-labelledby="filikod-hero-title">
     159                        <div class="filikod-hero-text">
     160                                <?php if ( 0 === $filikod_total_images ) : ?>
     161                                        <h2 id="filikod-hero-title" class="filikod-hero-title"><?php esc_html_e( 'Add an image to start the check', 'filikod' ); ?></h2>
     162                                        <p class="filikod-hero-lead"><?php esc_html_e( 'Filikod checks the ALT text of every image in your Media Library as soon as there is one.', 'filikod' ); ?></p>
     163                                <?php elseif ( $filikod_to_fix > 0 ) : ?>
     164                                        <h2 id="filikod-hero-title" class="filikod-hero-title">
     165                                                <?php
     166                                                printf(
     167                                                        esc_html(
     168                                                                /* translators: 1: number of images to fix, 2: number of images in the Media Library */
     169                                                                _n( '%1$s image to fix out of %2$s', '%1$s images to fix out of %2$s', $filikod_to_fix, 'filikod' )
     170                                                        ),
     171                                                        esc_html( number_format_i18n( $filikod_to_fix ) ),
     172                                                        esc_html( number_format_i18n( $filikod_total_images ) )
     173                                                );
     174                                                ?>
     175                                        </h2>
     176                                        <p class="filikod-hero-lead"><?php esc_html_e( 'Without a useful ALT text, a screen reader says nothing about these images, and neither does Google. You fix them in the list, without changing page.', 'filikod' ); ?></p>
     177                                        <p class="filikod-hero-parts">
     178                                                <?php
     179                                                $filikod_part_links = array();
     180                                                foreach ( $filikod_fix_parts as $filikod_part_status => $filikod_part_label ) {
     181                                                        $filikod_part_count = (int) $filikod_alt_counts[ $filikod_part_status ];
     182                                                        if ( $filikod_part_count > 0 ) {
     183                                                                $filikod_part_links[] = '<a href="' . esc_url( add_query_arg( array( 'status' => $filikod_part_status ), $filikod_audit_base ) ) . '">'
     184                                                                        . sprintf(
     185                                                                                /* translators: 1: issue type (e.g. "Missing"), 2: number of images */
     186                                                                                esc_html__( '%1$s: %2$s', 'filikod' ),
     187                                                                                esc_html( $filikod_part_label ),
     188                                                                                '<strong>' . esc_html( number_format_i18n( $filikod_part_count ) ) . '</strong>'
     189                                                                        ) . '</a>';
     190                                                        }
     191                                                }
     192                                                echo wp_kses( implode( ' <span class="filikod-hero-sep" aria-hidden="true">·</span> ', $filikod_part_links ), array( 'a' => array( 'href' => true ), 'strong' => array(), 'span' => array( 'class' => true, 'aria-hidden' => true ) ) );
     193                                                ?>
     194                                        </p>
     195                                        <p class="filikod-hero-actions">
     196                                                <a href="<?php echo esc_url( add_query_arg( array( 'status' => $filikod_fix_status ), $filikod_audit_base ) ); ?>" class="button button-primary filikod-btn-primary"><?php esc_html_e( 'Fix these images', 'filikod' ); ?></a>
     197                                        </p>
     198                                <?php else : ?>
     199                                        <h2 id="filikod-hero-title" class="filikod-hero-title">
     200                                                <?php
     201                                                printf(
     202                                                        esc_html(
     203                                                                /* translators: %s: number of images in the Media Library */
     204                                                                _n( '%s image checked: its ALT text is usable', '%s images checked: all have a usable ALT text', $filikod_total_images, 'filikod' )
     205                                                        ),
     206                                                        esc_html( number_format_i18n( $filikod_total_images ) )
     207                                                );
     208                                                ?>
     209                                        </h2>
     210                                        <p class="filikod-hero-lead"><?php esc_html_e( 'Nothing urgent to fix. New images are checked as soon as they are uploaded.', 'filikod' ); ?></p>
     211                                        <p class="filikod-hero-actions">
     212                                                <a href="<?php echo esc_url( $filikod_audit_base ); ?>" class="filikod-btn-outline"><?php esc_html_e( 'Open ALT Text', 'filikod' ); ?></a>
     213                                        </p>
     214                                <?php endif; ?>
     215                                <?php if ( ! $filikod_review_shown ) : // Le bandeau d'avis porte déjà ce lien. ?>
     216                                <p class="filikod-hero-support"><?php echo wp_kses( $filikod_forum_link, array( 'a' => array( 'href' => true, 'target' => true, 'rel' => true ), 'span' => array( 'class' => true ) ) ); ?></p>
     217                                <?php endif; ?>
     218                        </div>
     219                                </section>
     220
     221                        <!-- Ce qui se passe pour les prochaines images -->
     222                        <section class="filikod-card filikod-dashboard-list" aria-labelledby="filikod-next-title">
     223                                <h2 id="filikod-next-title" class="filikod-card-title"><?php esc_html_e( 'Next uploads', 'filikod' ); ?></h2>
     224                                <ul class="filikod-dashboard-options">
     225                                        <?php foreach ( $filikod_upload_options as $filikod_option ) : ?>
     226                                        <li>
     227                                                <span><?php echo esc_html( $filikod_option['label'] ); ?></span>
     228                                                <span class="filikod-option-state<?php echo $filikod_option['on'] ? ' is-on' : ''; ?>"><?php echo $filikod_option['on'] ? esc_html__( 'On', 'filikod' ) : esc_html__( 'Off', 'filikod' ); ?></span>
     229                                        </li>
     230                                        <?php endforeach; ?>
     231                                </ul>
     232                                <p class="filikod-dashboard-more"><a href="<?php echo esc_url( admin_url( 'admin.php?page=filikod-settings' ) ); ?>"><?php esc_html_e( 'Change in Settings', 'filikod' ); ?></a></p>
     233                        </section>
    163234                        </div>
    164235                </div>
    165236
    166                 <!-- Ligne 3 : Library Overview (un seul bloc) -->
    167                 <div class="filikod-cards-row filikod-cards-row-overview">
    168                         <div class="filikod-card filikod-card-overview">
    169                                 <h3 class="filikod-card-title"><?php esc_html_e( 'Library Overview', 'filikod' ); ?></h3>
    170                                 <div class="filikod-overview-items">
    171                                         <div class="filikod-overview-item">
    172                                                 <div class="filikod-overview-value"><?php echo esc_html( number_format_i18n( $filikod_total_images, 0 ) ); ?></div>
    173                                                 <div class="filikod-overview-label"><?php esc_html_e( 'Total Images', 'filikod' ); ?></div>
    174                                         </div>
    175                                         <div class="filikod-overview-item">
    176                                                 <div class="filikod-overview-value"><?php echo esc_html( $filikod_optimized_size['formatted'] ); ?></div>
    177                                                 <div class="filikod-overview-label"><?php esc_html_e( 'Total Media Size', 'filikod' ); ?></div>
    178                                         </div>
    179                                         <div class="filikod-overview-item">
    180                                                 <div class="filikod-overview-value"><?php echo esc_html( $filikod_avg_size['formatted'] ); ?></div>
    181                                                 <div class="filikod-overview-label"><?php esc_html_e( 'Average size per image', 'filikod' ); ?></div>
    182                                         </div>
    183                                         <div class="filikod-overview-item filikod-overview-item-duplicates">
    184                                                 <?php if ( $filikod_dup_summary['scanned'] ) : ?>
    185                                                         <div class="filikod-overview-value">
    186                                                                 <a href="<?php echo esc_url( $filikod_dup_url ); ?>" class="filikod-overview-link" aria-label="<?php esc_attr_e( 'View duplicate images', 'filikod' ); ?>"><?php echo esc_html( number_format_i18n( (int) $filikod_dup_summary['redundant'], 0 ) ); ?></a>
    187                                                         </div>
    188                                                         <div class="filikod-overview-label"><?php esc_html_e( 'Duplicate images', 'filikod' ); ?></div>
    189                                                         <div class="filikod-overview-sub">
    190                                                                 <?php
    191                                                                 printf(
    192                                                                         /* translators: 1: number of duplicate groups, 2: wasted disk space (formatted) */
    193                                                                         esc_html__( '%1$s groups, %2$s wasted', 'filikod' ),
    194                                                                         esc_html( number_format_i18n( (int) $filikod_dup_summary['groups'], 0 ) ),
    195                                                                         esc_html( Filikod_Media_Utils::format_bytes( (int) $filikod_dup_summary['wasted_bytes'] ) )
    196                                                                 );
    197                                                                 ?>
    198                                                         </div>
    199                                                 <?php else : ?>
    200                                                         <div class="filikod-overview-value filikod-overview-value-muted">&ndash;</div>
    201                                                         <div class="filikod-overview-label"><?php esc_html_e( 'Duplicate images', 'filikod' ); ?></div>
    202                                                         <div class="filikod-overview-sub">
    203                                                                 <a href="<?php echo esc_url( $filikod_dup_url ); ?>"><?php esc_html_e( 'Scan the library to detect duplicates', 'filikod' ); ?></a>
    204                                                         </div>
    205                                                 <?php endif; ?>
    206                                         </div>
    207                                 </div>
    208                         </div>
    209                 </div>
     237                <!-- Vue d'ensemble de la médiathèque -->
     238                <section class="filikod-card filikod-card-overview" aria-labelledby="filikod-overview-title">
     239                        <h2 id="filikod-overview-title" class="filikod-card-title"><?php esc_html_e( 'Library Overview', 'filikod' ); ?></h2>
     240                        <div class="filikod-overview-items">
     241                                <div class="filikod-overview-item">
     242                                        <div class="filikod-overview-value"><?php echo esc_html( number_format_i18n( $filikod_total_images ) ); ?></div>
     243                                        <div class="filikod-overview-label"><?php esc_html_e( 'Total Images', 'filikod' ); ?></div>
     244                                </div>
     245                                <div class="filikod-overview-item">
     246                                        <div class="filikod-overview-value"><?php echo esc_html( size_format( $filikod_media_bytes, 2 ) ); ?></div>
     247                                        <div class="filikod-overview-label"><?php esc_html_e( 'Total Media Size', 'filikod' ); ?></div>
     248                                </div>
     249                                <div class="filikod-overview-item">
     250                                        <div class="filikod-overview-value"><?php echo esc_html( size_format( $filikod_avg_bytes, 2 ) ); ?></div>
     251                                        <div class="filikod-overview-label"><?php esc_html_e( 'Average size per image', 'filikod' ); ?></div>
     252                                </div>
     253                                <div class="filikod-overview-item filikod-overview-item-duplicates">
     254                                        <?php if ( ! empty( $filikod_dup_summary['scanned'] ) ) : ?>
     255                                                <div class="filikod-overview-value">
     256                                                        <a href="<?php echo esc_url( Filikod_Admin::duplicates_url() ); ?>" class="filikod-overview-link"><?php echo esc_html( number_format_i18n( (int) $filikod_dup_summary['redundant'] ) ); ?></a>
     257                                                </div>
     258                                                <div class="filikod-overview-label"><?php esc_html_e( 'Duplicate images', 'filikod' ); ?></div>
     259                                                <div class="filikod-overview-sub">
     260                                                        <?php
     261                                                        printf(
     262                                                                /* translators: 1: number of duplicate groups, 2: wasted disk space (formatted) */
     263                                                                esc_html__( '%1$s groups, %2$s wasted', 'filikod' ),
     264                                                                esc_html( number_format_i18n( (int) $filikod_dup_summary['groups'] ) ),
     265                                                                esc_html( size_format( (int) $filikod_dup_summary['wasted_bytes'], 2 ) )
     266                                                        );
     267                                                        ?>
     268                                                </div>
     269                                        <?php else : ?>
     270                                                <div class="filikod-overview-value filikod-overview-value-muted">&ndash;</div>
     271                                                <div class="filikod-overview-label"><?php esc_html_e( 'Duplicate images', 'filikod' ); ?></div>
     272                                                <div class="filikod-overview-sub">
     273                                                        <a href="<?php echo esc_url( Filikod_Admin::duplicates_url() ); ?>"><?php esc_html_e( 'Scan the library to detect duplicates', 'filikod' ); ?></a>
     274                                                </div>
     275                                        <?php endif; ?>
     276                                </div>
     277                        </div>
     278                </section>
     279
     280                <!-- Accès rapide aux outils Filikod, y compris ceux rangés sous Médias et Outils -->
     281                <section class="filikod-card filikod-dashboard-tools" aria-labelledby="filikod-tools-title">
     282                        <h2 id="filikod-tools-title" class="filikod-card-title"><?php esc_html_e( 'Filikod tools', 'filikod' ); ?></h2>
     283
     284                        <div class="filikod-tool-row">
     285                                <div class="filikod-tool-text">
     286                                        <strong><?php esc_html_e( 'Bulk actions', 'filikod' ); ?></strong>
     287                                        <span><?php esc_html_e( 'Fill missing ALT text, clean ALT text taken from file names or clear image titles in one go.', 'filikod' ); ?></span>
     288                                        <span class="filikod-tool-where"><?php esc_html_e( 'Filikod > ALT Text > Bulk actions', 'filikod' ); ?></span>
     289                                </div>
     290                                <a href="<?php echo esc_url( Filikod_Admin::bulk_url() ); ?>" class="filikod-btn-outline"><?php esc_html_e( 'Open', 'filikod' ); ?></a>
     291                        </div>
     292
     293                        <div class="filikod-tool-row">
     294                                <div class="filikod-tool-text">
     295                                        <strong><?php esc_html_e( 'Duplicate files', 'filikod' ); ?></strong>
     296                                        <span>
     297                                                <?php
     298                                                if ( ! empty( $filikod_dup_summary['scanned'] ) ) {
     299                                                        esc_html_e( 'Find the files uploaded twice and free up space in your Media Library.', 'filikod' );
     300                                                } else {
     301                                                        esc_html_e( 'Scan your Media Library once to find the files uploaded twice.', 'filikod' );
     302                                                }
     303                                                ?>
     304                                        </span>
     305                                        <span class="filikod-tool-where"><?php esc_html_e( 'Media > Duplicate files', 'filikod' ); ?></span>
     306                                </div>
     307                                <a href="<?php echo esc_url( Filikod_Admin::duplicates_url() ); ?>" class="filikod-btn-outline"><?php esc_html_e( 'Open', 'filikod' ); ?></a>
     308                        </div>
     309
     310                        <div class="filikod-tool-row">
     311                                <div class="filikod-tool-text">
     312                                        <strong><?php esc_html_e( 'Resize large images', 'filikod' ); ?></strong>
     313                                        <span>
     314                                                <?php
     315                                                if ( null !== $filikod_wide_count && $filikod_wide_count > 0 ) {
     316                                                        printf(
     317                                                                esc_html(
     318                                                                        /* translators: 1: number of images, 2: maximum width in pixels */
     319                                                                        _n( '%1$s image is wider than %2$s px.', '%1$s images are wider than %2$s px.', (int) $filikod_wide_count, 'filikod' )
     320                                                                ),
     321                                                                esc_html( number_format_i18n( (int) $filikod_wide_count ) ),
     322                                                                esc_html( number_format_i18n( $filikod_max_width ) )
     323                                                        );
     324                                                } elseif ( null !== $filikod_wide_count ) {
     325                                                        printf(
     326                                                                /* translators: %s: maximum width in pixels */
     327                                                                esc_html__( 'No image is wider than %s px.', 'filikod' ),
     328                                                                esc_html( number_format_i18n( $filikod_max_width ) )
     329                                                        );
     330                                                } else {
     331                                                        esc_html_e( 'Reduce the images that are wider than you need.', 'filikod' );
     332                                                }
     333                                                ?>
     334                                        </span>
     335                                        <span class="filikod-tool-where"><?php esc_html_e( 'Tools > Resize large images', 'filikod' ); ?></span>
     336                                </div>
     337                                <a href="<?php echo esc_url( Filikod_Admin::resize_url() ); ?>" class="filikod-btn-outline"><?php esc_html_e( 'Open', 'filikod' ); ?></a>
     338                        </div>
     339                </section>
     340
    210341        </div>
    211342</div>
  • filikod/trunk/admin/views/duplicates.php

    r3763820 r3833014  
    2121$filikod_filter   = isset( $_GET['filter'] ) ? sanitize_key( wp_unslash( $_GET['filter'] ) ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Read-only sub-tab parameter, strictly whitelisted below.
    2222$filikod_filter   = in_array( $filikod_filter, array( 'languages', 'ignored' ), true ) ? $filikod_filter : 'same';
    23 $filikod_base_url = add_query_arg( array( 'page' => 'filikod-duplicates' ), admin_url( 'admin.php' ) );
     23$filikod_base_url = Filikod_Admin::duplicates_url();
    2424$filikod_missing_url = add_query_arg( array( 'view' => 'missing' ), $filikod_base_url );
    2525$filikod_similar_url = add_query_arg( array( 'view' => 'similar' ), $filikod_base_url );
    … …  
    9191
    9292?>
    93 <div class="wrap filikod-duplicates-page">
    94         <h1><?php esc_html_e( 'Duplicates', 'filikod' ); ?></h1>
     93<div class="wrap filikod-tool-page filikod-duplicates-page">
     94        <?php
     95        $filikod_brand_page = __( 'Duplicate files', 'filikod' );
     96        include FILIKOD_PLUGIN_PATH . 'admin/views/brand-bar.php';
     97        ?>
     98        <h1><?php echo esc_html( $filikod_brand_page ); ?></h1>
    9599
    96100        <!-- Scan (en tête de page : accès direct) -->
  • filikod/trunk/admin/views/settings.php

    r3737001 r3833014  
    129129                    </div>
    130130
    131                     <div class="filikod-optimizations-actions">
    132                         <p class="description">
    133                             <?php esc_html_e('You can process existing images by clicking the button below. This will resize all images in your media library that exceed the maximum width.', 'filikod'); ?>
    134                         </p>
    135                         <button type="button" id="filikod-process-existing-images-resize" class="button button-secondary">
    136                             <?php esc_html_e('Resize Existing Images', 'filikod'); ?>
    137                         </button>
    138                         <span id="filikod-resize-processing-status" class="filikod-status-message"></span>
    139 
    140                         <!-- Message d'avertissement -->
    141                         <div id="filikod-resize-warning-message" class="filikod-warning-message" style="display: none;">
    142                             <span class="dashicons dashicons-warning"></span>
    143                             <strong><?php esc_html_e('Important:', 'filikod'); ?></strong>
    144                             <?php esc_html_e('Please keep this page open until the process is complete. Do not navigate away or close this page.', 'filikod'); ?>
    145                         </div>
    146 
    147                         <!-- Conteneur de progression -->
    148                         <div id="filikod-resize-progress-container" class="filikod-progress-container" style="display: none;">
    149                             <div class="filikod-progress-bar-wrapper">
    150                                 <div id="filikod-resize-progress-bar" class="filikod-progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%;"></div>
    151                             </div>
    152                             <div id="filikod-resize-progress-text" class="filikod-progress-text"></div>
    153                         </div>
    154                     </div>
     131                    <p class="filikod-bulk-moved">
     132                        <span class="dashicons dashicons-info-outline" aria-hidden="true"></span>
     133                        <?php
     134                        printf(
     135                            /* translators: %s: link to the Tools > Resize large images screen */
     136                            esc_html__( 'Automatic options apply to new uploads. To resize the images already in your Media Library, use %s.', 'filikod' ),
     137                            '<a href="' . esc_url( Filikod_Admin::resize_url() ) . '">' . esc_html__( 'Tools > Resize large images', 'filikod' ) . '</a>'
     138                        );
     139                        ?>
     140                    </p>
    155141
    156142                    <p class="submit">
    … …  
    210196                                        <?php esc_html_e('Images with a title in your library:', 'filikod'); ?>
    211197                                        <strong id="filikod-title-count"><?php echo esc_html(number_format_i18n($filikod_title_count)); ?></strong>
    212                                         <span class="filikod-option-meta-hint"><?php esc_html_e('These titles are cleared when the option is enabled: automatically for new uploads, and for the existing library when you run Process Existing Images below.', 'filikod'); ?></span>
     198                                        <span class="filikod-option-meta-hint"><?php esc_html_e('When the option is enabled, titles are cleared on new uploads, after an image without ALT text has received its title as ALT text. To clear the titles already in your library, use Filikod > ALT Text > Bulk actions.', 'filikod'); ?></span>
    213199                                    </p>
    214200                                </div>
    … …  
    235221                                    <h3><?php esc_html_e('Remove Special Characters from ALT Text', 'filikod'); ?></h3>
    236222                                    <p class="filikod-option-description">
    237                                         <?php esc_html_e('Clean ALT text inherited from file names: dashes, underscores and dots become spaces (my-photo_2024.jpg becomes "my photo 2024"). Hand-written ALT text keeps its punctuation; only technical characters (slash, backslash, brackets, symbols) are removed. This applies to existing and future images.', 'filikod'); ?>
     223                                        <?php esc_html_e('Clean ALT text inherited from file names: dashes, underscores and dots become spaces (my-photo_2024.jpg becomes "my photo 2024"). Hand-written ALT text keeps its punctuation; only technical characters (slash, backslash, brackets, symbols) are removed. Applies to new uploads.', 'filikod'); ?>
    238224                                    </p>
    239225                                </div>
    … …  
    280266                    </div>
    281267
    282                     <div class="filikod-accessibility-actions">
    283                         <p class="description">
    284                             <?php esc_html_e('You can process existing images by clicking the button below. This will apply the selected options to all images in your media library.', 'filikod'); ?>
    285                         </p>
    286                         <button type="button" id="filikod-process-existing-images" class="button button-secondary">
    287                             <?php esc_html_e('Process Existing Images', 'filikod'); ?>
    288                         </button>
    289                         <span id="filikod-processing-status" class="filikod-status-message"></span>
    290 
    291                         <!-- Message d'avertissement -->
    292                         <div id="filikod-accessibility-warning-message" class="filikod-warning-message" style="display: none;">
    293                             <span class="dashicons dashicons-warning"></span>
    294                             <strong><?php esc_html_e('Important:', 'filikod'); ?></strong>
    295                             <?php esc_html_e('Please keep this page open until the process is complete. Do not navigate away or close this page.', 'filikod'); ?>
    296                         </div>
    297 
    298                         <!-- Conteneur de progression -->
    299                         <div id="filikod-accessibility-progress-container" class="filikod-progress-container" style="display: none;">
    300                             <div class="filikod-progress-bar-wrapper">
    301                                 <div id="filikod-accessibility-progress-bar" class="filikod-progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%;"></div>
    302                             </div>
    303                             <div id="filikod-accessibility-progress-text" class="filikod-progress-text"></div>
    304                         </div>
    305                     </div>
     268                    <p class="filikod-bulk-moved">
     269                        <span class="dashicons dashicons-info-outline" aria-hidden="true"></span>
     270                        <?php
     271                        printf(
     272                            /* translators: %s: link to the Bulk actions tab of Filikod > ALT Text */
     273                            esc_html__( 'Automatic options apply to new uploads. To process the images already in your Media Library, use %s.', 'filikod' ),
     274                            '<a href="' . esc_url( Filikod_Admin::bulk_url() ) . '">' . esc_html__( 'Filikod > ALT Text > Bulk actions', 'filikod' ) . '</a>'
     275                        );
     276                        ?>
     277                    </p>
    306278
    307279                    <p class="submit">
  • filikod/trunk/assets/css/admin.css

    r3763820 r3833014  
    2424.filikod-welcome-panel h2 {
    2525    margin-top: 0;
     26}
     27
     28/* Lien permanent vers le forum d'aide, sous les boutons d'accueil (mêmes couleurs que le bloc d'avis). */
     29.filikod-welcome-panel .filikod-welcome-support {
     30    margin-bottom: 0;
     31}
     32
     33.filikod-welcome-panel .filikod-welcome-support a {
     34    color: #2E00D5;
     35}
     36
     37.filikod-welcome-panel .filikod-welcome-support a:hover {
     38    color: #2500b3;
     39}
     40
     41/* Dashboard - Bloc « Laisser un avis » (dernière ligne, refermable) : mascotte à gauche,
     42   fond lavande pour le distinguer des cartes de statistiques (double classe : la règle .filikod-card,
     43   plus bas dans ce fichier, imposait sinon son fond blanc). */
     44.filikod-card.filikod-review-prompt {
     45    position: relative;
     46    display: flex;
     47    align-items: center;
     48    gap: 24px;
     49    margin-top: 20px;
     50    background: #f6f3ff;
     51    border-color: #ddd3ff;
     52}
     53
     54/* Croix de fermeture en haut à droite (équivaut à « Plus tard ») */
     55.filikod-review-prompt-close {
     56    position: absolute;
     57    top: 10px;
     58    right: 10px;
     59    display: flex;
     60    align-items: center;
     61    justify-content: center;
     62    width: 32px;
     63    height: 32px;
     64    padding: 0;
     65    border: 0;
     66    border-radius: 50%;
     67    background: transparent;
     68    color: #646970;
     69    cursor: pointer;
     70}
     71
     72.filikod-review-prompt-close .dashicons {
     73    width: 20px;
     74    height: 20px;
     75    font-size: 20px;
     76}
     77
     78.filikod-review-prompt-close:hover {
     79    background: #ebe5ff;
     80    color: #2E00D5;
     81}
     82
     83.filikod-review-prompt-close:focus {
     84    outline: 2px solid #2E00D5;
     85    outline-offset: 1px;
     86    color: #2E00D5;
     87}
     88
     89.filikod-review-prompt-mascot {
     90    flex: 0 0 auto;
     91    width: 79px;
     92    height: auto;
     93}
     94
     95.filikod-review-prompt-body {
     96    flex: 1 1 auto;
     97    min-width: 0;
     98}
     99
     100.filikod-review-prompt .filikod-card-title {
     101    margin-bottom: 10px;
     102}
     103
     104@media screen and (max-width: 600px) {
     105    .filikod-review-prompt {
     106        flex-direction: column;
     107        align-items: flex-start;
     108    }
     109
     110    .filikod-review-prompt-mascot {
     111        width: 56px;
     112    }
     113}
     114
     115.filikod-review-prompt-actions {
     116    display: flex;
     117    flex-wrap: wrap;
     118    align-items: center;
     119    gap: 8px 20px;
     120    margin-bottom: 0;
     121}
     122
     123/* Liens et boutons-liens du bloc aux couleurs de Filikod (le bleu par défaut de WordPress détonnait). */
     124.filikod-review-prompt-actions .filikod-review-support,
     125.filikod-review-prompt-actions .button-link {
     126    color: #2E00D5;
     127}
     128
     129.filikod-review-prompt-actions .filikod-review-support:hover,
     130.filikod-review-prompt-actions .button-link:hover {
     131    color: #2500b3;
    26132}
    27133
    … …  
    145251    background: #f6f7f7;
    146252}
     253/* Focus clavier visible sur les onglets (1.4.0) : le contour avait été supprimé (WCAG 2.4.7).
     254   Seulement au clavier (:focus-visible), le clic de souris ne laisse pas de cadre. */
    147255.filikod-tabs-nav a:focus {
    148256    color: #043959;
    149     box-shadow: 0 0 0 0px transparent;
     257    box-shadow: none;
    150258    outline: 0px solid transparent;
     259}
     260
     261.filikod-tabs-nav a:focus-visible {
     262    outline: 2px solid #2E00D5;
     263    outline-offset: -4px;
     264}
     265
     266.filikod-tabs-nav .filikod-tab.active:focus-visible {
     267    outline-color: #fff;
    151268}
    152269
    … …  
    423540
    424541/* Conteneur de progression - Scopé uniquement pour le traitement des images */
    425 #filikod-resize-progress-container,
    426 #filikod-accessibility-progress-container {
     542.filikod-bulk-card .filikod-progress-container {
    427543    margin-top: 20px;
    428544    padding: 15px;
    … …  
    432548}
    433549
    434 #filikod-resize-progress-container .filikod-progress-bar-wrapper,
    435 #filikod-accessibility-progress-container .filikod-progress-bar-wrapper {
     550.filikod-bulk-card .filikod-progress-container .filikod-progress-bar-wrapper {
    436551    width: 100%;
    437552    height: 24px;
    … …  
    443558}
    444559
    445 #filikod-resize-progress-container .filikod-progress-bar,
    446 #filikod-accessibility-progress-container .filikod-progress-bar {
     560.filikod-bulk-card .filikod-progress-container .filikod-progress-bar {
    447561    height: 100%;
    448562    background: linear-gradient(90deg, #2E00D5 0%, #5a2dff 50%, #2E00D5 100%);
    … …  
    454568}
    455569
    456 #filikod-resize-progress-container .filikod-progress-bar::after,
    457 #filikod-accessibility-progress-container .filikod-progress-bar::after {
     570.filikod-bulk-card .filikod-progress-container .filikod-progress-bar::after {
    458571    content: '';
    459572    position: absolute;
    … …  
    489602}
    490603
    491 #filikod-resize-progress-container .filikod-progress-text,
    492 #filikod-accessibility-progress-container .filikod-progress-text {
     604.filikod-bulk-card .filikod-progress-container .filikod-progress-text {
    493605    font-size: 13px;
    494606    color: #555;
    … …  
    825937.filikod-settings .submit input.button-primary,
    826938.filikod-settings .button.button-primary[type="submit"],
    827 .filikod-go-to-settings-button {
     939.filikod-go-to-settings-button,
     940.filikod-btn-primary {
    828941    background-color: #2E00D5 !important;
    829942    border-color: #2E00D5 !important;
    … …  
    838951.filikod-settings .submit input.button-primary:hover,
    839952.filikod-settings .button.button-primary[type="submit"]:hover,
    840 .filikod-go-to-settings-button:hover {
     953.filikod-go-to-settings-button:hover,
     954.filikod-btn-primary:hover {
    841955    background-color: #2500b3 !important;
    842956    border-color: #2500b3 !important;
    … …  
    847961.filikod-settings .submit input.button-primary:focus,
    848962.filikod-settings .button.button-primary[type="submit"]:focus,
    849 .filikod-go-to-settings-button:focus {
     963.filikod-go-to-settings-button:focus,
     964.filikod-btn-primary:focus {
    850965    background-color: #2500b3 !important;
    851966    border-color: #2500b3 !important;
    … …  
    857972.filikod-coming-soon .dashicons {
    858973    color: #2E00D5 !important;
    859 }
    860 
    861 /* Boutons secondaires - Resize Existing Images et Process Existing Images */
    862 .filikod-optimizations-actions .button.button-secondary,
    863 .filikod-accessibility-actions .button.button-secondary,
    864 #filikod-process-existing-images-resize.button-secondary,
    865 #filikod-process-existing-images.button-secondary {
    866     background-color: transparent !important;
    867     border: 1px solid #2E00D5 !important;
    868     color: #2E00D5 !important;
    869     border-radius: 25px !important;
    870     padding: 8px 20px !important;
    871     font-weight: 500 !important;
    872     transition: all 0.2s ease !important;
    873 }
    874 
    875 .filikod-optimizations-actions .button.button-secondary:hover,
    876 .filikod-accessibility-actions .button.button-secondary:hover,
    877 #filikod-process-existing-images-resize.button-secondary:hover,
    878 #filikod-process-existing-images.button-secondary:hover {
    879     background-color: #2E00D5 !important;
    880     border-color: #2E00D5 !important;
    881     color: #ffffff !important;
    882 }
    883 
    884 .filikod-optimizations-actions .button.button-secondary:focus,
    885 .filikod-accessibility-actions .button.button-secondary:focus,
    886 #filikod-process-existing-images-resize.button-secondary:focus,
    887 #filikod-process-existing-images.button-secondary:focus {
    888     background-color: transparent !important;
    889     border-color: #2E00D5 !important;
    890     color: #2E00D5 !important;
    891     box-shadow: 0 0 0 1px #ffffff, 0 0 0 3px rgba(46, 0, 213, 0.3) !important;
    892974}
    893975
    … …  
    16301712    color: #fff;
    16311713}
     1714
     1715/* Écran Traitement en masse (1.3.1) : grille de cartes au gabarit du tableau de bord */
     1716.filikod-bulk-intro {
     1717    margin: 8px 0 20px;
     1718    font-size: 14px;
     1719}
     1720
     1721.filikod-bulk-grid {
     1722    display: grid;
     1723    grid-template-columns: repeat(2, minmax(0, 1fr));
     1724    gap: 20px;
     1725}
     1726
     1727.filikod-bulk-card {
     1728    display: flex;
     1729    flex-direction: column;
     1730}
     1731
     1732.filikod-bulk-card .filikod-card-title {
     1733    margin-bottom: 16px;
     1734}
     1735
     1736.filikod-bulk-figure {
     1737    display: flex;
     1738    flex-direction: column;
     1739    gap: 6px;
     1740    margin: 0 0 14px;
     1741}
     1742
     1743.filikod-bulk-count {
     1744    font-size: 40px;
     1745    font-weight: 700;
     1746    line-height: 1;
     1747    color: #2E00D5;
     1748}
     1749
     1750.filikod-bulk-count-label {
     1751    font-size: 13px;
     1752    font-weight: 600;
     1753    letter-spacing: 0.04em;
     1754    text-transform: uppercase;
     1755    color: #50575e;
     1756}
     1757
     1758.filikod-bulk-summary {
     1759    margin: 0 0 10px;
     1760    font-size: 14px;
     1761    line-height: 1.5;
     1762    color: #3c434a;
     1763}
     1764
     1765.filikod-bulk-details {
     1766    margin: 0 0 18px;
     1767    font-size: 13px;
     1768    line-height: 1.5;
     1769    color: #646970;
     1770}
     1771
     1772.filikod-bulk-details summary {
     1773    width: fit-content;
     1774    cursor: pointer;
     1775    font-weight: 600;
     1776    color: #2E00D5;
     1777}
     1778
     1779.filikod-bulk-details p {
     1780    margin: 8px 0 0;
     1781}
     1782
     1783.filikod-bulk-details a {
     1784    color: #2E00D5;
     1785}
     1786
     1787.filikod-bulk-width {
     1788    display: flex;
     1789    flex-wrap: wrap;
     1790    align-items: center;
     1791    gap: 8px;
     1792    margin: 0 0 18px;
     1793}
     1794
     1795.filikod-bulk-width label {
     1796    font-weight: 600;
     1797}
     1798
     1799.filikod-bulk-width input.filikod-bulk-max-width {
     1800    width: 96px;
     1801    min-height: 40px;
     1802}
     1803
     1804.filikod-bulk-actions {
     1805    margin-top: auto;
     1806}
     1807
     1808.filikod-bulk-actions .filikod-status-message {
     1809    display: block;
     1810    margin: 10px 0 0;
     1811}
     1812
     1813.filikod-bulk-actions .filikod-status-message:empty {
     1814    display: none;
     1815}
     1816
     1817.filikod-bulk-actions .filikod-warning-message,
     1818.filikod-bulk-actions .filikod-progress-container {
     1819    margin-top: 12px;
     1820}
     1821
     1822/* Rien à traiter : bouton grisé dans la couleur de la charte */
     1823.wp-core-ui .filikod-bulk-card .button.filikod-btn-primary:disabled,
     1824.filikod-bulk-card .button.filikod-btn-primary:disabled {
     1825    background-color: #ece8fb !important;
     1826    border-color: #ece8fb !important;
     1827    color: #8f86c6 !important;
     1828    cursor: not-allowed;
     1829}
     1830
     1831@media screen and (max-width: 960px) {
     1832    .filikod-bulk-grid {
     1833        grid-template-columns: 1fr;
     1834    }
     1835}
     1836
     1837/* Réglages : renvoi vers l'écran Traitement en masse. En bloc et non en flex : en flex, chaque morceau
     1838   de texte devenait un élément séparé par l'écart (point détaché du lien, chiffre détaché de sa phrase). */
     1839.filikod-bulk-moved,
     1840.filikod-alt-audit-bulk-hint {
     1841    display: block;
     1842    line-height: 1.6;
     1843    padding: 12px 16px;
     1844    background: #f6f3ff;
     1845    border: 1px solid #ddd3ff;
     1846    border-radius: 4px;
     1847}
     1848
     1849.filikod-bulk-moved {
     1850    margin: 24px 0 8px;
     1851}
     1852
     1853.filikod-bulk-moved .dashicons {
     1854    color: #2E00D5;
     1855    vertical-align: text-bottom;
     1856    margin-right: 6px;
     1857}
     1858
     1859.filikod-alt-audit-bulk-hint .filikod-btn-outline {
     1860    margin: 6px 0 0 12px;
     1861}
     1862
     1863.filikod-bulk-moved a {
     1864    color: #2E00D5;
     1865    font-weight: 600;
     1866}
     1867
     1868/* Audit ALT, onglet Manquants : raccourci vers le remplissage en masse */
     1869.filikod-alt-audit-bulk-hint {
     1870    margin: 0 0 16px;
     1871}
     1872
     1873.filikod-alt-audit-page .filikod-alt-audit-bulk-hint .filikod-btn-outline {
     1874    background-color: #fff !important;
     1875}
     1876
     1877.filikod-alt-audit-page .filikod-alt-audit-bulk-hint .filikod-btn-outline:hover {
     1878    background-color: #2E00D5 !important;
     1879}
     1880
     1881/* Tableau de bord : bouton Traitement en masse à côté de Accéder aux réglages */
     1882.filikod-go-to-bulk-button {
     1883    margin-left: 8px !important;
     1884    vertical-align: middle;
     1885}
     1886
     1887@media screen and (max-width: 600px) {
     1888    .filikod-go-to-bulk-button {
     1889        margin: 8px 0 0 !important;
     1890    }
     1891}
     1892
     1893/* Boutons Filikod : une seule taille partout, plein ou contour (1.3.1). Les boutons pleins gardaient
     1894   la hauteur des boutons WordPress, plus haute que celle des boutons contour posés à côté. */
     1895.filikod-settings .submit input[type="submit"].button-primary,
     1896.filikod-settings .submit input.button-primary,
     1897.filikod-settings .button.button-primary[type="submit"],
     1898.filikod-go-to-settings-button,
     1899.filikod-btn-primary,
     1900.filikod-btn-outline,
     1901.filikod-alt-audit-page .filikod-btn-outline {
     1902    display: inline-flex !important;
     1903    align-items: center;
     1904    justify-content: center;
     1905    box-sizing: border-box !important;
     1906    min-height: 40px !important;
     1907    height: auto !important;
     1908    padding: 0 22px !important;
     1909    font-size: 14px !important;
     1910    font-weight: 500 !important;
     1911    line-height: 1.2 !important;
     1912    border-width: 1px !important;
     1913    border-style: solid !important;
     1914    font-family: inherit !important;
     1915    text-decoration: none !important;
     1916    vertical-align: middle;
     1917}
     1918
     1919/* ==========================================================================
     1920   Refonte 1.4.0 : tableau de bord, écrans rangés sous Médias et Outils
     1921   ========================================================================== */
     1922
     1923/* Étiquette « Filikod » des entrées Médias > Fichiers en double et Outils > Réduire les grandes images */
     1924#adminmenu .filikod-menu-tag {
     1925    display: inline-block;
     1926    margin-left: 2px;
     1927    padding: 0 6px;
     1928    border-radius: 25px;
     1929    background: #2E00D5;
     1930    color: #fff;
     1931    font-size: 10px;
     1932    font-weight: 600;
     1933    line-height: 16px;
     1934    vertical-align: 1px;
     1935}
     1936
     1937/* Fil d'Ariane « Filikod › écran » au-dessus du titre de ces écrans */
     1938.filikod-brand-bar {
     1939    display: flex;
     1940    flex-wrap: wrap;
     1941    align-items: center;
     1942    gap: 6px;
     1943    margin: 14px 0 0;
     1944    font-size: 13px;
     1945    color: #50575e;
     1946}
     1947
     1948.filikod-brand-bar-link {
     1949    display: inline-flex;
     1950    align-items: center;
     1951    gap: 6px;
     1952    font-weight: 600;
     1953    color: #2E00D5;
     1954    text-decoration: none;
     1955}
     1956
     1957.filikod-brand-bar-link:hover,
     1958.filikod-brand-bar-link:focus {
     1959    color: #2500b3;
     1960    text-decoration: underline;
     1961}
     1962
     1963.filikod-brand-bar-mark svg {
     1964    display: block;
     1965    width: 16px;
     1966    height: 18px;
     1967}
     1968
     1969.filikod-tool-page {
     1970    max-width: 1200px;
     1971}
     1972
     1973.filikod-tool-intro {
     1974    margin: 8px 0 20px;
     1975    font-size: 14px;
     1976    line-height: 1.5;
     1977    max-width: 820px;
     1978}
     1979
     1980.filikod-tool-intro a,
     1981.filikod-alt-audit-description a {
     1982    color: #2E00D5;
     1983    font-weight: 600;
     1984}
     1985
     1986/* Cartes d'actions : trois côte à côte dans Textes ALT, une seule et plus étroite dans Outils */
     1987.filikod-bulk-grid-3 {
     1988    grid-template-columns: repeat(3, minmax(0, 1fr));
     1989}
     1990
     1991.filikod-bulk-grid-1 {
     1992    grid-template-columns: minmax(0, 560px);
     1993}
     1994
     1995.filikod-alt-audit-page .filikod-bulk-grid {
     1996    margin-top: 16px;
     1997}
     1998
     1999.filikod-bulk-card .filikod-btn-outline:disabled {
     2000    opacity: 0.5;
     2001    cursor: not-allowed;
     2002}
     2003
     2004@media screen and (max-width: 1280px) {
     2005    .filikod-bulk-grid-3 {
     2006        grid-template-columns: repeat(2, minmax(0, 1fr));
     2007    }
     2008}
     2009
     2010@media screen and (max-width: 960px) {
     2011    .filikod-bulk-grid-3,
     2012    .filikod-bulk-grid-1 {
     2013        grid-template-columns: 1fr;
     2014    }
     2015}
     2016
     2017/* Tableau de bord : largeur de lecture, comme les autres écrans Filikod */
     2018.filikod-dashboard-v2 {
     2019    max-width: 1200px;
     2020}
     2021
     2022/* Ce qu'il faut corriger : titre, phrase, un bouton, le score à droite */
     2023.filikod-hero {
     2024    display: flex;
     2025    align-items: center;
     2026    justify-content: space-between;
     2027    gap: 32px;
     2028    margin-bottom: 20px;
     2029    padding: 32px 36px;
     2030}
     2031
     2032.filikod-hero-text {
     2033    flex: 1 1 auto;
     2034    max-width: 640px;
     2035}
     2036
     2037.filikod-hero-title {
     2038    margin: 0 0 10px;
     2039    font-size: 26px;
     2040    font-weight: 600;
     2041    line-height: 1.25;
     2042    color: #1d2327;
     2043}
     2044
     2045.filikod-hero-lead {
     2046    margin: 0 0 12px;
     2047    font-size: 15px;
     2048    line-height: 1.55;
     2049    color: #3c434a;
     2050}
     2051
     2052.filikod-hero-parts {
     2053    margin: 0 0 18px;
     2054    font-size: 14px;
     2055}
     2056
     2057.filikod-hero-parts a {
     2058    color: #2E00D5;
     2059    text-decoration: none;
     2060}
     2061
     2062.filikod-hero-parts a:hover,
     2063.filikod-hero-parts a:focus {
     2064    text-decoration: underline;
     2065}
     2066
     2067.filikod-hero-sep {
     2068    margin: 0 6px;
     2069    color: #8c8f94;
     2070}
     2071
     2072.filikod-hero-actions {
     2073    margin: 0 0 14px;
     2074}
     2075
     2076.filikod-hero-support {
     2077    margin: 0;
     2078    font-size: 13px;
     2079}
     2080
     2081.filikod-hero-support a,
     2082.filikod-dashboard-list a,
     2083.filikod-dashboard-more a {
     2084    color: #2E00D5;
     2085}
     2086
     2087.filikod-hero-support a:hover,
     2088.filikod-dashboard-list a:hover,
     2089.filikod-dashboard-more a:hover {
     2090    color: #2500b3;
     2091}
     2092
     2093.filikod-hero-score {
     2094    flex: 0 0 168px;
     2095    text-align: center;
     2096}
     2097
     2098.filikod-hero-score svg {
     2099    display: block;
     2100    width: 168px;
     2101    height: 168px;
     2102}
     2103
     2104.filikod-hero-score-value {
     2105    font-size: 52px;
     2106    font-weight: 700;
     2107    fill: #2E00D5;
     2108}
     2109
     2110.filikod-hero-score-unit {
     2111    font-size: 15px;
     2112    fill: #50575e;
     2113}
     2114
     2115.filikod-hero-score-label {
     2116    margin: 6px 0 0;
     2117    font-size: 14px;
     2118    font-weight: 600;
     2119    color: #3c434a;
     2120}
     2121
     2122/* À relire / Prochaines images */
     2123.filikod-dashboard-pair {
     2124    grid-template-columns: 1fr 1fr;
     2125}
     2126
     2127.filikod-dashboard-line {
     2128    display: flex;
     2129    justify-content: space-between;
     2130    align-items: flex-start;
     2131    gap: 20px;
     2132    padding: 14px 0;
     2133    border-top: 1px solid #f0f0f1;
     2134}
     2135
     2136.filikod-dashboard-line:first-of-type {
     2137    padding-top: 0;
     2138    border-top: 0;
     2139}
     2140
     2141.filikod-dashboard-line strong {
     2142    display: block;
     2143    margin-bottom: 3px;
     2144    font-size: 14px;
     2145    font-weight: 600;
     2146    color: #1d2327;
     2147}
     2148
     2149.filikod-dashboard-line-help {
     2150    display: block;
     2151    font-size: 13px;
     2152    line-height: 1.5;
     2153    color: #50575e;
     2154}
     2155
     2156.filikod-dashboard-line > a {
     2157    flex: 0 0 auto;
     2158    font-weight: 600;
     2159}
     2160
     2161.filikod-dashboard-list-empty {
     2162    margin: 0;
     2163    font-size: 14px;
     2164    color: #50575e;
     2165}
     2166
     2167.filikod-dashboard-options {
     2168    margin: 0;
     2169    padding: 0;
     2170    list-style: none;
     2171}
     2172
     2173.filikod-dashboard-options li {
     2174    display: flex;
     2175    justify-content: space-between;
     2176    align-items: baseline;
     2177    gap: 16px;
     2178    margin: 0;
     2179    padding: 9px 0;
     2180    border-top: 1px solid #f0f0f1;
     2181    font-size: 14px;
     2182}
     2183
     2184.filikod-dashboard-options li:first-child {
     2185    padding-top: 0;
     2186    border-top: 0;
     2187}
     2188
     2189.filikod-option-state {
     2190    flex: 0 0 auto;
     2191    font-size: 13px;
     2192    font-weight: 600;
     2193    color: #50575e;
     2194}
     2195
     2196.filikod-option-state.is-on {
     2197    color: #2E00D5;
     2198}
     2199
     2200.filikod-dashboard-more {
     2201    margin: 14px 0 0;
     2202    font-size: 13px;
     2203    font-weight: 600;
     2204}
     2205
     2206/* Outils Filikod : accès rapide, avec l'endroit où chaque écran est rangé */
     2207.filikod-dashboard-tools {
     2208    margin-bottom: 20px;
     2209}
     2210
     2211.filikod-tool-row {
     2212    display: flex;
     2213    justify-content: space-between;
     2214    align-items: center;
     2215    gap: 24px;
     2216    padding: 16px 0;
     2217    border-top: 1px solid #f0f0f1;
     2218}
     2219
     2220.filikod-tool-row:first-of-type {
     2221    padding-top: 0;
     2222    border-top: 0;
     2223}
     2224
     2225.filikod-tool-text {
     2226    display: flex;
     2227    flex-direction: column;
     2228    gap: 3px;
     2229    font-size: 14px;
     2230    line-height: 1.5;
     2231    color: #3c434a;
     2232}
     2233
     2234.filikod-tool-text strong {
     2235    font-size: 15px;
     2236    font-weight: 600;
     2237    color: #1d2327;
     2238}
     2239
     2240.filikod-tool-where {
     2241    font-size: 12px;
     2242    color: #50575e;
     2243}
     2244
     2245.filikod-tool-row .filikod-btn-outline {
     2246    flex: 0 0 auto;
     2247}
     2248
     2249@media screen and (max-width: 960px) {
     2250    .filikod-hero {
     2251        flex-direction: column-reverse;
     2252        align-items: flex-start;
     2253        padding: 24px;
     2254    }
     2255
     2256    .filikod-dashboard-pair {
     2257        grid-template-columns: 1fr;
     2258    }
     2259
     2260    .filikod-tool-row {
     2261        flex-direction: column;
     2262        align-items: flex-start;
     2263        gap: 10px;
     2264    }
     2265}
     2266
     2267/* Tableau de bord, retouche du 29/11/2026 : état de santé à gauche (score + six contrôles),
     2268   à droite ce qu'il faut corriger et les prochaines images, puis la vue d'ensemble. */
     2269.filikod-dashboard-top {
     2270    display: grid;
     2271    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
     2272    gap: 20px;
     2273    align-items: stretch;
     2274    margin-bottom: 20px;
     2275}
     2276
     2277.filikod-dashboard-side {
     2278    display: flex;
     2279    flex-direction: column;
     2280    gap: 20px;
     2281}
     2282
     2283.filikod-dashboard-side .filikod-hero {
     2284    display: block;
     2285    margin-bottom: 0;
     2286    padding: 25px 30px;
     2287}
     2288
     2289.filikod-dashboard-side .filikod-hero-title {
     2290    font-size: 22px;
     2291}
     2292
     2293.filikod-card-alt .filikod-alt-donut-wrapper {
     2294    width: 180px;
     2295    height: 180px;
     2296    margin-bottom: 8px;
     2297}
     2298
     2299.filikod-health-label {
     2300    margin: 0;
     2301    text-align: center;
     2302    font-size: 15px;
     2303    font-weight: 600;
     2304    color: #1d2327;
     2305}
     2306
     2307/* Les six contrôles sont des liens vers leur onglet de Textes ALT. */
     2308a.filikod-alt-count-item {
     2309    text-decoration: none;
     2310    border-radius: 4px;
     2311}
     2312
     2313a.filikod-alt-count-item .filikod-alt-count-value {
     2314    font-weight: 700;
     2315    color: #2E00D5;
     2316}
     2317
     2318a.filikod-alt-count-item:hover .filikod-alt-count-label,
     2319a.filikod-alt-count-item:focus .filikod-alt-count-label {
     2320    color: #1d2327;
     2321    text-decoration: underline;
     2322}
     2323
     2324a.filikod-alt-count-item:focus {
     2325    box-shadow: none;
     2326    outline: none;
     2327}
     2328
     2329a.filikod-alt-count-item:focus-visible {
     2330    outline: 2px solid #2E00D5;
     2331    outline-offset: 2px;
     2332}
     2333
     2334.filikod-card-overview {
     2335    margin-bottom: 20px;
     2336}
     2337
     2338@media screen and (max-width: 960px) {
     2339    .filikod-dashboard-top {
     2340        grid-template-columns: 1fr;
     2341    }
     2342}
     2343
     2344/* Invitation à laisser un avis en bandeau compact sous le titre du tableau de bord (29/11/2026) :
     2345   petite mascotte, titre, phrase et actions sur trois lignes courtes, sans prendre le pas sur
     2346   « Corriger ces images ». Mêmes couleurs que l'ancien bloc. */
     2347.filikod-card.filikod-review-prompt.filikod-review-banner {
     2348    gap: 16px;
     2349    margin: 16px 0 0;
     2350    padding: 14px 56px 14px 20px;
     2351}
     2352
     2353.filikod-review-banner .filikod-review-prompt-mascot {
     2354    width: 40px;
     2355}
     2356
     2357.filikod-review-banner .filikod-card-title {
     2358    margin: 0 0 2px;
     2359    font-size: 15px;
     2360}
     2361
     2362.filikod-review-banner .filikod-review-prompt-body > p {
     2363    margin: 0;
     2364    font-size: 13px;
     2365}
     2366
     2367.filikod-review-banner .filikod-review-prompt-body > .filikod-review-prompt-actions {
     2368    margin-top: 8px;
     2369    gap: 6px 18px;
     2370}
     2371
     2372.filikod-review-banner .filikod-review-prompt-actions .button.filikod-btn-primary {
     2373    min-height: 32px !important;
     2374    padding: 0 16px !important;
     2375    font-size: 13px !important;
     2376}
     2377
     2378@media screen and (max-width: 600px) {
     2379    .filikod-card.filikod-review-prompt.filikod-review-banner {
     2380        flex-direction: row;
     2381        align-items: flex-start;
     2382    }
     2383}
     2384
     2385/* Après une action en masse réussie : invitation discrète dans le message de fin */
     2386.filikod-review-nudge {
     2387    display: block;
     2388    margin-top: 8px;
     2389    font-weight: 400;
     2390    color: #3c434a;
     2391}
     2392
     2393.filikod-review-nudge a,
     2394.filikod-review-nudge .button-link {
     2395    margin-left: 6px;
     2396    color: #2E00D5;
     2397    font-weight: 600;
     2398    white-space: nowrap;
     2399}
     2400
     2401.filikod-review-nudge a:hover,
     2402.filikod-review-nudge .button-link:hover {
     2403    color: #2500b3;
     2404}
  • filikod/trunk/assets/js/admin.js

    r3763820 r3833014  
    1414        initToggleSwitches();
    1515
    16         // Initialiser le traitement des images existantes
    17         initProcessExistingImages();
    18 
    19         // Initialiser le redimensionnement des images existantes
    20         initProcessExistingImagesResize();
     16        // Écran Traitement en masse : une carte par tâche
     17        initBulkTasks();
    2118
    2219        // Gérer l'activation/désactivation du champ de taille max
    … …  
    3128        // Duplicates > Similar images : « C'est voulu » / « Afficher de nouveau »
    3229        initVisualIgnore();
     30
     31        // Tableau de bord : bloc « Laisser un avis »
     32        initReviewPrompt();
    3333    });
     34
     35    /**
     36     * Bloc « Laisser un avis » : mémorise le choix (done / later) puis masque le bloc.
     37     * Le lien « Laisser un avis » s'ouvre normalement dans un nouvel onglet.
     38     */
     39    function initReviewPrompt() {
     40        var $prompt = $('#filikod-review-prompt');
     41        if (!$prompt.length) {
     42            return;
     43        }
     44        $prompt.on('click', '.filikod-review-action', function(e) {
     45            var $control = $(this);
     46            if ($control.is('button')) {
     47                e.preventDefault();
     48            }
     49            $.post(filikodAdmin.ajaxUrl, {
     50                action: 'filikod_review_prompt',
     51                nonce: filikodAdmin.nonce,
     52                choice: String($control.data('review-choice'))
     53            });
     54            $prompt.slideUp(200);
     55        });
     56    }
     57
     58    /**
     59     * Après une action en masse réussie : « Filikod vous a fait gagner du temps ? » avec « Laisser un avis »
     60     * et « Plus tard ». Seulement si l'utilisateur n'a ni laissé d'avis ni demandé « Plus tard » (même
     61     * choix mémorisé que le bandeau du tableau de bord), une fois par page, sans contrepartie.
     62     *
     63     * @param {jQuery} $status Message de fin de la carte.
     64     */
     65    function appendReviewNudge($status) {
     66        if (!filikodAdmin.reviewNudge || !filikodAdmin.reviewUrl || $('.filikod-review-nudge').length) {
     67            return;
     68        }
     69        var strings = filikodAdmin.strings || {};
     70        var $nudge = $('<span>', { 'class': 'filikod-review-nudge' });
     71        var remember = function(choice) {
     72            $.post(filikodAdmin.ajaxUrl, { action: 'filikod_review_prompt', nonce: filikodAdmin.nonce, choice: choice });
     73            filikodAdmin.reviewNudge = false;
     74        };
     75        var $link = $('<a>', { href: filikodAdmin.reviewUrl, target: '_blank', rel: 'noopener noreferrer' })
     76            .text(strings.leaveReview || 'Leave a review')
     77            .append($('<span>', { 'class': 'screen-reader-text' }).text(' ' + (strings.newTab || '(opens in a new tab)')))
     78            .on('click', function() {
     79                remember('done');
     80                $nudge.remove();
     81            });
     82        var $later = $('<button>', { type: 'button', 'class': 'button-link' })
     83            .text(strings.maybeLater || 'Maybe later')
     84            .on('click', function() {
     85                remember('later');
     86                $nudge.remove();
     87            });
     88        $nudge.text(strings.reviewNudge || 'Did Filikod save you time? A review on WordPress.org helps other sites find it.')
     89            .append(' ').append($link).append(' ').append($later);
     90        $status.append($nudge);
     91        // Le bandeau du tableau de bord n'est pas sur cet écran : rien d'autre à masquer.
     92    }
    3493
    3594    /**
    … …  
    210269        function cleanupFail(msg, showNoticeToo) {
    211270            state.isProcessing = false;
     271            if (typeof o.onFail === 'function') {
     272                o.onFail(msg);
     273            }
    212274            window.removeEventListener('beforeunload', beforeUnloadHandler);
    213275            statusMessage.removeClass('processing').addClass('error');
    … …  
    316378
    317379    /**
    318      * Initialiser le traitement des images existantes
    319      */
    320     function initProcessExistingImages() {
    321         $('#filikod-process-existing-images').on('click', function(e) {
     380     * Écran Traitement en masse : chaque carte lance sa propre tâche, sans dépendre des réglages.
     381     * ALT (auto_alt, clean_chars, remove_title) : lots de 50 avec le paramètre « task ».
     382     * Redimensionnement (resize) : lots de 10 avec la largeur saisie sur la carte.
     383     */
     384    function initBulkTasks() {
     385        var $cards = $('.filikod-bulk-card');
     386        if (!$cards.length) {
     387            return;
     388        }
     389
     390        // Chiffres des cartes (images concernées), recalculés côté serveur.
     391        function refreshCounts() {
     392            var width = parseInt($('.filikod-bulk-max-width').val(), 10) || 0;
     393            $.ajax({
     394                url: filikodAdmin.ajaxUrl,
     395                type: 'POST',
     396                data: { action: 'filikod_bulk_counts', nonce: filikodAdmin.nonce, max_width: width },
     397                success: function(response) {
     398                    if (!response || !response.success) {
     399                        return;
     400                    }
     401                    $.each(response.data, function(task, c) {
     402                        var $card = $cards.filter('[data-task="' + task + '"]');
     403                        $card.find('.filikod-bulk-count').text(c.count_formatted);
     404                        $card.find('.filikod-bulk-count-label').text(c.label);
     405                        if (!$card.data('running')) {
     406                            $card.find('.filikod-bulk-run').prop('disabled', parseInt(c.count, 10) === 0);
     407                        }
     408                    });
     409                }
     410            });
     411        }
     412
     413        // Largeur de la carte Redimensionner : le chiffre suit la saisie.
     414        var widthTimer = null;
     415        $('.filikod-bulk-max-width').on('input', function() {
     416            clearTimeout(widthTimer);
     417            var width = parseInt($(this).val(), 10) || 0;
     418            if (width >= 100 && width <= 10000) {
     419                widthTimer = setTimeout(refreshCounts, 400);
     420            }
     421        });
     422
     423        $cards.find('.filikod-bulk-run').on('click', function(e) {
    322424            e.preventDefault();
     425            var $button = $(this);
     426            var $card = $button.closest('.filikod-bulk-card');
     427            var task = String($button.data('task') || '');
     428            var isResize = task === 'resize';
     429            var $status = $card.find('.filikod-status-message');
     430            var maxWidth = 0;
     431
     432            if (isResize) {
     433                maxWidth = parseInt($card.find('.filikod-bulk-max-width').val(), 10) || 0;
     434                if (maxWidth < 100 || maxWidth > 10000) {
     435                    $status.removeClass('success processing').addClass('error').text(filikodAdmin.strings.invalidWidth || 'Enter a width between 100 and 10,000 pixels.');
     436                    $card.find('.filikod-bulk-max-width').trigger('focus');
     437                    return;
     438                }
     439            }
     440
     441            var confirmText = String($button.data('confirm') || '');
     442            if (confirmText && !window.confirm(isResize ? sprintf(confirmText, maxWidth) : confirmText)) {
     443                return;
     444            }
     445
     446            $card.data('running', true);
     447            var notFilled = 0;
    323448            runFilikodBatchedJob({
    324                 button: $(this),
    325                 statusMessage: $('#filikod-processing-status'),
    326                 progressContainer: $('#filikod-accessibility-progress-container'),
    327                 progressBar: $('#filikod-accessibility-progress-bar'),
    328                 progressText: $('#filikod-accessibility-progress-text'),
    329                 warningMessage: $('#filikod-accessibility-warning-message'),
    330                 countAction: 'filikod_get_total_images_count_accessibility',
    331                 batchAction: 'filikod_process_existing_images_accessibility_batch',
    332                 batchSize: 50,
     449                button: $button,
     450                statusMessage: $status,
     451                progressContainer: $card.find('.filikod-progress-container'),
     452                progressBar: $card.find('.filikod-progress-bar'),
     453                progressText: $card.find('.filikod-progress-text'),
     454                warningMessage: $card.find('.filikod-warning-message'),
     455                countAction: isResize ? 'filikod_get_total_images_count' : 'filikod_get_total_images_count_accessibility',
     456                batchAction: isResize ? 'filikod_process_existing_images_resize_batch' : 'filikod_process_existing_images_accessibility_batch',
     457                batchSize: isResize ? 10 : 50,
     458                extendBatchPayload: function(s) {
     459                    return isResize ? { total_saved: s.totalSaved, max_width: maxWidth } : { task: task, total_not_filled: notFilled };
     460                },
    333461                formatProgressLine: function(s, data, percentage) {
    334                     var processedText = s.currentProcessed + ' ' + (s.currentProcessed === 1 ?
     462                    if (isResize) {
     463                        var resizedText = s.currentProcessed + ' ' + (s.currentProcessed === 1 ? filikodAdmin.strings.imageResized : filikodAdmin.strings.imagesResized);
     464                        var ignoredText = s.currentSkipped > 0 ? ', ' + s.currentSkipped + ' ' + filikodAdmin.strings.imagesIgnored : '';
     465                        var savedText = data.total_saved_formatted ? ' - ' + data.total_saved_formatted + ' ' + filikodAdmin.strings.spaceSaved : '';
     466                        return resizedText + ignoredText + savedText + ' (' + percentage + '%)';
     467                    }
     468                    // Les images non modifiées sont surtout celles qui n'étaient pas concernées (ALT déjà écrit) :
     469                    // on n'affiche que les images traitées.
     470                    if (data && typeof data.total_not_filled !== 'undefined') {
     471                        notFilled = parseInt(data.total_not_filled, 10) || 0;
     472                    }
     473                    return s.currentProcessed + ' ' + (s.currentProcessed === 1 ?
    335474                        filikodAdmin.strings.imageProcessed || 'image processed' :
    336                         filikodAdmin.strings.imagesProcessed || 'images processed');
    337                     var skippedText = s.currentSkipped > 0 ? ', ' + s.currentSkipped + ' ' + (s.currentSkipped === 1 ?
    338                         filikodAdmin.strings.imageSkipped || 'skipped' :
    339                         filikodAdmin.strings.imagesSkipped || 'skipped') : '';
    340                     return processedText + skippedText + ' (' + percentage + '%)';
    341                 },
    342                 formatComplete: function(s) {
     475                        filikodAdmin.strings.imagesProcessed || 'images processed') + ' (' + percentage + '%)';
     476                },
     477                formatComplete: function(s, data) {
     478                    if (task === 'auto_alt') {
     479                        if (data && typeof data.total_not_filled !== 'undefined') {
     480                            notFilled = parseInt(data.total_not_filled, 10) || 0;
     481                        }
     482                        return notFilled > 0
     483                            ? sprintf(filikodAdmin.strings.altFillComplete || 'ALT text written: %d. Images left without ALT: %d.', s.currentProcessed, notFilled)
     484                            : sprintf(filikodAdmin.strings.altFillCompleteAll || 'ALT text written: %d. No image is left without ALT.', s.currentProcessed);
     485                    }
     486                    if (task === 'clean_chars') {
     487                        return sprintf(filikodAdmin.strings.cleanComplete || 'ALT text cleaned: %d.', s.currentProcessed);
     488                    }
     489                    if (task === 'remove_title') {
     490                        return sprintf(filikodAdmin.strings.titlesComplete || 'Titles cleared: %d.', s.currentProcessed);
     491                    }
     492                    if (isResize) {
     493                        return sprintf(
     494                            filikodAdmin.strings.resizeComplete || 'Resize complete: %d images resized, %d ignored. Space saved: %s',
     495                            s.currentProcessed,
     496                            s.currentSkipped,
     497                            data.total_saved_formatted
     498                        );
     499                    }
    343500                    return sprintf(
    344501                        filikodAdmin.strings.accessibilityComplete || 'Processing complete: %d images processed, %d skipped.',
    … …  
    347504                    );
    348505                },
    349                 onComplete: function(s, data) {
    350                     // Compteur « Images with a title » de la carte Remove Title Attribute
    351                     if (data && typeof data.images_with_title !== 'undefined') {
    352                         $('#filikod-title-count').text(data.images_with_title);
    353                     }
     506                onComplete: function(s) {
     507                    $card.data('running', false);
     508                    // Images restées sans ALT : lien direct vers l'onglet Manquants de l'audit.
     509                    if (task === 'auto_alt' && notFilled > 0 && filikodAdmin.auditMissingUrl) {
     510                        $status.append(' ').append($('<a>', {
     511                            href: filikodAdmin.auditMissingUrl,
     512                            text: filikodAdmin.strings.writeInAudit || 'Write them in ALT Text'
     513                        }));
     514                    }
     515                    // Action réussie : le meilleur moment pour proposer un avis, une seule fois par page.
     516                    if (s && s.currentProcessed > 0) {
     517                        appendReviewNudge($status);
     518                    }
     519                    refreshCounts();
     520                },
     521                onFail: function() {
     522                    $card.data('running', false);
    354523                }
    355524            });
    … …  
    418587            e.preventDefault();
    419588            runScan(true, $(this));
    420         });
    421     }
    422 
    423     /**
    424      * Initialiser le traitement des images existantes pour redimensionnement
    425      */
    426     function initProcessExistingImagesResize() {
    427         $('#filikod-process-existing-images-resize').on('click', function(e) {
    428             e.preventDefault();
    429             runFilikodBatchedJob({
    430                 button: $(this),
    431                 statusMessage: $('#filikod-resize-processing-status'),
    432                 progressContainer: $('#filikod-resize-progress-container'),
    433                 progressBar: $('#filikod-resize-progress-bar'),
    434                 progressText: $('#filikod-resize-progress-text'),
    435                 warningMessage: $('#filikod-resize-warning-message'),
    436                 countAction: 'filikod_get_total_images_count',
    437                 batchAction: 'filikod_process_existing_images_resize_batch',
    438                 batchSize: 10,
    439                 extendBatchPayload: function(s) {
    440                     return { total_saved: s.totalSaved };
    441                 },
    442                 formatProgressLine: function(s, data, percentage) {
    443                     var imagesResizedText = s.currentProcessed === 1 ?
    444                         filikodAdmin.strings.imageResized :
    445                         filikodAdmin.strings.imagesResized;
    446                     var processedText = s.currentProcessed + ' ' + imagesResizedText;
    447                     var skippedText = s.currentSkipped > 0 ? ', ' + s.currentSkipped + ' ' + filikodAdmin.strings.imagesIgnored : '';
    448                     var savedText = data.total_saved_formatted ? ' - ' + data.total_saved_formatted + ' ' + filikodAdmin.strings.spaceSaved : '';
    449                     return processedText + skippedText + savedText + ' (' + percentage + '%)';
    450                 },
    451                 formatComplete: function(s, data) {
    452                     return sprintf(
    453                         filikodAdmin.strings.resizeComplete || 'Resize complete: %d images resized, %d ignored. Space saved: %s',
    454                         s.currentProcessed,
    455                         s.currentSkipped,
    456                         data.total_saved_formatted
    457                     );
    458                 }
    459             });
    460589        });
    461590    }
  • filikod/trunk/assets/js/media-duplicate-alert.js

    r3737001 r3833014  
    3838                        html +=
    3939                                ' <a href="' + escapeHtml(cfg.duplicatesUrl).replace(/"/g, '&quot;') + '" target="_blank" rel="noopener noreferrer">' +
    40                                 escapeHtml(strings.review || 'Review in Filikod > Duplicates') +
     40                                escapeHtml(strings.review || 'Review in Media > Duplicate files') +
    4141                                '</a>';
    4242                }
  • filikod/trunk/filikod.php

    r3763820 r3833014  
    33 * Plugin Name: Filikod – Alt Text Checker & Bulk Image Alt Text Editor
    44 * Plugin URI: https://filikod.com
    5  * Description: Free alt text checker for WordPress: find missing, generic or duplicate image alt text, get an ALT Quality Score (0-100%) and fix it all in bulk.
    6  * Version: 1.3.0
     5 * Description: Free alt text checker for WordPress accessibility (WCAG 1.1.1): find missing, generic or duplicate image alt text, score it and fix it all in bulk.
     6 * Version: 1.4.0
    77 * Author: Filikod
    88 * Author URI: https://filikod.com
    … …  
    1212 * Domain Path: /languages
    1313 * Requires at least: 5.8
    14  * Tested up to: 7.1
    1514 * Requires PHP: 7.4
    1615 */
    … …  
    2221
    2322// Définir les constantes du plugin
    24 define('FILIKOD_VERSION', '1.3.0');
     23define('FILIKOD_VERSION', '1.4.0');
    2524define('FILIKOD_PLUGIN_URL', plugin_dir_url(__FILE__));
    2625define('FILIKOD_PLUGIN_PATH', plugin_dir_path(__FILE__));
    … …  
    164163        // (wp_cache_flush() vidait Redis/Memcached pour tout le site, voire tout le réseau).
    165164        $this->flush_plugin_caches();
     165
     166        // Date d'installation (bloc « Laisser un avis » après quelques jours) : maintenant pour une
     167        // première installation, 0 pour une réactivation (plugin déjà utilisé avant).
     168        if (false === get_option('filikod_installed_at', false)) {
     169            add_option('filikod_installed_at', false === get_option('filikod_version', false) ? time() : 0, '', false);
     170        }
    166171
    167172        update_option('filikod_version', FILIKOD_VERSION);
    … …  
    204209        delete_option('filikod_debug_mode');
    205210
     211        // Mise à jour d'une version antérieure : le plugin est utilisé depuis un moment (0 = ancien).
     212        if (false === get_option('filikod_installed_at', false)) {
     213            add_option('filikod_installed_at', 0, '', false);
     214        }
     215
    206216        update_option('filikod_version', FILIKOD_VERSION);
    207217    }
  • filikod/trunk/includes/accessibility/class-filikod-accessibility.php

    r3763820 r3833014  
    9595     */
    9696    private function apply_upload_options($attachment_id) {
    97         // 1) Générer le texte ALT si activé (priorité : titre de l’attachment puis nom de fichier)
     97        $remove_title = get_option('filikod_remove_title', 'no') === 'yes';
     98        // 1) Générer le texte ALT si activé (priorité : titre de l’attachment puis nom de fichier).
     99        //    Sans ALT automatique mais avec suppression du titre : le titre devient d'abord l'ALT d'une image
     100        //    qui n'en a pas, pour qu'il ne soit jamais effacé sans avoir servi (règle du 29/11/2026).
    98101        if (get_option('filikod_auto_alt', 'no') === 'yes') {
    99102            $this->generate_alt_text($attachment_id);
     103        } elseif ($remove_title) {
     104            // Nettoyé comme en masse : un titre tiré du nom de fichier perd ses tirets, une phrase garde sa ponctuation.
     105            $this->generate_alt_text($attachment_id, true, true);
    100106        }
    101107        // 2) Nettoyer les caractères spéciaux dans le texte ALT si activé
    … …  
    104110        }
    105111        // 3) Supprimer le titre (post_title) si activé, après utilisation pour l’ALT
    106         if (get_option('filikod_remove_title', 'no') === 'yes') {
     112        if ($remove_title) {
    107113            $this->clear_attachment_title($attachment_id);
    108114        }
    … …  
    234240     * 5. Sauvegarde uniquement si l'image n'a pas déjà un texte ALT
    235241     *
    236      * @param int $attachment_id L'ID de l'attachment
    237      */
    238     private function generate_alt_text($attachment_id) {
     242     * @param int       $attachment_id L'ID de l'attachment
     243     * @param bool|null $clean         Nettoyer les caractères spéciaux (null : selon l'option d'envoi).
     244     * @param bool      $title_only    Seulement depuis le titre, jamais depuis le nom de fichier : appel fait
     245     *                                 juste avant d'effacer le titre, quand l'ALT automatique n'est pas demandé.
     246     */
     247    private function generate_alt_text($attachment_id, $clean = null, $title_only = false) {
    239248        // Récupérer le texte ALT actuel
    240249        $current_alt = get_post_meta($attachment_id, '_wp_attachment_image_alt', true);
    241250
    242         // Si l'image a déjà un texte ALT, ne pas le modifier
    243         if (!empty($current_alt)) {
     251        // Si l'image a déjà un texte ALT, ne pas le modifier (un ALT fait d'espaces compte comme vide,
     252        // comme dans l'audit, qui le classe « manquant »).
     253        if (is_string($current_alt) && '' !== trim($current_alt)) {
    244254            return;
    245255        }
    … …  
    262272        if ($title !== '') {
    263273            $alt_text = $title;
     274        } elseif ($title_only) {
     275            return;
    264276        } elseif ($filename_without_ext !== '') {
    265277            $alt_text = $filename_without_ext;
    … …  
    268280        }
    269281
    270         // Si l'option de nettoyage des caractères spéciaux est activée, l'appliquer maintenant
    271         if (get_option('filikod_clean_alt_special_chars', 'no') === 'yes') {
     282        // Nettoyage des caractères spéciaux : selon l'option à l'envoi ; toujours depuis l'écran
     283        // Traitement en masse ($clean = true), qui ne dépend pas des réglages.
     284        $do_clean = null === $clean ? get_option('filikod_clean_alt_special_chars', 'no') === 'yes' : (bool) $clean;
     285        if ($do_clean) {
    272286            $alt_text = self::clean_special_chars_value($alt_text);
    273287        }
    … …  
    421435     * @return array Résultat du traitement du batch
    422436     */
    423     public function process_existing_images_batch($offset = 0, $batch_size = 50, $total_processed = 0, $total_skipped = 0) {
     437    public function process_existing_images_batch($offset = 0, $batch_size = 50, $total_processed = 0, $total_skipped = 0, $tasks = null, $total_not_filled = 0) {
    424438        global $wpdb;
    425439
    … …  
    428442        $offset     = max(0, (int) $offset);
    429443
    430         $auto_alt_enabled = get_option('filikod_auto_alt', 'no') === 'yes';
    431         $clean_chars_enabled = get_option('filikod_clean_alt_special_chars', 'no') === 'yes';
    432         $remove_title_enabled = get_option('filikod_remove_title', 'no') === 'yes';
     444        if (is_array($tasks)) {
     445            // Écran Traitement en masse : seule la tâche choisie s'exécute, quels que soient les réglages
     446            // (ils ne règlent que les envois).
     447            $auto_alt_enabled     = in_array('auto_alt', $tasks, true);
     448            $clean_chars_enabled  = in_array('clean_chars', $tasks, true);
     449            $remove_title_enabled = in_array('remove_title', $tasks, true);
     450        } else {
     451            $auto_alt_enabled = get_option('filikod_auto_alt', 'no') === 'yes';
     452            $clean_chars_enabled = get_option('filikod_clean_alt_special_chars', 'no') === 'yes';
     453            $remove_title_enabled = get_option('filikod_remove_title', 'no') === 'yes';
     454        }
    433455        // Si aucune option n'est activée, ne rien faire
    434456        if ( ! $auto_alt_enabled && ! $clean_chars_enabled && ! $remove_title_enabled ) {
    … …  
    438460                'total_processed' => $total_processed,
    439461                'total_skipped' => $total_skipped,
     462                'total_not_filled' => (int) $total_not_filled,
    440463                'finished' => true
    441464            );
    … …  
    466489                'total_processed' => $total_processed,
    467490                'total_skipped' => $total_skipped,
     491                'total_not_filled' => (int) $total_not_filled,
    468492                'finished' => true
    469493            );
    … …  
    472496        $batch_processed = 0;
    473497        $batch_skipped = 0;
     498        // Images sans ALT que le remplissage n'a pas pu compléter (titre et nom de fichier trop génériques),
     499        // pour le message de fin de l'écran Traitement en masse.
     500        $batch_not_filled = 0;
    474501
    475502        // Traiter chaque image du batch
    … …  
    480507            if ($auto_alt_enabled) {
    481508                $old_alt = get_post_meta($attachment_id, '_wp_attachment_image_alt', true);
    482                 if (empty($old_alt)) {
    483                     $this->generate_alt_text($attachment_id);
     509                if (!is_string($old_alt) || '' === trim($old_alt)) {
     510                    $this->generate_alt_text($attachment_id, is_array($tasks) ? true : null);
    484511                    $new_alt = get_post_meta($attachment_id, '_wp_attachment_image_alt', true);
    485512                    if ($new_alt !== $old_alt) {
    486513                        $was_modified = true;
     514                    } elseif (!(class_exists('Filikod_Alt_Audit') && Filikod_Alt_Audit::is_decorative($attachment_id))) {
     515                        $batch_not_filled++;
    487516                    }
    488517                }
    … …  
    504533                $post = get_post($attachment_id);
    505534                if ( $post && ! empty( $post->post_title ) ) {
     535                    // Le titre devient d'abord l'ALT d'une image qui n'en a pas : il n'est jamais effacé
     536                    // sans avoir servi (règle du 29/11/2026). Déjà fait plus haut si « auto_alt » tourne aussi.
     537                    if (!$auto_alt_enabled) {
     538                        $old_alt = get_post_meta($attachment_id, '_wp_attachment_image_alt', true);
     539                        if (!is_string($old_alt) || '' === trim($old_alt)) {
     540                            $this->generate_alt_text($attachment_id, is_array($tasks) ? true : null, true);
     541                        }
     542                    }
    506543                    $this->clear_attachment_title($attachment_id);
    507544                    $was_modified = true;
    … …  
    518555        $total_processed += $batch_processed;
    519556        $total_skipped += $batch_skipped;
     557        $total_not_filled += $batch_not_filled;
    520558
    521559        return array(
    … …  
    524562            'total_processed' => $total_processed,
    525563            'total_skipped' => $total_skipped,
     564            'total_not_filled' => $total_not_filled,
    526565            'finished' => false
    527566        );
  • filikod/trunk/includes/admin/class-filikod-admin.php

    r3763820 r3833014  
    2929    private function init_hooks() {
    3030        add_action( 'admin_menu', array( $this, 'add_admin_menu' ) );
     31        // Pas admin_init : wp-admin/menu.php refuse une page inconnue avant (« Désolé, vous n'avez pas
     32        // l'autorisation… »). WordPress déclenche admin_page_access_denied juste avant ce refus.
     33        add_action( 'admin_page_access_denied', array( $this, 'redirect_moved_pages' ) );
    3134        add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_assets' ) );
     35        add_filter( 'plugin_action_links_' . plugin_basename( FILIKOD_PLUGIN_PATH . 'filikod.php' ), array( $this, 'add_action_links' ) );
    3236        if ( class_exists( 'Filikod_Media_Alt_Status' ) ) {
    3337            new Filikod_Media_Alt_Status();
    … …  
    6367        );
    6468
    65         // Sous-menu ALT Audit
     69        // Sous-menu Textes ALT (liste des images par problème + onglet « Actions en masse » depuis la 1.4.0).
    6670        $this->alt_audit_hook = add_submenu_page(
    6771            'filikod',
    68             __( 'ALT Audit', 'filikod' ),
    69             __( 'ALT Audit', 'filikod' ),
     72            __( 'ALT Text', 'filikod' ),
     73            __( 'ALT Text', 'filikod' ),
    7074            'manage_options',
    7175            'filikod-alt-audit',
    … …  
    7377        );
    7478        $hooks[] = $this->alt_audit_hook;
    75 
    76         // Sous-menu Duplicates (détection des images en double)
    77         $hooks[] = add_submenu_page(
    78             'filikod',
    79             __( 'Duplicate Images', 'filikod' ),
    80             __( 'Duplicates', 'filikod' ),
    81             'manage_options',
    82             'filikod-duplicates',
    83             array( $this->plugin->duplicates, 'display_page' )
    84         );
    8579
    8680        // Sous-menu Settings
    … …  
    9488        );
    9589
     90        // 1.4.0 : les outils qui ne parlent pas d'ALT vont là où WordPress range ce genre d'écran,
     91        // avec l'étiquette « Filikod » dans le menu pour qu'on sache d'où ils viennent.
     92        // Médias > Fichiers en double (copies exactes et images semblables).
     93        $hooks[] = add_submenu_page(
     94            'upload.php',
     95            __( 'Duplicate files', 'filikod' ),
     96            esc_html__( 'Duplicate files', 'filikod' ) . self::menu_tag(),
     97            'manage_options',
     98            'filikod-duplicates',
     99            array( $this->plugin->duplicates, 'display_page' )
     100        );
     101
     102        // Outils > Réduire les grandes images (images déjà dans la médiathèque).
     103        $hooks[] = add_submenu_page(
     104            'tools.php',
     105            __( 'Resize large images', 'filikod' ),
     106            esc_html__( 'Resize large images', 'filikod' ) . self::menu_tag(),
     107            'manage_options',
     108            'filikod-resize',
     109            array( $this->plugin->settings, 'display_resize_page' )
     110        );
     111
    96112        // add_submenu_page() renvoie false quand l'utilisateur n'a pas la capacité.
    97113        $this->page_hooks = array_values( array_filter( $hooks, 'is_string' ) );
     114    }
     115
     116    /**
     117     * Étiquette « Filikod » ajoutée au libellé des écrans rangés sous Médias et Outils.
     118     *
     119     * @return string HTML sûr (texte fixe, la marque n'est pas traduite).
     120     */
     121    private static function menu_tag() {
     122        return ' <span class="filikod-menu-tag">Filikod</span>';
     123    }
     124
     125    /**
     126     * Adresse de l'écran Médias > Fichiers en double (avant la 1.4.0 : Filikod > Doublons).
     127     *
     128     * @param array $args Paramètres ajoutés (view, paged…).
     129     * @return string
     130     */
     131    public static function duplicates_url( $args = array() ) {
     132        return add_query_arg( array_merge( array( 'page' => 'filikod-duplicates' ), (array) $args ), admin_url( 'upload.php' ) );
     133    }
     134
     135    /**
     136     * Adresse de l'écran Outils > Réduire les grandes images.
     137     *
     138     * @return string
     139     */
     140    public static function resize_url() {
     141        return add_query_arg( array( 'page' => 'filikod-resize' ), admin_url( 'tools.php' ) );
     142    }
     143
     144    /**
     145     * Adresse de l'onglet « Actions en masse » de Filikod > Textes ALT (avant la 1.4.0 : Filikod > Traitement en masse).
     146     *
     147     * @param string $anchor Ancre de la carte à ouvrir (sans #), ou vide.
     148     * @return string
     149     */
     150    public static function bulk_url( $anchor = '' ) {
     151        $url = add_query_arg( array( 'page' => 'filikod-alt-audit', 'view' => 'bulk' ), admin_url( 'admin.php' ) );
     152        return '' !== $anchor ? $url . '#' . rawurlencode( $anchor ) : $url;
     153    }
     154
     155    /**
     156     * Anciennes adresses (favoris, liens des versions précédentes) : vers les écrans de la 1.4.0.
     157     * Appelé par admin_page_access_denied, que WordPress déclenche avant de refuser une page qui n'existe plus
     158     * (vérifié le 29/11/2026 sur filikod.com : avec admin_init, la page de refus s'affichait).
     159     */
     160    public function redirect_moved_pages() {
     161        global $pagenow;
     162        if ( 'admin.php' !== $pagenow || ! isset( $_GET['page'] ) || ! current_user_can( 'manage_options' ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Read-only redirect of an old admin URL, no state change.
     163            return;
     164        }
     165        $page = sanitize_key( wp_unslash( $_GET['page'] ) ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Read-only redirect of an old admin URL, no state change.
     166        if ( 'filikod-bulk' === $page ) {
     167            wp_safe_redirect( self::bulk_url() );
     168            exit;
     169        }
     170        if ( 'filikod-duplicates' === $page ) {
     171            $args = array();
     172            foreach ( array( 'view', 'filter', 'paged' ) as $key ) {
     173                if ( isset( $_GET[ $key ] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Values copied into the new URL, each one sanitized.
     174                    $args[ $key ] = sanitize_key( wp_unslash( $_GET[ $key ] ) ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- See above.
     175                }
     176            }
     177            wp_safe_redirect( self::duplicates_url( $args ) );
     178            exit;
     179        }
     180    }
     181
     182    /**
     183     * Lien « Ouvrir Filikod » sous le nom de l'extension, dans la liste des extensions.
     184     *
     185     * @param string[] $links Liens existants.
     186     * @return string[]
     187     */
     188    public function add_action_links( $links ) {
     189        if ( ! current_user_can( 'manage_options' ) ) {
     190            return $links;
     191        }
     192        $open = '<a href="' . esc_url( admin_url( 'admin.php?page=filikod' ) ) . '">' . esc_html__( 'Open Filikod', 'filikod' ) . '</a>';
     193        array_unshift( $links, $open );
     194        return $links;
    98195    }
    99196
    … …  
    159256                    /* translators: 1: Number of processed images, 2: Number of skipped images */
    160257                    'accessibilityComplete' => __( 'Processing complete: %1$d images processed, %2$d skipped.', 'filikod' ),
     258                    'invalidWidth'          => __( 'Enter a width between 100 and 10,000 pixels.', 'filikod' ),
     259                    /* translators: 1: number of ALT texts written, 2: number of images left without ALT text */
     260                    'altFillComplete'       => __( 'ALT text written: %1$d. Images left without ALT: %2$d, because their title or file name is too generic (for example "IMG_1234" or "logo-company").', 'filikod' ),
     261                    /* translators: %d: number of ALT texts written */
     262                    'altFillCompleteAll'    => __( 'ALT text written: %d. No image is left without ALT.', 'filikod' ),
     263                    /* translators: %d: number of ALT texts cleaned */
     264                    'cleanComplete'         => __( 'ALT text cleaned: %d.', 'filikod' ),
     265                    /* translators: %d: number of image titles cleared */
     266                    'titlesComplete'        => __( 'Titles cleared: %d.', 'filikod' ),
     267                    'writeInAudit'          => __( 'Write them in ALT Text', 'filikod' ),
    161268                    'altSaved'              => __( 'Saved.', 'filikod' ),
    162269                    'altSaveError'          => __( 'Error saving ALT.', 'filikod' ),
    … …  
    169276                ),
    170277            );
     278        // Écran Traitement en masse : lien vers l'onglet Manquants de l'audit, dans le message de fin.
     279        $localize['auditMissingUrl'] = admin_url( 'admin.php?page=filikod-alt-audit&status=missing' );
     280        // Après une action en masse réussie : invitation à laisser un avis (voir Filikod_Dashboard::review_nudge_allowed()).
     281        $localize['reviewNudge']          = class_exists( 'Filikod_Dashboard' ) && Filikod_Dashboard::review_nudge_allowed( get_current_user_id() );
     282        $localize['reviewUrl']            = 'https://wordpress.org/support/plugin/filikod/reviews/#new-post';
     283        $localize['strings']['reviewNudge'] = __( 'Did Filikod save you time? A review on WordPress.org helps other sites find it.', 'filikod' );
     284        $localize['strings']['leaveReview'] = __( 'Leave a review', 'filikod' );
     285        $localize['strings']['maybeLater']  = __( 'Maybe later', 'filikod' );
     286        $localize['strings']['newTab']      = __( '(opens in a new tab)', 'filikod' );
    171287        if ( '' !== $this->alt_audit_hook && $hook === $this->alt_audit_hook ) {
    172288            $localize['saveAltNonce'] = wp_create_nonce( 'filikod_save_alt' );
    … …  
    198314     */
    199315    private function get_svg_icon() {
    200         return '<svg width="20" height="22" viewBox="0 0 20 22" xmlns="http://www.w3.org/2000/svg"><path d="M1 20.0468L14 20.0468L4.50001 6.04681L1 11.5468V20.0468Z" fill="#a7aaad"/><path d="M7.00001 20.0468H19L13 11.0468L7.00001 20.0468Z" fill="#a7aaad"/><path d="M16 4.04688L14.5 2.04688L19.8595 2.14577e-05L17.5 2.04688L19 3.98544L12.9356 8.4258L16 4.04688Z" fill="#a7aaad"/><path d="M2.00001 6.04681V16.0468C2.00001 17.0179 2.00228 17.6458 2.06446 18.1083C2.12278 18.5419 2.21686 18.6777 2.29297 18.7538C2.36908 18.8299 2.50494 18.924 2.93848 18.9824C3.40099 19.0445 4.02893 19.0468 5.00001 19.0468H15C15.9711 19.0468 16.599 19.0445 17.0615 18.9824C17.4951 18.924 17.6309 18.8299 17.707 18.7538C17.7831 18.6777 17.8772 18.5419 17.9356 18.1083C17.9977 17.6458 18 17.0179 18 16.0468V10.0468H20V16.0468C20 16.9613 20.0022 17.7482 19.918 18.3749C19.8298 19.0303 19.6307 19.6583 19.1211 20.1679C18.6115 20.6775 17.9835 20.8766 17.3281 20.9648C16.7014 21.049 15.9145 21.0468 15 21.0468H5.00001C4.08547 21.0468 3.29863 21.049 2.67188 20.9648C2.01648 20.8766 1.38849 20.6775 0.878912 20.1679C0.369331 19.6583 0.170191 19.0303 0.0820374 18.3749C-0.00222694 17.7482 5.65403e-06 16.9613 5.65403e-06 16.0468V6.04681C5.65403e-06 5.13227 -0.00222695 4.34543 0.0820374 3.71868C0.170191 3.06328 0.369331 2.43529 0.878912 1.92571C1.38849 1.41613 2.01648 1.21699 2.67188 1.12884C3.29863 1.04457 4.08547 1.04681 5.00001 1.04681H10V3.04681H5.00001C4.02893 3.04681 3.40099 3.04908 2.93848 3.11126C2.50494 3.16958 2.36908 3.26366 2.29297 3.33977C2.21686 3.41589 2.12278 3.55174 2.06446 3.98528C2.00228 4.44779 2.00001 5.07573 2.00001 6.04681Z" fill="#a7aaad"/></svg>';
     316        return self::svg_icon( '#a7aaad' );
     317    }
     318
     319    /**
     320     * Icône Filikod dans une couleur donnée : menu (#a7aaad, recolorée par WordPress) ou marque des
     321     * écrans rangés sous Médias et Outils (currentColor, couleur du lien qui la porte).
     322     *
     323     * @param string $fill Couleur de remplissage.
     324     * @return string
     325     */
     326    public static function svg_icon( $fill ) {
     327        $svg = '<svg width="20" height="22" viewBox="0 0 20 22" xmlns="http://www.w3.org/2000/svg"><path d="M1 20.0468L14 20.0468L4.50001 6.04681L1 11.5468V20.0468Z" fill="#a7aaad"/><path d="M7.00001 20.0468H19L13 11.0468L7.00001 20.0468Z" fill="#a7aaad"/><path d="M16 4.04688L14.5 2.04688L19.8595 2.14577e-05L17.5 2.04688L19 3.98544L12.9356 8.4258L16 4.04688Z" fill="#a7aaad"/><path d="M2.00001 6.04681V16.0468C2.00001 17.0179 2.00228 17.6458 2.06446 18.1083C2.12278 18.5419 2.21686 18.6777 2.29297 18.7538C2.36908 18.8299 2.50494 18.924 2.93848 18.9824C3.40099 19.0445 4.02893 19.0468 5.00001 19.0468H15C15.9711 19.0468 16.599 19.0445 17.0615 18.9824C17.4951 18.924 17.6309 18.8299 17.707 18.7538C17.7831 18.6777 17.8772 18.5419 17.9356 18.1083C17.9977 17.6458 18 17.0179 18 16.0468V10.0468H20V16.0468C20 16.9613 20.0022 17.7482 19.918 18.3749C19.8298 19.0303 19.6307 19.6583 19.1211 20.1679C18.6115 20.6775 17.9835 20.8766 17.3281 20.9648C16.7014 21.049 15.9145 21.0468 15 21.0468H5.00001C4.08547 21.0468 3.29863 21.049 2.67188 20.9648C2.01648 20.8766 1.38849 20.6775 0.878912 20.1679C0.369331 19.6583 0.170191 19.0303 0.0820374 18.3749C-0.00222694 17.7482 5.65403e-06 16.9613 5.65403e-06 16.0468V6.04681C5.65403e-06 5.13227 -0.00222695 4.34543 0.0820374 3.71868C0.170191 3.06328 0.369331 2.43529 0.878912 1.92571C1.38849 1.41613 2.01648 1.21699 2.67188 1.12884C3.29863 1.04457 4.08547 1.04681 5.00001 1.04681H10V3.04681H5.00001C4.02893 3.04681 3.40099 3.04908 2.93848 3.11126C2.50494 3.16958 2.36908 3.26366 2.29297 3.33977C2.21686 3.41589 2.12278 3.55174 2.06446 3.98528C2.00228 4.44779 2.00001 5.07573 2.00001 6.04681Z" fill="#a7aaad"/></svg>';
     328        return str_replace( 'fill="#a7aaad"', 'fill="' . esc_attr( $fill ) . '"', $svg );
    201329    }
    202330
  • filikod/trunk/includes/admin/class-filikod-media-alt-status.php

    r3763820 r3833014  
    343343                                return sprintf(
    344344                                        /* translators: %d: maximum recommended ALT length in characters */
    345                                         __( 'ALT text exceeds %d characters. Long ALTs are poorly read by screen readers and dilute SEO signals. Aim for a concise description.', 'filikod' ),
     345                                        __( 'ALT text exceeds %d characters. A long ALT is hard to follow: screen readers read it in full and listeners cannot go back inside it. Keep what the image shows and move credits, dates or details to the caption or the text around the image.', 'filikod' ),
    346346                                        (int) $too_long_min
    347347                                );
    … …  
    405405                                ),
    406406                                'tooltips'   => array(
    407                                         'duplicate_file' => __( 'Exact copy of an image already in the library (same file fingerprint). See Filikod > Duplicates.', 'filikod' ),
     407                                        'duplicate_file' => __( 'Exact copy of an image already in the library (same file fingerprint). See Media > Duplicate files.', 'filikod' ),
    408408                                        'ok'         => self::tooltip_for_code( 'ok' ),
    409409                                        'missing'    => self::tooltip_for_code( 'missing' ),
  • filikod/trunk/includes/class-filikod-alt-audit.php

    r3763820 r3833014  
    814814                        ? $known['alt']
    815815                        : get_post_meta( $attachment_id, '_wp_attachment_image_alt', true );
    816                 $alt_raw = is_string( $alt_raw ) ? maybe_unserialize( $alt_raw ) : '';
     816                // Déjà désérialisé : par get_post_meta(), ou par fetch_alt_values() pour la valeur brute de SQL.
     817                // Une seconde désérialisation transformait en objet PHP un ALT saisi au format sérialisé.
    817818                $alt_raw = is_string( $alt_raw ) ? $alt_raw : '';
    818819
    … …  
    988989
    989990        /**
     991         * Valeur brute d'un ALT lue en SQL → texte, comme get_post_meta() mais sans jamais créer d'objet.
     992         *
     993         * WordPress enveloppe une chaîne qui ressemble à des données sérialisées (s:N:"…") : on l'ouvre une
     994         * seule fois. allowed_classes => false : même une valeur écrite hors de WordPress (import, SQL)
     995         * ne peut pas instancier de classe. Tout ce qui n'est pas une chaîne compte comme ALT vide.
     996         *
     997         * @param mixed $raw Valeur de meta_value.
     998         * @return string
     999         */
     1000        public static function unserialize_alt_value( $raw ) {
     1001                if ( ! is_string( $raw ) ) {
     1002                        return '';
     1003                }
     1004                if ( ! is_serialized( $raw ) ) {
     1005                        return $raw;
     1006                }
     1007                // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.serialize_unserialize, WordPress.PHP.NoSilencedErrors.Discouraged -- Same as maybe_unserialize(), restricted to scalars: no object can be created.
     1008                $value = @unserialize( trim( $raw ), array( 'allowed_classes' => false ) );
     1009                return is_string( $value ) ? $value : '';
     1010        }
     1011
     1012        /**
    9901013         * ALT et marqueur décoratif de toutes les images, par tranches de 1 000 en une requête chacune.
    9911014         * WP_Query en mode 'ids' n'amorce pas le cache des métas : sans cela, l'audit complet coûtait deux
    … …  
    10201043                                // Même règle que get_post_meta( …, true ) : la première ligne par meta_id fait foi.
    10211044                                if ( '_wp_attachment_image_alt' === $row->meta_key && ! $values[ $id ]['alt_seen'] ) {
    1022                                         $values[ $id ]['alt']      = is_string( $row->meta_value ) ? $row->meta_value : '';
     1045                                        $values[ $id ]['alt']      = self::unserialize_alt_value( $row->meta_value );
    10231046                                        $values[ $id ]['alt_seen'] = true;
    10241047                                } elseif ( self::META_DECORATIVE === $row->meta_key && ! $values[ $id ]['deco_seen'] ) {
  • filikod/trunk/includes/class-filikod-media-utils.php

    r3704678 r3833014  
    6262
    6363        /**
    64          * Formater une taille en octets en format lisible (KB, MB, GB).
     64         * Compter les ALT d'images que « Nettoyer les ALT » modifierait (même test que clean_alt_special_chars()).
     65         * Sert au chiffre de la carte de l'écran Traitement en masse.
     66         *
     67         * @return int Le nombre d'ALT à nettoyer.
     68         */
     69        public static function count_alt_to_clean() {
     70                global $wpdb;
     71
     72                if ( ! is_callable( array( 'Filikod_Accessibility', 'clean_special_chars_value' ) ) ) {
     73                        return 0;
     74                }
     75                // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- Comptage à la demande côté admin ; un cache serait immédiatement obsolète après un traitement.
     76                $alts  = $wpdb->get_col(
     77                        $wpdb->prepare(
     78                                "SELECT m.meta_value
     79                                FROM {$wpdb->postmeta} m
     80                                INNER JOIN {$wpdb->posts} p ON p.ID = m.post_id
     81                                WHERE m.meta_key = '_wp_attachment_image_alt'
     82                                AND m.meta_value <> ''
     83                                AND p.post_type = 'attachment'
     84                                AND p.post_status = 'inherit'
     85                                AND p.post_mime_type LIKE %s",
     86                                'image/%'
     87                        )
     88                );
     89                $count = 0;
     90                foreach ( (array) $alts as $alt ) {
     91                        if ( ! is_string( $alt ) || '' === trim( $alt ) ) {
     92                                continue;
     93                        }
     94                        $cleaned = Filikod_Accessibility::clean_special_chars_value( $alt );
     95                        if ( '' !== $cleaned && $cleaned !== $alt ) {
     96                                $count++;
     97                        }
     98                }
     99                return $count;
     100        }
     101
     102        /**
     103         * Compter les images plus larges qu'une largeur donnée, d'après la largeur enregistrée dans leurs
     104         * métadonnées (la même que celle que resize_image() compare à la largeur maximale).
     105         * La largeur principale est la première clé « width » du tableau sérialisé ; celles des tailles
     106         * intermédiaires viennent après, dans « sizes ».
     107         *
     108         * @param int $width Largeur en pixels.
     109         * @return int|null Le nombre d'images, ou null si la requête a échoué.
     110         */
     111        public static function count_images_wider_than( $width ) {
     112                global $wpdb;
     113
     114                $width = (int) $width;
     115                if ( $width <= 0 ) {
     116                        return 0;
     117                }
     118                $key = 's:5:"width";i:';
     119                // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- Comptage à la demande côté admin, recalculé quand la largeur change.
     120                $count = $wpdb->get_var(
     121                        $wpdb->prepare(
     122                                "SELECT COUNT(*)
     123                                FROM {$wpdb->posts} p
     124                                INNER JOIN {$wpdb->postmeta} m ON m.post_id = p.ID AND m.meta_key = '_wp_attachment_metadata'
     125                                WHERE p.post_type = 'attachment'
     126                                AND p.post_status = 'inherit'
     127                                AND p.post_mime_type LIKE %s
     128                                AND LOCATE( %s, m.meta_value ) > 0
     129                                AND CAST( SUBSTRING_INDEX( SUBSTRING( m.meta_value, LOCATE( %s, m.meta_value ) + %d ), ';', 1 ) AS UNSIGNED ) > %d",
     130                                'image/%',
     131                                $key,
     132                                $key,
     133                                strlen( $key ),
     134                                $width
     135                        )
     136                );
     137                return null === $count ? null : (int) $count;
     138        }
     139
     140        /**
     141         * Formater une taille en octets en format lisible.
     142         *
     143         * Depuis la 1.4.0 : size_format() de WordPress, dont les unités sont traduites (« 3,24 Mo » en français,
     144         * « 3.24 MB » en anglais), comme sur le tableau de bord. L'ancien calcul reste en secours.
    65145         *
    66146         * @param int $bytes La taille en octets.
    67          * @return string La taille formatée (ex: "1.5 MB").
     147         * @return string La taille formatée (ex : « 1,5 Mo »).
    68148         */
    69149        public static function format_bytes( $bytes ) {
     150                $bytes = max( 0, (int) $bytes );
     151                if ( function_exists( 'size_format' ) ) {
     152                        $formatted = size_format( $bytes, 2 );
     153                        if ( is_string( $formatted ) && '' !== $formatted ) {
     154                                return $formatted;
     155                        }
     156                }
    70157                if ( $bytes >= 1073741824 ) {
    71158                        return number_format_i18n( $bytes / 1073741824, 2 ) . ' GB';
  • filikod/trunk/includes/dashboard/class-filikod-dashboard.php

    r3763820 r3833014  
    2121    const MEDIA_STATS_TTL = 900;
    2222
     23    /**
     24     * Méta utilisateur du bloc « Laisser un avis » : « done » (avis laissé ou « Déjà fait »),
     25     * ou horodatage jusqu'auquel le bloc reste masqué (« Plus tard »).
     26     */
     27    const REVIEW_PROMPT_META = 'filikod_review_prompt';
     28
     29    /**
     30     * Option : date d'installation (0 = installé avant la 1.3.1, donc utilisé depuis longtemps).
     31     */
     32    const OPTION_INSTALLED_AT = 'filikod_installed_at';
     33
     34    /**
     35     * Jours d'utilisation avant de proposer un avis, et durée de « Plus tard ».
     36     */
     37    const REVIEW_MIN_DAYS    = 3;
     38    const REVIEW_SNOOZE_DAYS = 30;
     39
    2340    private $plugin;
    2441
    … …  
    2744        add_action( 'wp_ajax_filikod_save_alt', array( $this, 'ajax_save_alt' ) );
    2845        add_action( 'wp_ajax_filikod_toggle_decorative', array( $this, 'ajax_toggle_decorative' ) );
     46        add_action( 'wp_ajax_filikod_review_prompt', array( $this, 'ajax_review_prompt' ) );
    2947        // Invalider le cache des stats média lors des évènements qui les modifient.
    3048        add_action( 'add_attachment', array( __CLASS__, 'invalidate_media_stats_cache' ) );
    3149        add_action( 'delete_attachment', array( __CLASS__, 'invalidate_media_stats_cache' ) );
     50    }
     51
     52    /**
     53     * Le bloc « Laisser un avis » s'affiche-t-il pour cet utilisateur ?
     54     * Seulement sur le tableau de bord Filikod, une fois un score ALT calculé, après quelques jours
     55     * d'utilisation, tant que l'utilisateur ne l'a pas fermé (« Déjà fait ») ou repoussé (« Plus tard »).
     56     * Jamais de contrepartie : règle de wordpress.org.
     57     *
     58     * @param int $user_id       Utilisateur.
     59     * @param int $scored_images Images prises en compte dans le score ALT (décoratives exclues).
     60     * @return bool
     61     */
     62    public static function should_show_review_prompt( $user_id, $scored_images ) {
     63        $user_id = (int) $user_id;
     64        if ( $user_id <= 0 || (int) $scored_images <= 0 ) {
     65            return false;
     66        }
     67        $state = get_user_meta( $user_id, self::REVIEW_PROMPT_META, true );
     68        if ( 'done' === $state || ( is_numeric( $state ) && (int) $state > time() ) ) {
     69            return false;
     70        }
     71        $installed_at = (int) get_option( self::OPTION_INSTALLED_AT, 0 );
     72        return $installed_at <= 0 || ( time() - $installed_at ) >= self::REVIEW_MIN_DAYS * DAY_IN_SECONDS;
     73    }
     74
     75    /**
     76     * Invitation discrète après une action en masse réussie (29/11/2026) : le meilleur moment pour demander
     77     * un avis. Sans délai d'installation (l'utilisateur vient de se servir de Filikod), mais jamais après
     78     * « Laisser un avis » / « Déjà fait », ni pendant un « Plus tard ». Même méta que le bandeau.
     79     *
     80     * @param int $user_id Utilisateur.
     81     * @return bool
     82     */
     83    public static function review_nudge_allowed( $user_id ) {
     84        $user_id = (int) $user_id;
     85        if ( $user_id <= 0 ) {
     86            return false;
     87        }
     88        $state = get_user_meta( $user_id, self::REVIEW_PROMPT_META, true );
     89        return ! ( 'done' === $state || ( is_numeric( $state ) && (int) $state > time() ) );
     90    }
     91
     92    /**
     93     * AJAX : « Laisser un avis » ou « Déjà fait » (done), « Plus tard » (later).
     94     */
     95    public function ajax_review_prompt() {
     96        if ( ! current_user_can( 'manage_options' ) ) {
     97            wp_send_json_error( array( 'message' => __( 'Insufficient permissions.', 'filikod' ) ) );
     98        }
     99        if ( ! check_ajax_referer( 'filikod_admin_nonce', 'nonce', false ) ) {
     100            wp_send_json_error( array( 'message' => __( 'Security check failed.', 'filikod' ) ) );
     101        }
     102        $choice  = isset( $_POST['choice'] ) ? sanitize_key( wp_unslash( $_POST['choice'] ) ) : '';
     103        $user_id = get_current_user_id();
     104        if ( 'done' === $choice ) {
     105            update_user_meta( $user_id, self::REVIEW_PROMPT_META, 'done' );
     106        } elseif ( 'later' === $choice ) {
     107            update_user_meta( $user_id, self::REVIEW_PROMPT_META, time() + self::REVIEW_SNOOZE_DAYS * DAY_IN_SECONDS );
     108        } else {
     109            wp_send_json_error( array( 'message' => __( 'An error occurred.', 'filikod' ) ) );
     110        }
     111        wp_send_json_success();
    32112    }
    33113
  • filikod/trunk/includes/duplicates/class-filikod-duplicates.php

    r3763820 r3833014  
    225225                // Le même encart sur chaque membre du groupe : la liste complète des copies, sans lien
    226226                // d'une image vers une autre (on tournait en boucle), un seul lien vers la page Duplicates.
    227                 $duplicates_url = add_query_arg( array( 'page' => 'filikod-duplicates' ), admin_url( 'admin.php' ) );
     227                $duplicates_url = Filikod_Admin::duplicates_url();
    228228                $total          = count( $dup['ids'] );
    229229                $html           = '<div class="filikod-dup-warning" role="status">'
    … …  
    262262                }
    263263                $html .= '</ul>'
    264                         . '<a href="' . esc_url( $duplicates_url ) . '" target="_blank" rel="noopener noreferrer">' . esc_html__( 'Review and clean up in Filikod > Duplicates', 'filikod' ) . '</a>'
     264                        . '<a href="' . esc_url( $duplicates_url ) . '" target="_blank" rel="noopener noreferrer">' . esc_html__( 'Review and clean up in Media > Duplicate files', 'filikod' ) . '</a>'
    265265                        . '</div>';
    266266
    … …  
    303303                        'filikodDuplicateAlert',
    304304                        array(
    305                                 'duplicatesUrl' => add_query_arg( array( 'page' => 'filikod-duplicates' ), admin_url( 'admin.php' ) ),
     305                                'duplicatesUrl' => Filikod_Admin::duplicates_url(),
    306306                                'strings'       => array(
    307307                                        'title'   => __( 'Duplicate file:', 'filikod' ),
    308308                                        /* translators: 1: uploaded file name, 2: file name of the older copy, 3: attachment ID of the older copy */
    309309                                        'message' => __( '%1$s is an exact copy of %2$s (ID %3$s) already in your library.', 'filikod' ),
    310                                         'review'  => __( 'Review in Filikod > Duplicates', 'filikod' ),
     310                                        'review'  => __( 'Review in Media > Duplicate files', 'filikod' ),
    311311                                        'dismiss' => __( 'Dismiss this notice.', 'filikod' ),
    312312                                ),
  • filikod/trunk/includes/optimizations/class-filikod-image-resizer.php

    r3737001 r3833014  
    2222
    2323    /**
     24     * Largeur choisie sur l'écran Traitement en masse, le temps d'un lot (0 = largeur des réglages).
     25     *
     26     * @var int
     27     */
     28    private $max_width_override = 0;
     29
     30    /**
    2431     * Nom de la taille WordPress personnalisée
    2532     */
    … …  
    432439     */
    433440    public function get_max_width() {
     441        if ($this->max_width_override > 0) {
     442            return $this->max_width_override;
     443        }
    434444        $max_width = (int) get_option('filikod_max_image_width', 2000);
    435445
    … …  
    491501     * @return array Résultat du traitement du batch
    492502     */
    493     public function process_existing_images_batch($offset = 0, $batch_size = 10, $total_processed = 0, $total_skipped = 0, $total_saved = 0) {
     503    public function process_existing_images_batch($offset = 0, $batch_size = 10, $total_processed = 0, $total_skipped = 0, $total_saved = 0, $force = false, $max_width = 0) {
    494504        global $wpdb;
    495505
    496         // Vérifier si le redimensionnement automatique est activé
    497         if (get_option('filikod_auto_resize_enabled', 'no') !== 'yes') {
     506        // Hors écran Traitement en masse ($force), le redimensionnement automatique doit être activé.
     507        if (!$force && get_option('filikod_auto_resize_enabled', 'no') !== 'yes') {
    498508            return array(
    499509                'processed' => 0,
    … …  
    538548        $batch_saved = 0;
    539549
     550        // Largeur choisie sur l'écran, dans les mêmes bornes que le réglage.
     551        $max_width = (int) $max_width;
     552        $this->max_width_override = ($max_width >= 100 && $max_width <= 10000) ? $max_width : 0;
     553
    540554        foreach ($image_ids as $attachment_id) {
    541555            $result = $this->resize_image($attachment_id);
    … …  
    548562            }
    549563        }
     564
     565        $this->max_width_override = 0;
    550566
    551567        // Cumuler les totaux
  • filikod/trunk/includes/settings/class-filikod-settings.php

    r3737001 r3833014  
    2929        add_action('wp_ajax_filikod_get_total_images_count_accessibility', array($this, 'ajax_get_total_images_count_accessibility'));
    3030        add_action('wp_ajax_filikod_process_existing_images_accessibility_batch', array($this, 'ajax_process_existing_images_accessibility_batch'));
     31        // Écran Traitement en masse : chiffres des cartes, recalculés après un traitement ou un changement de largeur
     32        add_action('wp_ajax_filikod_bulk_counts', array($this, 'ajax_bulk_counts'));
    3133    }
    3234
    … …  
    8385
    8486    /**
     87     * Chiffres des cartes de l'écran Traitement en masse : nombre d'images concernées et libellé accordé.
     88     *
     89     * @param int $max_width Largeur de la carte Redimensionner (hors 100-10 000 : largeur des réglages).
     90     * @return array<string, array{count: int, label: string}> Par tâche : auto_alt, clean_chars, remove_title, resize.
     91     */
     92    public function get_bulk_counts($max_width = 0) {
     93        $max_width = (int) $max_width;
     94        if ($max_width < 100 || $max_width > 10000) {
     95            $max_width = (int) $this->plugin->image_resizer->get_max_width();
     96        }
     97        $audit   = $this->plugin->dashboard->get_alt_audit_data();
     98        $missing = isset($audit['counts']['missing']) ? (int) $audit['counts']['missing'] : 0;
     99        $clean   = Filikod_Media_Utils::count_alt_to_clean();
     100        $titles  = Filikod_Media_Utils::count_images_with_title();
     101        $wide    = Filikod_Media_Utils::count_images_wider_than($max_width);
     102
     103        if (null === $wide) {
     104            // Requête impossible sur ce serveur : on montre le total, et le bouton reste utilisable.
     105            $wide       = Filikod_Media_Utils::count_images();
     106            $wide_label = _n('image in your Media Library', 'images in your Media Library', $wide, 'filikod');
     107        } else {
     108            $wide_label = sprintf(
     109                /* translators: %s: maximum width in pixels, e.g. "2,000" */
     110                _n('image wider than %s px', 'images wider than %s px', $wide, 'filikod'),
     111                number_format_i18n($max_width)
     112            );
     113        }
     114
     115        return array(
     116            'auto_alt'     => array('count' => $missing, 'label' => _n('image without ALT text', 'images without ALT text', $missing, 'filikod')),
     117            'clean_chars'  => array('count' => $clean, 'label' => _n('ALT text to clean', 'ALT texts to clean', $clean, 'filikod')),
     118            'remove_title' => array('count' => $titles, 'label' => _n('image with a title', 'images with a title', $titles, 'filikod')),
     119            'resize'       => array('count' => $wide, 'label' => $wide_label),
     120        );
     121    }
     122
     123    /**
     124     * Chiffres des cartes via AJAX (après un traitement, ou quand la largeur change)
     125     */
     126    public function ajax_bulk_counts() {
     127        if (!current_user_can('manage_options')) {
     128            wp_send_json_error(array('message' => __('Insufficient permissions.', 'filikod')));
     129        }
     130        if (!check_ajax_referer('filikod_admin_nonce', 'nonce', false)) {
     131            wp_send_json_error(array('message' => __('Security check failed.', 'filikod')));
     132        }
     133        $max_width = isset($_POST['max_width']) ? absint(wp_unslash($_POST['max_width'])) : 0;
     134        $counts    = $this->get_bulk_counts($max_width);
     135        foreach ($counts as $task => $data) {
     136            $counts[$task]['count_formatted'] = number_format_i18n($data['count']);
     137        }
     138        wp_send_json_success($counts);
     139    }
     140
     141    /**
     142     * Afficher l'écran Traitement en masse (traitements ponctuels de la médiathèque existante)
     143     */
     144    /**
     145     * Écran Outils > Réduire les grandes images (1.4.0) : la carte de redimensionnement de l'ancien
     146     * écran Traitement en masse, seule, avec l'en-tête qui la rattache à Filikod.
     147     */
     148    public function display_resize_page() {
     149        if (!current_user_can('manage_options')) {
     150            wp_die(esc_html__('You do not have sufficient permissions to access this page.', 'filikod'));
     151        }
     152        include FILIKOD_PLUGIN_PATH . 'admin/views/resize.php';
     153    }
     154
     155    /**
    85156     * Afficher la page des paramètres
    86157     */
    … …  
    289360        $total_skipped = isset($_POST['total_skipped']) ? absint(wp_unslash($_POST['total_skipped'])) : 0;
    290361
     362        // Tâche choisie sur l'écran Traitement en masse : elle s'exécute seule, sans dépendre des réglages.
     363        $task = isset($_POST['task']) ? sanitize_key(wp_unslash($_POST['task'])) : '';
     364        $total_not_filled = isset($_POST['total_not_filled']) ? absint(wp_unslash($_POST['total_not_filled'])) : 0;
     365        if (!in_array($task, array('auto_alt', 'clean_chars', 'remove_title'), true)) {
     366            wp_send_json_error(array('message' => __('Unknown task.', 'filikod')));
     367        }
     368
    291369        // Traiter le batch
    292370        $result = $this->plugin->accessibility->process_existing_images_batch(
    … …  
    294372            $batch_size,
    295373            $total_processed,
    296             $total_skipped
     374            $total_skipped,
     375            array($task),
     376            $total_not_filled
    297377        );
    298378
    … …  
    303383            'total_processed' => $result['total_processed'],
    304384            'total_skipped' => $result['total_skipped'],
     385            'total_not_filled' => isset($result['total_not_filled']) ? (int) $result['total_not_filled'] : 0,
    305386            'finished' => $result['finished'],
    306387            'next_offset' => $offset + $batch_size
    … …  
    357438        $total_skipped = isset($_POST['total_skipped']) ? absint(wp_unslash($_POST['total_skipped'])) : 0;
    358439        $total_saved = isset($_POST['total_saved']) ? absint(wp_unslash($_POST['total_saved'])) : 0;
    359 
    360         // Traiter le batch
     440        // Largeur choisie sur l'écran Traitement en masse (0 = largeur des réglages).
     441        $max_width = isset($_POST['max_width']) ? absint(wp_unslash($_POST['max_width'])) : 0;
     442        if ($max_width && ($max_width < 100 || $max_width > 10000)) {
     443            wp_send_json_error(array('message' => __('Enter a width between 100 and 10,000 pixels.', 'filikod')));
     444        }
     445
     446        // Traiter le batch : lancé depuis l'écran Traitement en masse, donc sans exiger le redimensionnement automatique.
    361447        $result = $this->plugin->image_resizer->process_existing_images_batch(
    362448            $offset,
    … …  
    364450            $total_processed,
    365451            $total_skipped,
    366             $total_saved
     452            $total_saved,
     453            true,
     454            $max_width
    367455        );
    368456
  • filikod/trunk/languages/filikod-fr_FR.po

    r3763820 r3833014  
    11msgid ""
    22msgstr ""
    3 "Project-Id-Version: Filikod 1.3.0\n"
     3"Project-Id-Version: Filikod 1.4.0\n"
    44"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/filikod\n"
    5 "PO-Revision-Date: 2026-10-06 12:00+0000\n"
     5"PO-Revision-Date: 2026-11-29 20:00+0000\n"
    66"Last-Translator: Lyode <contact@lyode.fr>\n"
    77"Language-Team: French\n"
    … …  
    1313"X-Domain: filikod\n"
    1414
    15 #: admin/views/alt-audit.php:109
     15#: admin/views/alt-audit.php:101
     16msgid "Every image has an ALT text."
     17msgstr "Toutes les images ont un texte ALT."
     18
     19#: admin/views/alt-audit.php:102
     20msgid "No generic ALT text."
     21msgstr "Aucun texte ALT générique."
     22
     23#: admin/views/alt-audit.php:103
     24msgid "No ALT text is too short."
     25msgstr "Aucun texte ALT trop court."
     26
     27#: admin/views/alt-audit.php:104
     28msgid "No ALT text is too long."
     29msgstr "Aucun texte ALT trop long."
     30
     31#: admin/views/alt-audit.php:105
     32msgid "No ALT text is shared by several images."
     33msgstr "Aucun texte ALT n’est répété sur plusieurs images."
     34
     35#: admin/views/alt-audit.php:106
     36msgid "No image is marked as decorative."
     37msgstr "Aucune image n’est marquée comme décorative."
     38
     39#: admin/views/alt-audit.php:130
    1640msgid "With WPGlobus or qTranslate-XT, an image is also listed here when its ALT is empty in one of the site languages (see the Language column)."
    1741msgstr "Avec WPGlobus ou qTranslate-XT, une image apparaît aussi ici quand son ALT est vide dans l’une des langues du site (voir la colonne Langue)."
    1842
    19 #: admin/views/alt-audit.php:122
    20 #: includes/admin/class-filikod-admin.php:68
    21 #: includes/admin/class-filikod-admin.php:69
    22 msgid "ALT Audit"
    23 msgstr "Audit ALT"
    24 
    25 #: admin/views/alt-audit.php:128
     43#: admin/views/alt-audit.php:143
     44#: includes/admin/class-filikod-admin.php:72
     45#: includes/admin/class-filikod-admin.php:73
     46msgid "ALT Text"
     47msgstr "Textes ALT"
     48
     49#: admin/views/alt-audit.php:149
    2650msgid "Filter by issue type"
    2751msgstr "Trier par type de problème"
    2852
    29 #: admin/views/alt-audit.php:158
     53#: admin/views/alt-audit.php:169
     54#: admin/views/dashboard.php:286
     55msgid "Bulk actions"
     56msgstr "Actions en masse"
     57
     58#: admin/views/alt-audit.php:176
     59msgid "Fix the images already in your Media Library in one go. Settings only apply to new uploads."
     60msgstr "Corrigez d’un coup les images déjà présentes dans votre médiathèque. Les réglages ne s’appliquent qu’aux nouveaux envois."
     61
     62#: admin/views/alt-audit.php:180
     63msgid "To resize large images, use %s."
     64msgstr "Pour réduire les grandes images, utilisez %s."
     65
     66#: admin/views/alt-audit.php:181
     67#: admin/views/dashboard.php:335
     68#: admin/views/settings.php:137
     69msgid "Tools > Resize large images"
     70msgstr "Outils > Réduire les grandes images"
     71
     72#: admin/views/alt-audit.php:201
     73msgid "%s image has no ALT text. Write it below, or fill it from its title or file name in one go."
     74msgid_plural "%s images have no ALT text. Write them below, or fill them from their titles or file names in one go."
     75msgstr[0] "%s image n’a pas de texte ALT. Écrivez-le ci-dessous, ou remplissez-le d’un coup à partir de son titre ou de son nom de fichier."
     76msgstr[1] "%s images n’ont pas de texte ALT. Écrivez-les ci-dessous, ou remplissez-les d’un coup à partir de leur titre ou de leur nom de fichier."
     77
     78#: admin/views/alt-audit.php:211
     79#: admin/views/bulk.php:30
     80#: admin/views/bulk.php:33
     81msgid "Fill missing ALT text"
     82msgstr "Remplir les ALT manquants"
     83
     84#: admin/views/alt-audit.php:217
    3085msgid "No images match this filter."
    3186msgstr "Aucune image ne correspond à ce filtre."
    3287
    33 #: admin/views/alt-audit.php:163
     88#: admin/views/alt-audit.php:222
    3489#: admin/views/duplicates-similar.php:88
    35 #: admin/views/duplicates.php:192
    36 #: admin/views/duplicates.php:308
     90#: admin/views/duplicates.php:196
     91#: admin/views/duplicates.php:312
    3792msgid "Thumbnail"
    3893msgstr "Miniature"
    3994
    40 #: admin/views/alt-audit.php:164
     95#: admin/views/alt-audit.php:223
    4196#: admin/views/duplicates-similar.php:89
    42 #: admin/views/duplicates.php:309
     97#: admin/views/duplicates.php:313
    4398msgid "File name"
    4499msgstr "Nom du fichier"
    45100
    46 #: admin/views/alt-audit.php:166
     101#: admin/views/alt-audit.php:225
    47102msgid "Language"
    48103msgstr "Langue"
    49104
    50 #: admin/views/alt-audit.php:168
     105#: admin/views/alt-audit.php:227
    51106#: admin/views/duplicates-similar.php:90
    52 #: admin/views/duplicates.php:194
    53 #: admin/views/duplicates.php:310
     107#: admin/views/duplicates.php:198
     108#: admin/views/duplicates.php:314
    54109msgid "Context"
    55 msgstr "Contexte"
    56 
    57 #: admin/views/alt-audit.php:169
     110msgstr "Téléversé sur"
     111
     112#: admin/views/alt-audit.php:228
    58113#: admin/views/duplicates-similar.php:91
    59 #: admin/views/duplicates.php:195
    60 #: admin/views/duplicates.php:311
     114#: admin/views/duplicates.php:199
     115#: admin/views/duplicates.php:315
    61116msgid "ALT"
    62117msgstr "ALT"
    63118
    64 #: admin/views/alt-audit.php:170
     119#: admin/views/alt-audit.php:229
    65120#: admin/views/duplicates-similar.php:92
    66 #: admin/views/duplicates.php:312
     121#: admin/views/duplicates.php:316
    67122msgid "Issue"
    68123msgstr "Problème"
    69124
    70 #: admin/views/alt-audit.php:172
     125#: admin/views/alt-audit.php:231
    71126#: admin/views/duplicates-similar.php:93
    72 #: admin/views/duplicates.php:196
    73 #: admin/views/duplicates.php:313
     127#: admin/views/duplicates.php:200
     128#: admin/views/duplicates.php:317
    74129msgid "Action"
    75130msgstr "Action"
    76131
    77 #: admin/views/alt-audit.php:231
     132#: admin/views/alt-audit.php:290
    78133msgid "empty: %s"
    79134msgstr "vide : %s"
    80135
    81 #: admin/views/alt-audit.php:240
     136#: admin/views/alt-audit.php:299
    82137msgid "Not translated"
    83138msgstr "Non traduit"
    84139
    85 #: admin/views/alt-audit.php:252
     140#: admin/views/alt-audit.php:311
    86141msgid "ALT text for this image"
    87142msgstr "Texte ALT pour cette image"
    88143
    89 #: admin/views/alt-audit.php:252
     144#: admin/views/alt-audit.php:311
    90145msgid "Decorative image (alt=\"\")"
    91146msgstr "Image décorative (alt=\"\")"
    92147
    93 #: admin/views/alt-audit.php:281
     148#: admin/views/alt-audit.php:340
    94149msgid "Mark this image as a regular content image (requires an ALT text)."
    95150msgstr "Marquer cette image comme image de contenu normale (un texte ALT est requis)."
    96151
    97 #: admin/views/alt-audit.php:281
     152#: admin/views/alt-audit.php:340
    98153msgid "Mark this image as decorative (alt=\"\", excluded from the ALT score)."
    99154msgstr "Marquer cette image comme décorative (alt=\"\", exclue du score ALT)."
    100155
    101 #: admin/views/alt-audit.php:293
     156#: admin/views/alt-audit.php:352
    102157msgid "Save"
    103158msgstr "Enregistrer"
    104159
    105 #: admin/views/alt-audit.php:309
     160#: admin/views/alt-audit.php:368
    106161#: admin/views/duplicates-similar.php:185
    107 #: admin/views/duplicates.php:249
    108 #: admin/views/duplicates.php:407
     162#: admin/views/duplicates.php:253
     163#: admin/views/duplicates.php:411
    109164msgid "Pagination"
    110165msgstr "Pagination"
    111166
    112 #: admin/views/alt-audit.php:314
    113 #: admin/views/duplicates.php:254
     167#: admin/views/alt-audit.php:373
     168#: admin/views/duplicates.php:258
    114169msgid "Page %1$d of %2$d (%3$d items)"
    115170msgstr "Page %1$d sur %2$d (%3$d éléments)"
    116171
    117 #: admin/views/alt-audit.php:323
     172#: admin/views/alt-audit.php:382
    118173#: admin/views/duplicates-similar.php:199
    119 #: admin/views/duplicates.php:263
    120 #: admin/views/duplicates.php:421
     174#: admin/views/duplicates.php:267
     175#: admin/views/duplicates.php:425
    121176msgid "&laquo; Previous"
    122177msgstr "&laquo; Précédent"
    123178
    124 #: admin/views/alt-audit.php:326
     179#: admin/views/alt-audit.php:385
    125180#: admin/views/duplicates-similar.php:202
    126 #: admin/views/duplicates.php:266
    127 #: admin/views/duplicates.php:424
     181#: admin/views/duplicates.php:270
     182#: admin/views/duplicates.php:428
    128183msgid "Next &raquo;"
    129184msgstr "Suivant &raquo;"
    130185
    131 #: admin/views/alt-audit.php:67
    132 #: admin/views/dashboard.php:103
     186#: admin/views/alt-audit.php:79
     187#: admin/views/dashboard.php:60
     188#: admin/views/dashboard.php:86
    133189#: includes/admin/class-filikod-media-alt-status.php:303
    134190msgid "Missing"
    135191msgstr "Manquant"
    136192
    137 #: admin/views/alt-audit.php:68
    138 #: admin/views/dashboard.php:107
     193#: admin/views/alt-audit.php:80
     194#: admin/views/dashboard.php:61
     195#: admin/views/dashboard.php:87
    139196#: includes/admin/class-filikod-media-alt-status.php:305
    140197msgid "Generic"
    141198msgstr "Générique"
    142199
    143 #: admin/views/alt-audit.php:69
    144 #: admin/views/dashboard.php:111
     200#: admin/views/alt-audit.php:81
     201#: admin/views/dashboard.php:62
     202#: admin/views/dashboard.php:88
    145203#: includes/admin/class-filikod-media-alt-status.php:307
    146204msgid "Too short"
    147205msgstr "Trop court"
    148206
    149 #: admin/views/alt-audit.php:70
    150 #: admin/views/dashboard.php:115
     207#: admin/views/alt-audit.php:82
     208#: admin/views/dashboard.php:89
    151209#: includes/admin/class-filikod-media-alt-status.php:309
    152210msgid "Too long"
    153211msgstr "Trop long"
    154212
    155 #: admin/views/alt-audit.php:71
    156 #: admin/views/dashboard.php:119
     213#: admin/views/alt-audit.php:83
     214#: admin/views/dashboard.php:90
    157215#: includes/admin/class-filikod-media-alt-status.php:311
    158216msgid "Duplicated"
    159 msgstr "Dupliqué"
    160 
    161 #: admin/views/alt-audit.php:72
    162 #: admin/views/alt-audit.php:171
    163 #: admin/views/alt-audit.php:283
    164 #: admin/views/dashboard.php:123
     217msgstr "Répété"
     218
     219#: admin/views/alt-audit.php:84
     220#: admin/views/alt-audit.php:230
     221#: admin/views/alt-audit.php:342
     222#: admin/views/dashboard.php:91
    165223#: includes/admin/class-filikod-media-alt-status.php:313
    166224msgid "Decorative"
    167225msgstr "Décorative"
    168226
    169 #: admin/views/alt-audit.php:76
     227#: admin/views/alt-audit.php:88
    170228msgid "Images without ALT text are less accessible and less well referenced. Add a short description of the image content. Purely decorative images can be marked as Decorative."
    171229msgstr "Les images sans texte ALT sont moins accessibles et moins bien référencées. Ajoutez une courte description du contenu de l’image. Les images purement décoratives peuvent être marquées comme Décoratives."
    172230
    173 #: admin/views/alt-audit.php:77
     231#: admin/views/alt-audit.php:89
    174232msgid "Generic ALTs (e.g. \"logo\", \"image\") do not describe the content. Prefer a specific description for each image."
    175 msgstr "Les ALTs génériques (ex : \"logo\", \"image\") ne décrivent pas le contenu. Privilégiez une description spécifique pour chaque image."
    176 
    177 #: admin/views/alt-audit.php:78
     233msgstr "Les ALT génériques (ex : « logo », « image ») ne décrivent pas le contenu. Privilégiez une description spécifique pour chaque image."
     234
     235#: admin/views/alt-audit.php:90
    178236msgid "ALT text that is too short (under 8 characters after normalization) provides little context for users or search engines."
    179237msgstr "Un texte ALT trop court (en dessous de 8 caractères après normalisation) fourni peu de contexte pour les internautes ou les moteurs de recherche."
    180238
    181 #: admin/views/alt-audit.php:81
    182 msgid "ALT text that is too long (over %d characters) is poorly read by screen readers and dilutes SEO signals. Aim for a concise description."
    183 msgstr "Un texte ALT trop long (plus de %d caractères) est mal lu par les lecteurs d’écran et dilue les signaux SEO. Visez une description concise."
    184 
    185 #: admin/views/alt-audit.php:84
    186 msgid "Duplicated ALT often occurs with logos and decorative elements. When possible, differentiate each image with a unique description. Exact copies of the same file (see Filikod > Duplicates) sharing one ALT are not counted here."
    187 msgstr "Les ALT dupliqués concernent souvent les logos et les éléments décoratifs. Quand c’est possible, différenciez chaque image avec une description unique. Les copies exactes d’un même fichier (voir Filikod > Doublons) qui partagent un ALT ne sont pas comptées ici."
    188 
    189 #: admin/views/alt-audit.php:85
     239#: admin/views/alt-audit.php:93
     240msgid "ALT text that is too long (over %d characters) is hard to follow: screen readers read it in full and listeners cannot go back inside it. Keep what the image shows and move credits, dates or details to the caption or the text around the image."
     241msgstr "Un texte ALT trop long (plus de %d caractères) est difficile à suivre : les lecteurs d’écran le lisent en entier, sans retour en arrière possible dans le texte. Gardez ce que montre l’image et placez crédits, dates ou détails dans la légende ou dans le texte autour de l’image."
     242
     243#: admin/views/alt-audit.php:96
     244msgid "Duplicated ALT often occurs with logos and decorative elements. When possible, differentiate each image with a unique description. Exact copies of the same file (see Media > Duplicate files) sharing one ALT are not counted here."
     245msgstr "Les ALT répétés concernent souvent les logos et les éléments décoratifs. Quand c’est possible, différenciez chaque image avec une description unique. Les copies exactes d’un même fichier (voir Médias > Fichiers en double) qui partagent un ALT ne sont pas comptées ici."
     246
     247#: admin/views/alt-audit.php:97
    190248msgid "Decorative images are intentionally hidden from assistive technologies (alt=\"\"). They are excluded from the ALT score. Use this for icons, separators or purely visual elements that carry no information."
    191249msgstr "Les images décoratives sont volontairement masquées aux technologies d’assistance (alt=\"\"). Elles sont exclues du score ALT. Utilisez ce statut pour les icônes, les séparateurs ou les éléments purement visuels qui ne portent aucune information."
    192250
    193 #: admin/views/dashboard.php:104
    194 msgid "View images with missing ALT"
    195 msgstr "Voir les images avec un ALT manquant"
    196 
    197 #: admin/views/dashboard.php:108
    198 msgid "View images with generic ALT"
    199 msgstr "Voir les images avec un ALT générique"
    200 
    201 #: admin/views/dashboard.php:112
    202 msgid "View images with too short ALT"
    203 msgstr "Voir les images avec un ALT trop court"
    204 
    205 #: admin/views/dashboard.php:116
    206 msgid "View images with too long ALT"
    207 msgstr "Voir les images au texte ALT trop long"
    208 
    209 #: admin/views/dashboard.php:120
    210 msgid "View images with duplicated ALT"
    211 msgstr "Voir les images avec un ALT dupliqué"
    212 
    213 #: admin/views/dashboard.php:124
    214 msgid "View decorative images (excluded from the ALT score)"
    215 msgstr "Voir les images décoratives (exclues du score ALT)"
    216 
    217 #: admin/views/dashboard.php:131
    218 msgid "Media Size Savings"
    219 msgstr "Économies du poids du média"
     251#: admin/views/brand-bar.php:18
     252msgid "Breadcrumb"
     253msgstr "Fil d’Ariane"
     254
     255#: admin/views/bulk.php:107
     256#: admin/views/duplicates.php:154
     257msgid "Important:"
     258msgstr "Important :"
     259
     260#: admin/views/bulk.php:108
     261#: admin/views/duplicates.php:155
     262msgid "Please keep this page open until the process is complete. Do not navigate away or close this page."
     263msgstr "Veuillez conserver cette page ouverte jusqu’à ce que le processus soit terminé. Ne naviguez pas ailleurs ou fermez cette page."
     264
     265#: admin/views/bulk.php:31
     266msgid "Taken from the image title or, failing that, from the file name. Existing ALT text is never changed."
     267msgstr "Tiré du titre de l’image ou, à défaut, du nom de fichier. Les textes ALT existants ne sont jamais modifiés."
     268
     269#: admin/views/bulk.php:32
     270msgid "Writes an ALT text for each image that has none, from the image title or, when the title is empty, from the file name. Dashes, underscores and the file extension are removed. Existing ALT text is never changed. Images marked as decorative are skipped, and so are names that would only give a generic ALT such as \"IMG_1234\"."
     271msgstr "Écrit un texte ALT pour chaque image qui n’en a pas, à partir du titre de l’image ou, si le titre est vide, du nom de fichier. Les tirets, les tirets bas et l’extension du fichier sont retirés. Un texte ALT existant n’est jamais modifié. Les images marquées comme décoratives sont ignorées, tout comme les noms qui ne donneraient qu’un ALT générique, par exemple « IMG_1234 »."
     272
     273#: admin/views/bulk.php:34
     274msgid "Fill the missing ALT text of your images from their titles or file names? Existing ALT text will not be changed."
     275msgstr "Remplir les textes ALT manquants de vos images à partir de leur titre ou de leur nom de fichier ? Les textes ALT existants ne seront pas modifiés."
     276
     277#: admin/views/bulk.php:37
     278#: admin/views/dashboard.php:68
     279msgid "Clean ALT text taken from file names"
     280msgstr "Nettoyer les ALT tirés des noms de fichiers"
     281
     282#: admin/views/bulk.php:38
     283msgid "\"my-photo_2024.jpg\" becomes \"my photo 2024\". ALT text written by hand keeps its punctuation."
     284msgstr "« my-photo_2024.jpg » devient « my photo 2024 ». Les textes ALT écrits à la main gardent leur ponctuation."
     285
     286#: admin/views/bulk.php:39
     287msgid "Removes dashes, underscores and file extensions from ALT text that comes from a file name: \"my-photo_2024.jpg\" becomes \"my photo 2024\". ALT text written by hand keeps its punctuation."
     288msgstr "Retire les tirets, les tirets bas et les extensions des textes ALT tirés d’un nom de fichier : « my-photo_2024.jpg » devient « my photo 2024 ». Les textes ALT écrits à la main gardent leur ponctuation."
     289
     290#: admin/views/bulk.php:40
     291msgid "Clean ALT text"
     292msgstr "Nettoyer les ALT"
     293
     294#: admin/views/bulk.php:41
     295msgid "Clean the ALT text taken from file names? ALT text written by hand keeps its punctuation."
     296msgstr "Nettoyer les textes ALT tirés des noms de fichiers ? Les textes ALT écrits à la main gardent leur ponctuation."
     297
     298#: admin/views/bulk.php:44
     299msgid "Clear image titles"
     300msgstr "Effacer les titres des images"
     301
     302#: admin/views/bulk.php:45
     303msgid "Empties the Title field of every image. An image without ALT text first gets its title as ALT text. This cannot be undone."
     304msgstr "Vide le champ Titre de chaque image. Une image sans texte ALT reçoit d’abord son titre comme ALT. Cette action est irréversible."
     305
     306#: admin/views/bulk.php:46
     307msgid "Empties the Title field of every image in the Media Library. WordPress fills it from the file name on upload, and some themes and galleries show it next to the image or as a tooltip. Before a title is cleared, an image without ALT text gets that title as its ALT text, so the title is never lost. Existing ALT text is never changed. This cannot be undone."
     308msgstr "Vide le champ Titre de toutes les images de la médiathèque. WordPress le remplit avec le nom du fichier à l’envoi. Certains thèmes ou galeries l’affichent à côté de l’image ou en infobulle. Avant d’effacer un titre, Filikod le copie comme texte ALT si l’image n’en a pas : le titre n’est jamais perdu. Un texte ALT existant n’est jamais modifié. Cette action est irréversible."
     309
     310#: admin/views/bulk.php:47
     311msgid "Clear titles"
     312msgstr "Effacer les titres"
     313
     314#: admin/views/bulk.php:48
     315msgid "Clear the title of every image in the Media Library? Images without ALT text first get their title as ALT text. This cannot be undone."
     316msgstr "Effacer le titre de toutes les images de la médiathèque ? Les images sans texte ALT reçoivent d’abord leur titre comme ALT. Cette action est irréversible."
     317
     318#: admin/views/bulk.php:51
     319#: admin/views/dashboard.php:312
     320#: admin/views/resize.php:15
     321#: includes/admin/class-filikod-admin.php:105
     322#: includes/admin/class-filikod-admin.php:106
     323msgid "Resize large images"
     324msgstr "Réduire les grandes images"
     325
     326#: admin/views/bulk.php:52
     327msgid "Smaller images are left as they are. The resized file replaces the original, which cannot be undone."
     328msgstr "Les images plus petites restent telles quelles. Le fichier redimensionné remplace l’original : c’est irréversible."
     329
     330#: admin/views/bulk.php:53
     331msgid "Reduces every image wider than the maximum width below, keeping its proportions. Smaller images are left as they are. The resized file replaces the original, so keep a backup of your uploads folder."
     332msgstr "Réduit chaque image plus large que la largeur maximale ci-dessous, en gardant ses proportions. Les images plus petites restent telles quelles. Le fichier redimensionné remplace l’original : faites d’abord une sauvegarde de votre dossier uploads."
     333
     334#: admin/views/bulk.php:54
     335msgid "Resize images"
     336msgstr "Réduire les images"
     337
     338#: admin/views/bulk.php:56
     339msgid "Resize every image wider than %d pixels? The resized files will replace the originals. This cannot be undone."
     340msgstr "Redimensionner chaque image plus large que %d pixels ? Les fichiers redimensionnés remplaceront les originaux. Cette action est irréversible."
     341
     342#: admin/views/bulk.php:81
     343msgid "Learn more"
     344msgstr "En savoir plus"
     345
     346#: admin/views/bulk.php:85
     347msgid "A title or a file name is a starting point, not a description. Check the result in Filikod > ALT Text afterwards."
     348msgstr "Un titre ou un nom de fichier est un point de départ, pas une description. Vérifiez ensuite le résultat dans Filikod > Textes ALT."
     349
     350#: admin/views/bulk.php:86
     351#: admin/views/dashboard.php:212
     352msgid "Open ALT Text"
     353msgstr "Ouvrir Textes ALT"
     354
     355#: admin/views/bulk.php:93
     356#: admin/views/settings.php:86
     357msgid "Maximum Image Width"
     358msgstr "Largeur maximale de l’image"
     359
     360#: admin/views/bulk.php:95
     361#: admin/views/settings.php:101
     362msgid "pixels"
     363msgstr "pixels"
     364
     365#: admin/views/dashboard-review.php:19
     366msgid "Close this message"
     367msgstr "Fermer ce message"
     368
     369#: admin/views/dashboard-review.php:24
     370msgid "Is Filikod helping you?"
     371msgstr "Filikod vous rend service ?"
     372
     373#: admin/views/dashboard-review.php:30
     374msgid "Filikod has checked %s image in your Media Library. A review on WordPress.org takes a minute and helps other sites find Filikod."
     375msgid_plural "Filikod has checked %s images in your Media Library. A review on WordPress.org takes a minute and helps other sites find Filikod."
     376msgstr[0] "Filikod a vérifié %s image de votre médiathèque. Un avis sur WordPress.org prend une minute et aide d’autres sites à trouver Filikod."
     377msgstr[1] "Filikod a vérifié %s images de votre médiathèque. Un avis sur WordPress.org prend une minute et aide d’autres sites à trouver Filikod."
     378
     379#: admin/views/dashboard-review.php:43
     380#: admin/views/dashboard-review.php:46
     381#: admin/views/dashboard.php:101
     382#: includes/admin/class-filikod-admin.php:286
     383msgid "(opens in a new tab)"
     384msgstr "(s’ouvre dans un nouvel onglet)"
     385
     386#: admin/views/dashboard-review.php:43
     387#: includes/admin/class-filikod-admin.php:284
     388msgid "Leave a review"
     389msgstr "Laisser un avis"
     390
     391#: admin/views/dashboard-review.php:46
     392#: admin/views/dashboard.php:100
     393msgid "A problem? Ask on the support forum"
     394msgstr "Un souci ? Posez votre question sur le forum d’aide"
     395
     396#: admin/views/dashboard-review.php:48
     397#: includes/admin/class-filikod-admin.php:285
     398msgid "Maybe later"
     399msgstr "Plus tard"
     400
     401#: admin/views/dashboard-review.php:49
     402msgid "I already did"
     403msgstr "C’est déjà fait"
     404
     405#: admin/views/dashboard.php:126
     406msgid "Alt Text Health"
     407msgstr "État de santé du texte ALT"
    220408
    221409#: admin/views/dashboard.php:134
    222 msgid "Resizing size impact"
    223 msgstr "Impact du redimensionnement de la taille"
     410msgid "ALT score: %d out of 100"
     411msgstr "Score ALT : %d sur 100"
    224412
    225413#: admin/views/dashboard.php:140
    226 msgid "You saved %s"
    227 msgstr "Vous avez économisé %s"
    228 
    229 #: admin/views/dashboard.php:147
    230 msgid "Original"
    231 msgstr "Original"
    232 
    233 #: admin/views/dashboard.php:15
     414msgid "out of 100"
     415msgstr "sur 100"
     416
     417#: admin/views/dashboard.php:161
     418msgid "Add an image to start the check"
     419msgstr "Ajoutez une image pour lancer la vérification"
     420
     421#: admin/views/dashboard.php:162
     422msgid "Filikod checks the ALT text of every image in your Media Library as soon as there is one."
     423msgstr "Filikod vérifie le texte ALT de chaque image de votre médiathèque dès qu’il y en a une."
     424
     425#: admin/views/dashboard.php:169
     426msgid "%1$s image to fix out of %2$s"
     427msgid_plural "%1$s images to fix out of %2$s"
     428msgstr[0] "%1$s image à corriger sur %2$s"
     429msgstr[1] "%1$s images à corriger sur %2$s"
     430
     431#: admin/views/dashboard.php:176
     432msgid "Without a useful ALT text, a screen reader says nothing about these images, and neither does Google. You fix them in the list, without changing page."
     433msgstr "Sans texte ALT utile, un lecteur d’écran ne dit rien de ces images, Google non plus. Vous les corrigez dans la liste, sans changer de page."
     434
     435#: admin/views/dashboard.php:186
     436msgid "%1$s: %2$s"
     437msgstr "%1$s : %2$s"
     438
     439#: admin/views/dashboard.php:196
     440msgid "Fix these images"
     441msgstr "Corriger ces images"
     442
     443#: admin/views/dashboard.php:204
     444msgid "%s image checked: its ALT text is usable"
     445msgid_plural "%s images checked: all have a usable ALT text"
     446msgstr[0] "%s image vérifiée : son texte ALT est utilisable"
     447msgstr[1] "%s images vérifiées : toutes ont un texte ALT utilisable"
     448
     449#: admin/views/dashboard.php:21
    234450#: admin/views/settings.php:15
    235 #: includes/dashboard/class-filikod-dashboard.php:161
    236 #: includes/dashboard/class-filikod-dashboard.php:168
    237 #: includes/dashboard/class-filikod-dashboard.php:202
    238 #: includes/dashboard/class-filikod-dashboard.php:209
    239 #: includes/duplicates/class-filikod-duplicates.php:1091
    240 #: includes/duplicates/class-filikod-duplicates.php:1104
     451#: includes/dashboard/class-filikod-dashboard.php:97
     452#: includes/dashboard/class-filikod-dashboard.php:241
     453#: includes/dashboard/class-filikod-dashboard.php:248
     454#: includes/dashboard/class-filikod-dashboard.php:282
     455#: includes/dashboard/class-filikod-dashboard.php:289
     456#: includes/duplicates/class-filikod-duplicates.php:1094
     457#: includes/duplicates/class-filikod-duplicates.php:1107
    241458#: includes/duplicates/class-filikod-visual-duplicates.php:742
    242 #: includes/settings/class-filikod-settings.php:253
    243 #: includes/settings/class-filikod-settings.php:275
    244 #: includes/settings/class-filikod-settings.php:321
    245 #: includes/settings/class-filikod-settings.php:343
     459#: includes/settings/class-filikod-settings.php:128
     460#: includes/settings/class-filikod-settings.php:324
     461#: includes/settings/class-filikod-settings.php:346
     462#: includes/settings/class-filikod-settings.php:402
     463#: includes/settings/class-filikod-settings.php:424
    246464msgid "Insufficient permissions."
    247465msgstr "Droits insuffisants."
    248466
    249 #: admin/views/dashboard.php:156
    250 msgid "Optimized"
    251 msgstr "Optimisé"
    252 
    253 #: admin/views/dashboard.php:169
     467#: admin/views/dashboard.php:210
     468msgid "Nothing urgent to fix. New images are checked as soon as they are uploaded."
     469msgstr "Rien d’urgent à corriger. Les nouvelles images sont vérifiées dès leur envoi."
     470
     471#: admin/views/dashboard.php:223
     472msgid "Next uploads"
     473msgstr "Les prochaines images"
     474
     475#: admin/views/dashboard.php:228
     476msgid "Off"
     477msgstr "Désactivé"
     478
     479#: admin/views/dashboard.php:228
     480msgid "On"
     481msgstr "Activé"
     482
     483#: admin/views/dashboard.php:232
     484msgid "Change in Settings"
     485msgstr "Modifier dans les réglages"
     486
     487#: admin/views/dashboard.php:239
    254488msgid "Library Overview"
    255 msgstr "Vue d’ensemble de la bibliothèque"
    256 
    257 #: admin/views/dashboard.php:173
     489msgstr "Vue d’ensemble de la médiathèque"
     490
     491#: admin/views/dashboard.php:243
    258492msgid "Total Images"
    259493msgstr "Total des images"
    260494
    261 #: admin/views/dashboard.php:177
     495#: admin/views/dashboard.php:247
    262496msgid "Total Media Size"
    263497msgstr "Poids total des médias"
    264498
    265 #: admin/views/dashboard.php:181
     499#: admin/views/dashboard.php:251
    266500msgid "Average size per image"
    267501msgstr "Poids moyen par image"
    268502
    269 #: admin/views/dashboard.php:186
    270 msgid "View duplicate images"
    271 msgstr "Voir les images en double"
    272 
    273 #: admin/views/dashboard.php:188
    274 #: admin/views/dashboard.php:201
     503#: admin/views/dashboard.php:258
     504#: admin/views/dashboard.php:271
    275505msgid "Duplicate images"
    276506msgstr "Images en double"
    277507
    278 #: admin/views/dashboard.php:193
     508#: admin/views/dashboard.php:263
    279509msgid "%1$s groups, %2$s wasted"
    280510msgstr "%1$s groupes, %2$s gaspillés"
    281511
    282 #: admin/views/dashboard.php:203
     512#: admin/views/dashboard.php:273
    283513msgid "Scan the library to detect duplicates"
    284514msgstr "Analysez la médiathèque pour détecter les doublons"
    285515
    286 #: admin/views/dashboard.php:57
    287 msgid "Welcome to Filikod"
    288 msgstr "Bienvenue sur Filikod"
    289 
    290 #: admin/views/dashboard.php:58
    291 msgid "Optimize your media files, improve accessibility and SEO for your visual content."
    292 msgstr "Optimisez vos fichiers médias, améliorez l’accessibilité et le SEO de vos contenus visuels."
    293 
    294 #: admin/views/dashboard.php:61
    295 msgid "Go to Settings"
    296 msgstr "Accéder aux réglages"
    297 
    298 #: admin/views/dashboard.php:70
    299 msgid "Alt Text Health"
    300 msgstr "État de santé du texte ALT"
    301 
    302 #: admin/views/dashboard.php:80
    303 msgid "ALT score gauge"
    304 msgstr "Jauge du score ALT"
    305 
    306 #: admin/views/dashboard.php:90
    307 msgid "ALT Score"
    308 msgstr "Score ALT"
     516#: admin/views/dashboard.php:282
     517msgid "Filikod tools"
     518msgstr "Outils Filikod"
     519
     520#: admin/views/dashboard.php:287
     521msgid "Fill missing ALT text, clean ALT text taken from file names or clear image titles in one go."
     522msgstr "Remplissez les ALT manquants, nettoyez les ALT tirés des noms de fichiers ou effacez les titres des images en une fois."
     523
     524#: admin/views/dashboard.php:288
     525#: admin/views/settings.php:274
     526msgid "Filikod > ALT Text > Bulk actions"
     527msgstr "Filikod > Textes ALT > Actions en masse"
     528
     529#: admin/views/dashboard.php:290
     530#: admin/views/dashboard.php:307
     531#: admin/views/dashboard.php:337
     532msgid "Open"
     533msgstr "Ouvrir"
     534
     535#: admin/views/dashboard.php:295
     536#: admin/views/duplicates.php:95
     537#: includes/admin/class-filikod-admin.php:95
     538#: includes/admin/class-filikod-admin.php:96
     539msgid "Duplicate files"
     540msgstr "Fichiers en double"
     541
     542#: admin/views/dashboard.php:299
     543msgid "Find the files uploaded twice and free up space in your Media Library."
     544msgstr "Repérez les fichiers envoyés deux fois et libérez de la place dans votre médiathèque."
     545
     546#: admin/views/dashboard.php:301
     547msgid "Scan your Media Library once to find the files uploaded twice."
     548msgstr "Analysez une fois votre médiathèque pour trouver les fichiers envoyés deux fois."
     549
     550#: admin/views/dashboard.php:305
     551msgid "Media > Duplicate files"
     552msgstr "Médias > Fichiers en double"
     553
     554#: admin/views/dashboard.php:319
     555msgid "%1$s image is wider than %2$s px."
     556msgid_plural "%1$s images are wider than %2$s px."
     557msgstr[0] "%1$s image dépasse %2$s px de large."
     558msgstr[1] "%1$s images dépassent %2$s px de large."
     559
     560#: admin/views/dashboard.php:327
     561msgid "No image is wider than %s px."
     562msgstr "Aucune image ne dépasse %s px de large."
     563
     564#: admin/views/dashboard.php:331
     565msgid "Reduce the images that are wider than you need."
     566msgstr "Réduisez les images plus larges que nécessaire."
     567
     568#: admin/views/dashboard.php:43
     569msgid "Good score"
     570msgstr "Bon score"
     571
     572#: admin/views/dashboard.php:45
     573msgid "Could be better"
     574msgstr "À améliorer"
     575
     576#: admin/views/dashboard.php:47
     577msgid "Needs work"
     578msgstr "Faible"
     579
     580#: admin/views/dashboard.php:67
     581msgid "Fill missing ALT text from the title or file name"
     582msgstr "Remplir les ALT manquants à partir du titre ou du nom de fichier"
     583
     584#: admin/views/dashboard.php:69
     585msgid "Clear the title, after using it as ALT text"
     586msgstr "Effacer le titre, après s’en être servi comme ALT"
     587
     588#: admin/views/dashboard.php:72
     589msgid "Resize images wider than %s px"
     590msgstr "Réduire les images de plus de %s px"
    309591
    310592#: admin/views/duplicates-similar.php:108
    … …  
    317599
    318600#: admin/views/duplicates-similar.php:125
    319 #: admin/views/duplicates.php:204
    320 #: admin/views/duplicates.php:348
     601#: admin/views/duplicates.php:208
     602#: admin/views/duplicates.php:352
    321603#: includes/duplicates/class-filikod-duplicates.php:248
    322604msgid "ID %d"
    … …  
    324606
    325607#: admin/views/duplicates-similar.php:156
    326 #: admin/views/duplicates.php:229
    327 #: admin/views/duplicates.php:378
     608#: admin/views/duplicates.php:233
     609#: admin/views/duplicates.php:382
    328610msgid "No ALT"
    329611msgstr "Sans ALT"
    330612
    331613#: admin/views/duplicates-similar.php:164
    332 #: admin/views/duplicates.php:233
    333 #: admin/views/duplicates.php:386
     614#: admin/views/duplicates.php:237
     615#: admin/views/duplicates.php:390
    334616msgid "Edit"
    335617msgstr "Modifier"
    336618
    337619#: admin/views/duplicates-similar.php:166
    338 #: admin/views/duplicates.php:235
    339 #: admin/views/duplicates.php:388
     620#: admin/views/duplicates.php:239
     621#: admin/views/duplicates.php:392
    340622msgid "Library"
    341623msgstr "Médiathèque"
    … …  
    359641
    360642#: admin/views/duplicates-similar.php:190
    361 #: admin/views/duplicates.php:412
     643#: admin/views/duplicates.php:416
    362644msgid "Page %1$d of %2$d (%3$d groups)"
    363645msgstr "Page %1$d sur %2$d (%3$d groupes)"
    … …  
    407689msgstr "Aucune image semblable dans cette liste."
    408690
    409 #: admin/views/duplicates.php:107
     691#: admin/views/duplicates.php:103
     692msgid "Filikod fingerprints the original file of every image (md5) to find exact copies. New uploads are fingerprinted automatically; run the scan once for the images already in your library."
     693msgstr "Filikod calcule l’empreinte (md5) du fichier original de chaque image pour trouver les copies exactes. Les nouveaux envois reçoivent leur empreinte automatiquement ; lancez l’analyse une fois pour les images déjà présentes dans votre médiathèque."
     694
     695#: admin/views/duplicates.php:111
    410696msgid "%1$s of %2$s images fingerprinted."
    411697msgstr "%1$s images sur %2$s ont une empreinte."
    412698
    413 #: admin/views/duplicates.php:115
     699#: admin/views/duplicates.php:119
    414700msgid "%s images are still waiting. \"Scan library\" fingerprints them; \"Full rescan\" recomputes every fingerprint, useful after files were replaced outside WordPress."
    415 msgstr "%s images sont encore en attente. « Analyser la médiathèque » calcule leur empreinte ; « Analyse complète » recalcule toutes les empreintes, utile après un remplacement de fichiers hors de WordPress."
    416 
    417 #: admin/views/duplicates.php:119
     701msgstr "%s images sont encore en attente. « Analyser la médiathèque » calcule leur empreinte ; « Analyse complète » recalcule toutes les empreintes, utile après un remplacement de fichiers hors de WordPress."
     702
     703#: admin/views/duplicates.php:123
    418704msgid "Every image is fingerprinted. \"Full rescan\" recomputes every fingerprint, useful after files were replaced outside WordPress."
    419 msgstr "Toutes les images ont une empreinte. « Analyse complète » recalcule toutes les empreintes, utile après un remplacement de fichiers hors de WordPress."
    420 
    421 #: admin/views/duplicates.php:125
     705msgstr "Toutes les images ont une empreinte. « Analyse complète » recalcule toutes les empreintes, utile après un remplacement de fichiers hors de WordPress."
     706
     707#: admin/views/duplicates.php:129
    422708msgid "%s images have no file on disk (broken attachments) and cannot be fingerprinted."
    423709msgstr "%s images n’ont aucun fichier sur le disque (fichiers joints cassés) et ne peuvent pas recevoir d’empreinte."
    424710
    425 #: admin/views/duplicates.php:134
     711#: admin/views/duplicates.php:138
    426712msgid "%s images have no visual signature yet (Similar images tab): \"Scan library\" computes them."
    427713msgstr "%s images n’ont pas encore de signature visuelle (onglet Images semblables) : « Analyser la médiathèque » les calcule."
    428714
    429 #: admin/views/duplicates.php:141
     715#: admin/views/duplicates.php:145
    430716msgid "Scan library"
    431717msgstr "Analyser la médiathèque"
    432718
    433 #: admin/views/duplicates.php:144
     719#: admin/views/duplicates.php:148
    434720msgid "Full rescan"
    435721msgstr "Analyse complète"
    436722
    437 #: admin/views/duplicates.php:150
    438 #: admin/views/settings.php:143
    439 #: admin/views/settings.php:294
    440 msgid "Important:"
    441 msgstr "Important :"
    442 
    443 #: admin/views/duplicates.php:151
    444 #: admin/views/settings.php:144
    445 #: admin/views/settings.php:295
    446 msgid "Please keep this page open until the process is complete. Do not navigate away or close this page."
    447 msgstr "Veuillez conserver cette page ouverte jusqu’à ce que le processus soit terminé. Ne naviguez pas ailleurs ou fermez cette page."
    448 
    449 #: admin/views/duplicates.php:166
     723#: admin/views/duplicates.php:168
     724msgid "Duplicates"
     725msgstr "Doublons"
     726
     727#: admin/views/duplicates.php:170
    450728msgid "Duplicated files"
    451729msgstr "Fichiers en double"
    452730
    453 #: admin/views/duplicates.php:169
     731#: admin/views/duplicates.php:173
    454732msgid "Similar images"
    455733msgstr "Images semblables"
    456734
    457 #: admin/views/duplicates.php:172
     735#: admin/views/duplicates.php:176
    458736msgid "Missing files"
    459737msgstr "Fichiers manquants"
    460738
    461 #: admin/views/duplicates.php:184
     739#: admin/views/duplicates.php:188
    462740msgid "Image attachments whose file could not be found on this server: the scan could not fingerprint them. They still appear in the Media Library and may be referenced in your content. If your media is offloaded to external storage (S3, CDN), these files are simply not fingerprinted and display normally. Otherwise they render as broken images: restore the file before deleting anything from the Media Library."
    463 msgstr "Images dont le fichier est introuvable sur ce serveur : l’analyse n’a pas pu calculer leur empreinte. Elles apparaissent toujours dans la médiathèque et peuvent être utilisées dans vos contenus. Si vos médias sont déportés sur un stockage externe (S3, CDN), ces fichiers n’ont simplement pas d’empreinte et s’affichent normalement. Sinon, ils s’affichent comme des images cassées : restaurez le fichier avant de supprimer quoi que ce soit dans la médiathèque."
    464 
    465 #: admin/views/duplicates.php:187
     741msgstr "Images dont le fichier est introuvable sur ce serveur : l’analyse n’a pas pu calculer leur empreinte. Elles apparaissent toujours dans la médiathèque et peuvent être utilisées dans vos contenus. Si vos médias sont déportés sur un stockage externe (S3, CDN), ces fichiers n’ont simplement pas d’empreinte et s’affichent normalement. Sinon, ils s’affichent comme des images cassées : restaurez le fichier avant de supprimer quoi que ce soit dans la médiathèque."
     742
     743#: admin/views/duplicates.php:191
    466744msgid "No missing file among the scanned images."
    467745msgstr "Aucun fichier manquant parmi les images analysées."
    468746
    469 #: admin/views/duplicates.php:193
     747#: admin/views/duplicates.php:197
    470748msgid "Expected file"
    471749msgstr "Fichier attendu"
    472750
    473 #: admin/views/duplicates.php:279
     751#: admin/views/duplicates.php:283
    474752msgid "Exact copies of the same file (same md5 fingerprint) uploaded more than once. Nothing is deleted or merged: check where each copy is used, keep that one, and remove the others from the Media Library once you are sure."
    475753msgstr "Copies exactes d’un même fichier (même empreinte md5) envoyées plusieurs fois. Rien n’est supprimé ni fusionné : vérifiez où chaque copie est utilisée, gardez celle-là et retirez les autres de la médiathèque une fois sûr de vous."
    476754
    477 #: admin/views/duplicates.php:283
     755#: admin/views/duplicates.php:287
    478756msgid "Media linked as translations of each other (Polylang, WPML, Bogo) are intentional and never listed here."
    479757msgstr "Les médias liés comme traductions les uns des autres (Polylang, WPML, Bogo) sont volontaires et ne sont jamais listés ici."
    480758
    481 #: admin/views/duplicates.php:289
     759#: admin/views/duplicates.php:293
    482760msgid "No scan yet. Click \"Scan library\" above to fingerprint your images."
    483 msgstr "Aucune analyse pour l’instant. Cliquez sur « Analyser la médiathèque » ci-dessus pour calculer l’empreinte de vos images."
    484 
    485 #: admin/views/duplicates.php:291
     761msgstr "Aucune analyse pour l’instant. Cliquez sur « Analyser la médiathèque » ci-dessus pour calculer l’empreinte de vos images."
     762
     763#: admin/views/duplicates.php:295
    486764msgid "No duplicate images found among the fingerprinted files."
    487765msgstr "Aucune image en double parmi les fichiers analysés."
    488766
    489 #: admin/views/duplicates.php:297
     767#: admin/views/duplicates.php:301
    490768msgid "%1$s groups, %2$s redundant files, %3$s that could be freed by keeping a single copy per group."
    491769msgstr "%1$s groupes, %2$s fichiers redondants, %3$s libérables en ne gardant qu’une copie par groupe."
    492770
    493 #: admin/views/duplicates.php:333
     771#: admin/views/duplicates.php:337
    494772msgid "Group %1$d: %2$d identical copies, %3$s could be freed"
    495 msgstr "Groupe %1$d : %2$d copies identiques, %3$s libérables"
     773msgstr "Groupe %1$d : %2$d copies identiques, %3$s libérables"
    496774
    497775#: admin/views/duplicates.php:48
    498776msgid "Reference"
    499 msgstr "Référence"
     777msgstr "Original"
    500778
    501779#: admin/views/duplicates.php:49
    … …  
    506784#: admin/views/duplicates.php:52
    507785msgid "Oldest copy of this file: the one to keep, unless another copy is the one actually used in your content."
    508 msgstr "Copie la plus ancienne de ce fichier : celle à garder, sauf si une autre copie est celle réellement utilisée dans vos contenus."
     786msgstr "Copie la plus ancienne de ce fichier : celle à garder, sauf si une autre copie est celle réellement utilisée dans vos contenus."
    509787
    510788#: admin/views/duplicates.php:53
    … …  
    512790msgstr "Copie exacte (même empreinte md5) d’une image envoyée plus tôt. Vérifiez la colonne Contexte avant de la retirer de la médiathèque."
    513791
    514 #: admin/views/duplicates.php:94
    515 #: admin/views/duplicates.php:164
    516 #: includes/admin/class-filikod-admin.php:80
    517 msgid "Duplicates"
    518 msgstr "Doublons"
    519 
    520 #: admin/views/duplicates.php:99
    521 msgid "Filikod fingerprints the original file of every image (md5) to find exact copies. New uploads are fingerprinted automatically; run the scan once for the images already in your library."
    522 msgstr "Filikod calcule l’empreinte (md5) du fichier original de chaque image pour trouver les copies exactes. Les nouveaux envois reçoivent leur empreinte automatiquement ; lancez l’analyse une fois pour les images déjà présentes dans votre médiathèque."
    523 
    524 #: admin/views/settings.php:101
    525 msgid "pixels"
    526 msgstr "pixels"
     792#: admin/views/resize.php:23
     793msgid "Reduce the images already in your Media Library that are wider than you need. Smaller files load faster."
     794msgstr "Réduisez les images de votre médiathèque plus larges que nécessaire. Des fichiers plus légers se chargent plus vite."
     795
     796#: admin/views/resize.php:27
     797msgid "To resize new uploads automatically, turn on Automatic Image Resizing in %s."
     798msgstr "Pour réduire automatiquement les prochaines images, activez « Redimensionnement automatique des images » dans %s."
     799
     800#: admin/views/resize.php:28
     801msgid "Filikod > Settings"
     802msgstr "Filikod > Réglages"
    527803
    528804#: admin/views/settings.php:109
    … …  
    533809#: admin/views/settings.php:111
    534810msgid "Show a notice in the uploader when an image you upload is an exact copy of a file already in your library. Nothing is blocked or deleted. The \"Duplicate file\" badge in the Media Library grid and the warning in the attachment details are always shown once the library has been scanned (Filikod > Duplicates)."
    535 msgstr "Affiche un avertissement dans l’outil d’envoi quand une image envoyée est la copie exacte d’un fichier déjà présent dans votre médiathèque. Rien n’est bloqué ni supprimé. Le badge « Fichier en double » dans la grille de la médiathèque et l’avertissement dans les détails du fichier joint s’affichent toujours une fois la médiathèque analysée (Filikod > Doublons)."
    536 
    537 #: admin/views/settings.php:133
    538 msgid "You can process existing images by clicking the button below. This will resize all images in your media library that exceed the maximum width."
    539 msgstr "Vous pouvez traiter les images existantes en cliquant sur le bouton dessous. Cela va redimensionner toutes les images dans votre médiathèque qui excèdent la largeur maximale."
     811msgstr "Affiche un avertissement dans l’outil d’envoi quand une image envoyée est la copie exacte d’un fichier déjà présent dans votre médiathèque. Rien n’est bloqué ni supprimé. Le badge « Fichier en double » dans la grille de la médiathèque et l’avertissement dans les détails du fichier joint s’affichent toujours une fois la médiathèque analysée (Filikod > Doublons)."
    540812
    541813#: admin/views/settings.php:136
    542 msgid "Resize Existing Images"
    543 msgstr "Redimensionner les images existantes"
    544 
    545 #: admin/views/settings.php:161
    546 #: admin/views/settings.php:312
    547 #: admin/views/settings.php:376
     814msgid "Automatic options apply to new uploads. To resize the images already in your Media Library, use %s."
     815msgstr "Les options automatiques s’appliquent aux nouveaux envois. Pour réduire les images déjà présentes dans votre médiathèque, utilisez %s."
     816
     817#: admin/views/settings.php:147
     818#: admin/views/settings.php:284
     819#: admin/views/settings.php:348
    548820msgid "Save Changes"
    549821msgstr "Enregistrer les modifications"
    550822
    551 #: admin/views/settings.php:169
     823#: admin/views/settings.php:155
    552824msgid "Configure automatic accessibility improvements for your images."
    553825msgstr "Configurer les améliorations d’accessibilité pour vos images."
    554826
    555 #: admin/views/settings.php:179
    556 #: admin/views/settings.php:195
     827#: admin/views/settings.php:165
     828#: admin/views/settings.php:181
    557829msgid "Automatic ALT Text Generation"
    558830msgstr "Génération automatique de texte ALT"
    559831
    560 #: admin/views/settings.php:181
     832#: admin/views/settings.php:167
    561833msgid "Automatically generate alternative text (ALT) from the image filename. This will only apply to images that do not already have ALT text."
    562 msgstr "Générer automatique un texte alternatif (ALT) depuis le nom du fichier de l’image. Cela s’appliquera uniquement aux images qui n’ont pas encore de texte ALT."
    563 
    564 #: admin/views/settings.php:204
    565 #: admin/views/settings.php:226
     834msgstr "Générer automatiquement un texte alternatif (ALT) depuis le nom du fichier de l’image. Cela s’appliquera uniquement aux images qui n’ont pas encore de texte ALT."
     835
     836#: admin/views/settings.php:190
     837#: admin/views/settings.php:212
    566838msgid "Remove Title Attribute"
    567839msgstr "Retirer l’attribut titre"
    568840
    569 #: admin/views/settings.php:206
     841#: admin/views/settings.php:192
    570842msgid "Automatically remove the title attribute from images. This improves accessibility and prevents redundant information."
    571843msgstr "Retirer automatiquement l’attribut titre des images. Améliore l’accessibilité et évite les informations redondantes."
    572844
    573 #: admin/views/settings.php:210
     845#: admin/views/settings.php:196
    574846msgid "Images with a title in your library:"
    575 msgstr "Images avec un titre dans votre médiathèque :"
    576 
    577 #: admin/views/settings.php:212
    578 msgid "These titles are cleared when the option is enabled: automatically for new uploads, and for the existing library when you run Process Existing Images below."
    579 msgstr "Ces titres sont effacés quand l’option est activée : automatiquement pour les nouveaux envois, et pour la médiathèque existante quand vous lancez « Traiter les images existantes » ci-dessous."
     847msgstr "Images avec un titre dans votre médiathèque :"
     848
     849#: admin/views/settings.php:198
     850msgid "When the option is enabled, titles are cleared on new uploads, after an image without ALT text has received its title as ALT text. To clear the titles already in your library, use Filikod > ALT Text > Bulk actions."
     851msgstr "Quand l’option est activée, les titres sont effacés à chaque nouvel envoi, après avoir servi de texte ALT aux images qui n’en ont pas. Pour effacer ceux déjà présents dans votre médiathèque, utilisez Filikod > Textes ALT > Actions en masse."
     852
     853#: admin/views/settings.php:221
     854#: admin/views/settings.php:237
     855msgid "Remove Special Characters from ALT Text"
     856msgstr "Retirer les caractères spéciaux du texte ALT"
     857
     858#: admin/views/settings.php:223
     859msgid "Clean ALT text inherited from file names: dashes, underscores and dots become spaces (my-photo_2024.jpg becomes \"my photo 2024\"). Hand-written ALT text keeps its punctuation; only technical characters (slash, backslash, brackets, symbols) are removed. Applies to new uploads."
     860msgstr "Nettoie les textes ALT hérités des noms de fichiers : tirets, underscores et points deviennent des espaces (my-photo_2024.jpg devient « my photo 2024 »). Les textes ALT rédigés à la main gardent leur ponctuation ; seuls les caractères techniques (slash, antislash, crochets, symboles) sont retirés. S’applique aux nouveaux envois."
    580861
    581862#: admin/views/settings.php:23
    582 #: admin/views/settings.php:168
     863#: admin/views/settings.php:154
    583864msgid "Accessibility / SEO"
    584865msgstr "Accessibilité / SEO"
    585 
    586 #: admin/views/settings.php:235
    587 #: admin/views/settings.php:251
    588 msgid "Remove Special Characters from ALT Text"
    589 msgstr "Retirer les caractères spéciaux du texte ALT"
    590 
    591 #: admin/views/settings.php:237
    592 msgid "Clean ALT text inherited from file names: dashes, underscores and dots become spaces (my-photo_2024.jpg becomes \"my photo 2024\"). Hand-written ALT text keeps its punctuation; only technical characters (slash, backslash, brackets, symbols) are removed. This applies to existing and future images."
    593 msgstr "Nettoie les textes ALT hérités des noms de fichiers : tirets, underscores et points deviennent des espaces (my-photo_2024.jpg devient « my photo 2024 »). Les textes ALT rédigés à la main gardent leur ponctuation ; seuls les caractères techniques (slash, antislash, crochets, symboles) sont retirés. S’applique aux images existantes et futures."
    594866
    595867#: admin/views/settings.php:24
    … …  
    597869msgstr "Optimisations"
    598870
     871#: admin/views/settings.php:246
     872#: admin/views/settings.php:262
     873msgid "Hide ALT badges on Media Library thumbnails"
     874msgstr "Masquer les badges ALT sur les vignettes de la médiathèque"
     875
     876#: admin/views/settings.php:248
     877msgid "Hides the ALT status badges shown on thumbnails in the Media Library grid. Badges stay visible in the list view and in the attachment details."
     878msgstr "Masque les badges de statut ALT affichés sur les vignettes de la grille de la médiathèque. Les badges restent visibles dans la vue liste et dans les détails du fichier joint."
     879
    599880#: admin/views/settings.php:25
    600881msgid "File types"
    … …  
    605886msgstr "PRO"
    606887
    607 #: admin/views/settings.php:260
    608 #: admin/views/settings.php:276
    609 msgid "Hide ALT badges on Media Library thumbnails"
    610 msgstr "Masquer les badges ALT sur les vignettes de la médiathèque"
    611 
    612 #: admin/views/settings.php:262
    613 msgid "Hides the ALT status badges shown on thumbnails in the Media Library grid. Badges stay visible in the list view and in the attachment details."
    614 msgstr "Masque les badges de statut ALT affichés sur les vignettes de la grille de la médiathèque. Les badges restent visibles dans la vue liste et dans les détails du fichier joint."
    615 
    616 #: admin/views/settings.php:284
    617 msgid "You can process existing images by clicking the button below. This will apply the selected options to all images in your media library."
    618 msgstr "Vous pouvez traiter les images existantes en cliquant sur le bouton ci-dessous. Cela appliquera les options sélectionnées à toutes les images dans votre médiathèque."
    619 
    620 #: admin/views/settings.php:287
    621 msgid "Process Existing Images"
    622 msgstr "Traiter les images existantes"
    623 
    624 #: admin/views/settings.php:319
     888#: admin/views/settings.php:273
     889msgid "Automatic options apply to new uploads. To process the images already in your Media Library, use %s."
     890msgstr "Les options automatiques s’appliquent aux nouveaux envois. Pour traiter les images déjà présentes dans votre médiathèque, utilisez %s."
     891
     892#: admin/views/settings.php:291
    625893msgid "Authorized File Types"
    626894msgstr "Formats de fichiers autorisés"
    627895
    628 #: admin/views/settings.php:345
     896#: admin/views/settings.php:317
    629897msgid "SVG XML will be automatically filtered for security"
    630898msgstr "SVG XML sera automatiquement filtré par sécurité"
    631899
    632 #: admin/views/settings.php:385
     900#: admin/views/settings.php:357
    633901msgid "Filikod Pro is in preparation"
    634902msgstr "Filikod Pro est en préparation"
    635903
    636 #: admin/views/settings.php:386
     904#: admin/views/settings.php:358
    637905msgid "Filikod stays a checker: no AI, no credits, no external API. The Pro version will extend the audit, not replace your judgement."
    638 msgstr "Filikod reste un vérificateur : pas d’IA, pas de crédits, pas d’API externe. La version Pro étendra l’audit sans remplacer votre jugement."
    639 
    640 #: admin/views/settings.php:388
     906msgstr "Filikod reste un vérificateur : pas d’IA, pas de crédits, pas d’API externe. La version Pro étendra l’audit sans remplacer votre jugement."
     907
     908#: admin/views/settings.php:360
    641909msgid "Scheduled audits with an e-mail report when the score drops."
    642910msgstr "Audits planifiés avec un rapport par e-mail quand le score baisse."
    643911
    644 #: admin/views/settings.php:389
     912#: admin/views/settings.php:361
    645913msgid "Alt text audit of published content, not only of the media library."
    646 msgstr "Audit des textes alternatifs du contenu publié, et pas seulement de la médiathèque."
    647 
    648 #: admin/views/settings.php:390
     914msgstr "Audit des textes alternatifs du contenu publié et pas seulement de la médiathèque."
     915
     916#: admin/views/settings.php:362
    649917msgid "Exportable reports (CSV, PDF) for clients and accessibility reviews (WCAG 2.1 success criterion 1.1.1)."
    650918msgstr "Rapports exportables (CSV, PDF) pour les clients et les revues d’accessibilité (critère de succès 1.1.1 des WCAG 2.1)."
    651919
    652 #: admin/views/settings.php:391
     920#: admin/views/settings.php:363
    653921msgid "Custom rules: thresholds, generic terms per language, exclusions."
    654 msgstr "Règles personnalisées : seuils, termes génériques par langue, exclusions."
    655 
    656 #: admin/views/settings.php:394
     922msgstr "Règles personnalisées : seuils, termes génériques par langue, exclusions."
     923
     924#: admin/views/settings.php:366
    657925msgid "Tell us which feature you need first"
    658926msgstr "Dites-nous quelle fonctionnalité vous attendez en premier"
    … …  
    675943msgstr "Redimensionner automatiquement les images lorsqu’elles sont téléversées. L’image d’origine sera remplacée par une version redimensionnée qui respect la largeur que vous pouvez définir ci-dessous."
    676944
    677 #: admin/views/settings.php:86
    678 msgid "Maximum Image Width"
    679 msgstr "Largeur maximale de l’image"
    680 
    681945#: admin/views/settings.php:88
    682946msgid "Define the maximum width in pixels for uploaded images. Images larger than this width will be automatically resized while maintaining their aspect ratio. Recommended: 2000px for most websites."
    683947msgstr "Définissez la largeur maximale en pixels pour les images téléversées. Les images plus larges que cette largeur seront automatiquement redimensionnées tout en conservant leur proportion de taille. Recommandé : 2000px pour la plupart des sites."
    684948
    685 #: filikod.php:261
     949#: filikod.php:273
    686950msgid "Filikod requires WordPress 5.8 or higher."
    687951msgstr "Filikod nécessite une version de WordPress 5.8 ou supérieure."
    688952
    689 #: filikod.php:271
     953#: filikod.php:283
    690954msgid "Filikod requires PHP 7.4 or higher."
    691955msgstr "Filikod nécessite une version de PHP 7.4 ou supérieure."
    692956
    693 #: includes/admin/class-filikod-admin.php:141
     957#: includes/admin/class-filikod-admin.php:192
     958msgid "Open Filikod"
     959msgstr "Ouvrir Filikod"
     960
     961#: includes/admin/class-filikod-admin.php:238
    694962msgid "Settings saved successfully!"
    695963msgstr "Les réglages ont bien été enregistrés !"
    696964
    697 #: includes/admin/class-filikod-admin.php:142
     965#: includes/admin/class-filikod-admin.php:239
    698966msgid "Error saving settings."
    699967msgstr "Erreur dans l’enregistrement des réglages."
    700968
    701 #: includes/admin/class-filikod-admin.php:143
     969#: includes/admin/class-filikod-admin.php:240
    702970msgid "Processing..."
    703971msgstr "Traitement en cours…"
    704972
    705 #: includes/admin/class-filikod-admin.php:144
     973#: includes/admin/class-filikod-admin.php:241
     974#: includes/dashboard/class-filikod-dashboard.php:109
    706975#: includes/duplicates/class-filikod-visual-duplicates.php:750
    707976msgid "An error occurred."
    708977msgstr "Une erreur s’est produite."
    709978
    710 #: includes/admin/class-filikod-admin.php:145
     979#: includes/admin/class-filikod-admin.php:242
    711980msgid "An error occurred during processing."
    712981msgstr "Une erreur s’est produite durant le traitement."
    713982
    714 #: includes/admin/class-filikod-admin.php:146
     983#: includes/admin/class-filikod-admin.php:243
    715984msgid "Starting processing..."
    716985msgstr "Traitement en cours…"
    717986
    718 #: includes/admin/class-filikod-admin.php:147
     987#: includes/admin/class-filikod-admin.php:244
    719988msgid "images resized"
    720989msgstr "images retaillées"
    721990
    722 #: includes/admin/class-filikod-admin.php:148
     991#: includes/admin/class-filikod-admin.php:245
    723992msgid "image resized"
    724993msgstr "image retaillée"
    725994
    726 #: includes/admin/class-filikod-admin.php:149
     995#: includes/admin/class-filikod-admin.php:246
    727996msgid "ignored"
    728997msgstr "ignoré"
    729998
    730 #: includes/admin/class-filikod-admin.php:150
     999#: includes/admin/class-filikod-admin.php:247
    7311000msgid "saved"
    7321001msgstr "enregistré"
    7331002
    734 #: includes/admin/class-filikod-admin.php:152
     1003#: includes/admin/class-filikod-admin.php:249
    7351004msgid "Resize complete: %1$d images resized, %2$d ignored. Space saved: %3$s"
    7361005msgstr "Traitement validé : %1$d images traitées, %2$d ignorées. Gain de place : %3$s"
    7371006
    738 #: includes/admin/class-filikod-admin.php:153
     1007#: includes/admin/class-filikod-admin.php:250
    7391008msgid "Unable to retrieve image count"
    7401009msgstr "Impossible de récupérer le total des images"
    7411010
    742 #: includes/admin/class-filikod-admin.php:154
     1011#: includes/admin/class-filikod-admin.php:251
    7431012msgid "Error retrieving image count"
    7441013msgstr "Erreur lors de la récupération du total des images"
    7451014
    746 #: includes/admin/class-filikod-admin.php:155
     1015#: includes/admin/class-filikod-admin.php:252
    7471016msgid "image processed"
    7481017msgstr "image traitée"
    7491018
    750 #: includes/admin/class-filikod-admin.php:156
     1019#: includes/admin/class-filikod-admin.php:253
    7511020msgid "images processed"
    7521021msgstr "images traitées"
    7531022
    754 #: includes/admin/class-filikod-admin.php:157
    755 #: includes/admin/class-filikod-admin.php:158
     1023#: includes/admin/class-filikod-admin.php:254
     1024#: includes/admin/class-filikod-admin.php:255
    7561025msgid "skipped"
    7571026msgstr "ignoré"
    7581027
    759 #: includes/admin/class-filikod-admin.php:160
     1028#: includes/admin/class-filikod-admin.php:257
    7601029msgid "Processing complete: %1$d images processed, %2$d skipped."
    7611030msgstr "Traitement validé : %1$d images traitées, %2$d ignorées."
    7621031
    763 #: includes/admin/class-filikod-admin.php:161
     1032#: includes/admin/class-filikod-admin.php:258
     1033#: includes/settings/class-filikod-settings.php:443
     1034msgid "Enter a width between 100 and 10,000 pixels."
     1035msgstr "Saisissez une largeur entre 100 et 10 000 pixels."
     1036
     1037#: includes/admin/class-filikod-admin.php:260
     1038msgid "ALT text written: %1$d. Images left without ALT: %2$d, because their title or file name is too generic (for example \"IMG_1234\" or \"logo-company\")."
     1039msgstr "Textes ALT écrits : %1$d. Images restées sans ALT : %2$d, car leur titre ou leur nom de fichier est trop générique (par exemple « IMG_1234 » ou « logo-entreprise »)."
     1040
     1041#: includes/admin/class-filikod-admin.php:262
     1042msgid "ALT text written: %d. No image is left without ALT."
     1043msgstr "Textes ALT écrits : %d. Plus aucune image sans ALT."
     1044
     1045#: includes/admin/class-filikod-admin.php:264
     1046msgid "ALT text cleaned: %d."
     1047msgstr "Textes ALT nettoyés : %d."
     1048
     1049#: includes/admin/class-filikod-admin.php:266
     1050msgid "Titles cleared: %d."
     1051msgstr "Titres effacés : %d."
     1052
     1053#: includes/admin/class-filikod-admin.php:267
     1054msgid "Write them in ALT Text"
     1055msgstr "Les écrire dans Textes ALT"
     1056
     1057#: includes/admin/class-filikod-admin.php:268
    7641058msgid "Saved."
    7651059msgstr "Enregistré."
    7661060
    767 #: includes/admin/class-filikod-admin.php:162
     1061#: includes/admin/class-filikod-admin.php:269
    7681062msgid "Error saving ALT."
    7691063msgstr "Erreur lors de l’enregistrement du ALT."
    7701064
    771 #: includes/admin/class-filikod-admin.php:163
     1065#: includes/admin/class-filikod-admin.php:270
    7721066msgid "Marked as decorative (excluded from the ALT score)."
    7731067msgstr "Marquée comme décorative (exclue du score ALT)."
    7741068
    775 #: includes/admin/class-filikod-admin.php:164
     1069#: includes/admin/class-filikod-admin.php:271
    7761070msgid "Image restored as a regular image, please add an ALT text."
    7771071msgstr "Image rétablie comme image normale, veuillez ajouter un texte ALT."
    7781072
    779 #: includes/admin/class-filikod-admin.php:166
     1073#: includes/admin/class-filikod-admin.php:273
    7801074msgid "%1$d fingerprinted, %2$d skipped (%3$d%%)"
    7811075msgstr "%1$d empreintes calculées, %2$d ignorées (%3$d %%)"
    7821076
    783 #: includes/admin/class-filikod-admin.php:168
     1077#: includes/admin/class-filikod-admin.php:275
    7841078msgid "Scan complete: %1$d images fingerprinted, %2$d duplicate groups found (%3$d redundant files). Reloading..."
    785 msgstr "Analyse terminée : %1$d images avec empreinte, %2$d groupes de doublons trouvés (%3$d fichiers redondants). Rechargement…"
    786 
    787 #: includes/admin/class-filikod-admin.php:46
     1079msgstr "Analyse terminée : %1$d images avec empreinte, %2$d groupes de doublons trouvés (%3$d fichiers redondants). Rechargement…"
     1080
     1081#: includes/admin/class-filikod-admin.php:283
     1082msgid "Did Filikod save you time? A review on WordPress.org helps other sites find it."
     1083msgstr "Filikod vous a fait gagner du temps ? Un avis sur WordPress.org aide d’autres sites à le trouver."
     1084
     1085#: includes/admin/class-filikod-admin.php:50
    7881086msgid "Filikod"
    7891087msgstr "Filikod"
    7901088
    791 #: includes/admin/class-filikod-admin.php:58
    792 #: includes/admin/class-filikod-admin.php:59
     1089#: includes/admin/class-filikod-admin.php:62
     1090#: includes/admin/class-filikod-admin.php:63
    7931091msgid "Dashboard"
    7941092msgstr "Tableau de bord"
    7951093
    796 #: includes/admin/class-filikod-admin.php:79
    797 msgid "Duplicate Images"
    798 msgstr "Images en double"
    799 
    800 #: includes/admin/class-filikod-admin.php:89
    801 #: includes/admin/class-filikod-admin.php:90
     1094#: includes/admin/class-filikod-admin.php:83
     1095#: includes/admin/class-filikod-admin.php:84
    8021096msgid "Settings"
    8031097msgstr "Réglages"
    … …  
    8091103
    8101104#: includes/admin/class-filikod-media-alt-status.php:229
    811 #: includes/dashboard/class-filikod-dashboard.php:165
    812 #: includes/dashboard/class-filikod-dashboard.php:206
     1105#: includes/dashboard/class-filikod-dashboard.php:245
     1106#: includes/dashboard/class-filikod-dashboard.php:286
    8131107msgid "Invalid attachment."
    8141108msgstr "Fichier joint invalide."
    … …  
    8211115#: includes/admin/class-filikod-media-alt-status.php:291
    8221116msgid "Alt: %s"
    823 msgstr "Alt : %s"
     1117msgstr "Alt : %s"
    8241118
    8251119#: includes/admin/class-filikod-media-alt-status.php:331
    8261120msgid "ALT text passes all checks: present, specific, well-sized and unique."
    827 msgstr "Le texte ALT passe tous les contrôles : présent, spécifique, de bonne longueur et unique."
     1121msgstr "Le texte ALT passe tous les contrôles : présent, spécifique, de bonne longueur et unique."
    8281122
    8291123#: includes/admin/class-filikod-media-alt-status.php:333
    … …  
    8331127#: includes/admin/class-filikod-media-alt-status.php:335
    8341128msgid "ALT text is too generic (e.g. \"logo\", \"image1\"). Replace it with a description specific to this image."
    835 msgstr "Le texte ALT est trop générique (par ex. « logo », « image1 »). Remplacez-le par une description propre à cette image."
     1129msgstr "Le texte ALT est trop générique (par ex. « logo », « image1 »). Remplacez-le par une description propre à cette image."
    8361130
    8371131#: includes/admin/class-filikod-media-alt-status.php:339
    … …  
    8401134
    8411135#: includes/admin/class-filikod-media-alt-status.php:345
    842 msgid "ALT text exceeds %d characters. Long ALTs are poorly read by screen readers and dilute SEO signals. Aim for a concise description."
    843 msgstr "Le texte ALT dépasse %d caractères. Les ALT longs sont mal lus par les lecteurs d’écran et diluent les signaux SEO. Visez une description concise."
     1136msgid "ALT text exceeds %d characters. A long ALT is hard to follow: screen readers read it in full and listeners cannot go back inside it. Keep what the image shows and move credits, dates or details to the caption or the text around the image."
     1137msgstr "Le texte ALT dépasse %d caractères. Un ALT long est difficile à suivre : les lecteurs d’écran le lisent en entier, sans retour en arrière possible dans le texte. Gardez ce que montre l’image et placez crédits, dates ou détails dans la légende ou dans le texte autour de l’image."
    8441138
    8451139#: includes/admin/class-filikod-media-alt-status.php:349
    … …  
    8571151
    8581152#: includes/admin/class-filikod-media-alt-status.php:407
    859 msgid "Exact copy of an image already in the library (same file fingerprint). See Filikod > Duplicates."
    860 msgstr "Copie exacte d’une image déjà présente dans la médiathèque (même empreinte de fichier). Voir Filikod > Doublons."
     1153msgid "Exact copy of an image already in the library (same file fingerprint). See Media > Duplicate files."
     1154msgstr "Copie exacte d’une image déjà présente dans la médiathèque (même empreinte de fichier). Voir Médias > Fichiers en double."
    8611155
    8621156#: includes/admin/class-filikod-media-alt-status.php:64
    … …  
    8701164msgstr "-"
    8711165
    872 #: includes/class-filikod-media-utils.php:78
     1166#: includes/class-filikod-media-utils.php:165
    8731167msgid "bytes"
    8741168msgstr "octets"
    8751169
    876 #: includes/dashboard/class-filikod-dashboard.php:148
    877 #: includes/dashboard/class-filikod-dashboard.php:237
    878 #: includes/duplicates/class-filikod-duplicates.php:1415
    879 #: includes/settings/class-filikod-settings.php:90
     1170#: includes/dashboard/class-filikod-dashboard.php:100
     1171#: includes/duplicates/class-filikod-duplicates.php:1097
     1172#: includes/duplicates/class-filikod-duplicates.php:1110
     1173#: includes/duplicates/class-filikod-visual-duplicates.php:745
     1174#: includes/settings/class-filikod-settings.php:131
     1175#: includes/settings/class-filikod-settings.php:329
     1176#: includes/settings/class-filikod-settings.php:351
     1177#: includes/settings/class-filikod-settings.php:407
     1178#: includes/settings/class-filikod-settings.php:429
     1179msgid "Security check failed."
     1180msgstr "Le contrôle de sécurité a échoué."
     1181
     1182#: includes/dashboard/class-filikod-dashboard.php:228
     1183#: includes/dashboard/class-filikod-dashboard.php:317
     1184#: includes/duplicates/class-filikod-duplicates.php:1419
     1185#: includes/settings/class-filikod-settings.php:150
     1186#: includes/settings/class-filikod-settings.php:161
    8801187msgid "You do not have sufficient permissions to access this page."
    8811188msgstr "Vous n’avez pas les droits suffisants pour accéder à cette page."
    8821189
    883 #: includes/dashboard/class-filikod-dashboard.php:213
     1190#: includes/dashboard/class-filikod-dashboard.php:293
    8841191msgid "Audit module unavailable."
    8851192msgstr "Module d’audit indisponible."
    8861193
    887 #: includes/dashboard/class-filikod-dashboard.php:217
     1194#: includes/dashboard/class-filikod-dashboard.php:297
    8881195msgid "Unable to update decorative state."
    8891196msgstr "Impossible de mettre à jour l’état décoratif."
    890 
    891 #: includes/duplicates/class-filikod-duplicates.php:1094
    892 #: includes/duplicates/class-filikod-duplicates.php:1107
    893 #: includes/duplicates/class-filikod-visual-duplicates.php:745
    894 #: includes/settings/class-filikod-settings.php:258
    895 #: includes/settings/class-filikod-settings.php:280
    896 #: includes/settings/class-filikod-settings.php:326
    897 #: includes/settings/class-filikod-settings.php:348
    898 msgid "Security check failed."
    899 msgstr "Le contrôle de sécurité a échoué."
    9001197
    9011198#: includes/duplicates/class-filikod-duplicates.php:234
    9021199msgid "This file exists %d time in your library:"
    9031200msgid_plural "This file exists %d times in your library (identical content, different names):"
    904 msgstr[0] "Ce fichier existe %d fois dans votre médiathèque :"
    905 msgstr[1] "Ce fichier existe %d fois dans votre médiathèque :"
     1201msgstr[0] "Ce fichier existe %d fois dans votre médiathèque :"
     1202msgstr[1] "Ce fichier existe %d fois dans votre médiathèque :"
    9061203
    9071204#: includes/duplicates/class-filikod-duplicates.php:253
    … …  
    9141211
    9151212#: includes/duplicates/class-filikod-duplicates.php:264
    916 msgid "Review and clean up in Filikod > Duplicates"
    917 msgstr "Vérifier et nettoyer dans Filikod > Doublons"
     1213msgid "Review and clean up in Media > Duplicate files"
     1214msgstr "Vérifier et nettoyer dans Médias > Fichiers en double"
    9181215
    9191216#: includes/duplicates/class-filikod-duplicates.php:307
    9201217msgid "Duplicate file:"
    921 msgstr "Fichier en double :"
     1218msgstr "Fichier en double :"
    9221219
    9231220#: includes/duplicates/class-filikod-duplicates.php:309
    … …  
    9261223
    9271224#: includes/duplicates/class-filikod-duplicates.php:310
    928 msgid "Review in Filikod > Duplicates"
    929 msgstr "Vérifier dans Filikod > Doublons"
     1225msgid "Review in Media > Duplicate files"
     1226msgstr "Vérifier dans Médias > Fichiers en double"
    9301227
    9311228#: includes/duplicates/class-filikod-duplicates.php:311
    … …  
    10111308msgstr "Impossible de lire le fichier SVG."
    10121309
    1013 #: includes/settings/class-filikod-settings.php:141
     1310#: includes/settings/class-filikod-settings.php:106
     1311msgid "image in your Media Library"
     1312msgid_plural "images in your Media Library"
     1313msgstr[0] "image dans votre médiathèque"
     1314msgstr[1] "images dans votre médiathèque"
     1315
     1316#: includes/settings/class-filikod-settings.php:110
     1317msgid "image wider than %s px"
     1318msgid_plural "images wider than %s px"
     1319msgstr[0] "image de plus de %s px"
     1320msgstr[1] "images de plus de %s px"
     1321
     1322#: includes/settings/class-filikod-settings.php:116
     1323msgid "image without ALT text"
     1324msgid_plural "images without ALT text"
     1325msgstr[0] "image sans texte ALT"
     1326msgstr[1] "images sans texte ALT"
     1327
     1328#: includes/settings/class-filikod-settings.php:117
     1329msgid "ALT text to clean"
     1330msgid_plural "ALT texts to clean"
     1331msgstr[0] "texte ALT à nettoyer"
     1332msgstr[1] "textes ALT à nettoyer"
     1333
     1334#: includes/settings/class-filikod-settings.php:118
     1335msgid "image with a title"
     1336msgid_plural "images with a title"
     1337msgstr[0] "image avec un titre"
     1338msgstr[1] "images avec un titre"
     1339
     1340#: includes/settings/class-filikod-settings.php:212
    10141341msgid "File types saved successfully!"
    10151342msgstr "Formats de fichiers correctement enregistrés !"
    10161343
    1017 #: includes/settings/class-filikod-settings.php:187
     1344#: includes/settings/class-filikod-settings.php:258
    10181345msgid "Accessibility settings saved successfully!"
    10191346msgstr "Réglages d’accessibilité correctement enregistrés !"
    10201347
    1021 #: includes/settings/class-filikod-settings.php:232
     1348#: includes/settings/class-filikod-settings.php:303
    10221349msgid "Maximum image width must be between 100 and 10000 pixels. Value was not saved."
    10231350msgstr "La largeur maximale d’image doit être comprise entre 100 et 10000 pixels. La valeur n’a pas été enregistrée."
    10241351
    1025 #: includes/settings/class-filikod-settings.php:242
     1352#: includes/settings/class-filikod-settings.php:313
    10261353msgid "Optimization settings saved successfully!"
    10271354msgstr "Réglages d’optimisation correctement enregistrés !"
     1355
     1356#: includes/settings/class-filikod-settings.php:366
     1357msgid "Unknown task."
     1358msgstr "Tâche inconnue."
  • filikod/trunk/languages/filikod.pot

    r3763820 r3833014  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Filikod 1.3.0\n"
     5"Project-Id-Version: Filikod 1.4.0\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/filikod\n"
    7 "POT-Creation-Date: 2026-10-24 19:43+0000\n"
     7"POT-Creation-Date: 2026-11-29 12:37+0000\n"
    88"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    99"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    … …  
    1616"X-Domain: filikod\n"
    1717
    18 #: admin/views/alt-audit.php:109
     18#: admin/views/alt-audit.php:101
     19msgid "Every image has an ALT text."
     20msgstr ""
     21
     22#: admin/views/alt-audit.php:102
     23msgid "No generic ALT text."
     24msgstr ""
     25
     26#: admin/views/alt-audit.php:103
     27msgid "No ALT text is too short."
     28msgstr ""
     29
     30#: admin/views/alt-audit.php:104
     31msgid "No ALT text is too long."
     32msgstr ""
     33
     34#: admin/views/alt-audit.php:105
     35msgid "No ALT text is shared by several images."
     36msgstr ""
     37
     38#: admin/views/alt-audit.php:106
     39msgid "No image is marked as decorative."
     40msgstr ""
     41
     42#: admin/views/alt-audit.php:130
    1943msgid "With WPGlobus or qTranslate-XT, an image is also listed here when its ALT is empty in one of the site languages (see the Language column)."
    2044msgstr ""
    2145
    22 #: admin/views/alt-audit.php:122
    23 #: includes/admin/class-filikod-admin.php:68
    24 #: includes/admin/class-filikod-admin.php:69
    25 msgid "ALT Audit"
    26 msgstr ""
    27 
    28 #: admin/views/alt-audit.php:128
     46#: admin/views/alt-audit.php:143
     47#: includes/admin/class-filikod-admin.php:72
     48#: includes/admin/class-filikod-admin.php:73
     49msgid "ALT Text"
     50msgstr ""
     51
     52#: admin/views/alt-audit.php:149
    2953msgid "Filter by issue type"
    3054msgstr ""
    3155
    32 #: admin/views/alt-audit.php:158
     56#: admin/views/alt-audit.php:169
     57#: admin/views/dashboard.php:286
     58msgid "Bulk actions"
     59msgstr ""
     60
     61#: admin/views/alt-audit.php:176
     62msgid "Fix the images already in your Media Library in one go. Settings only apply to new uploads."
     63msgstr ""
     64
     65#: admin/views/alt-audit.php:180
     66msgid "To resize large images, use %s."
     67msgstr ""
     68
     69#: admin/views/alt-audit.php:181
     70#: admin/views/dashboard.php:335
     71#: admin/views/settings.php:137
     72msgid "Tools > Resize large images"
     73msgstr ""
     74
     75#: admin/views/alt-audit.php:201
     76msgid "%s image has no ALT text. Write it below, or fill it from its title or file name in one go."
     77msgid_plural "%s images have no ALT text. Write them below, or fill them from their titles or file names in one go."
     78msgstr[0] ""
     79msgstr[1] ""
     80
     81#: admin/views/alt-audit.php:211
     82#: admin/views/bulk.php:30
     83#: admin/views/bulk.php:33
     84msgid "Fill missing ALT text"
     85msgstr ""
     86
     87#: admin/views/alt-audit.php:217
    3388msgid "No images match this filter."
    3489msgstr ""
    3590
    36 #: admin/views/alt-audit.php:163
     91#: admin/views/alt-audit.php:222
    3792#: admin/views/duplicates-similar.php:88
    38 #: admin/views/duplicates.php:192
    39 #: admin/views/duplicates.php:308
     93#: admin/views/duplicates.php:196
     94#: admin/views/duplicates.php:312
    4095msgid "Thumbnail"
    4196msgstr ""
    4297
    43 #: admin/views/alt-audit.php:164
     98#: admin/views/alt-audit.php:223
    4499#: admin/views/duplicates-similar.php:89
    45 #: admin/views/duplicates.php:309
     100#: admin/views/duplicates.php:313
    46101msgid "File name"
    47102msgstr ""
    48103
    49 #: admin/views/alt-audit.php:166
     104#: admin/views/alt-audit.php:225
    50105msgid "Language"
    51106msgstr ""
    52107
    53 #: admin/views/alt-audit.php:168
     108#: admin/views/alt-audit.php:227
    54109#: admin/views/duplicates-similar.php:90
    55 #: admin/views/duplicates.php:194
    56 #: admin/views/duplicates.php:310
     110#: admin/views/duplicates.php:198
     111#: admin/views/duplicates.php:314
    57112msgid "Context"
    58113msgstr ""
    59114
    60 #: admin/views/alt-audit.php:169
     115#: admin/views/alt-audit.php:228
    61116#: admin/views/duplicates-similar.php:91
    62 #: admin/views/duplicates.php:195
    63 #: admin/views/duplicates.php:311
     117#: admin/views/duplicates.php:199
     118#: admin/views/duplicates.php:315
    64119msgid "ALT"
    65120msgstr ""
    66121
    67 #: admin/views/alt-audit.php:170
     122#: admin/views/alt-audit.php:229
    68123#: admin/views/duplicates-similar.php:92
    69 #: admin/views/duplicates.php:312
     124#: admin/views/duplicates.php:316
    70125msgid "Issue"
    71126msgstr ""
    72127
    73 #: admin/views/alt-audit.php:172
     128#: admin/views/alt-audit.php:231
    74129#: admin/views/duplicates-similar.php:93
    75 #: admin/views/duplicates.php:196
    76 #: admin/views/duplicates.php:313
     130#: admin/views/duplicates.php:200
     131#: admin/views/duplicates.php:317
    77132msgid "Action"
    78133msgstr ""
    79134
    80 #: admin/views/alt-audit.php:231
     135#: admin/views/alt-audit.php:290
    81136msgid "empty: %s"
    82137msgstr ""
    83138
    84 #: admin/views/alt-audit.php:240
     139#: admin/views/alt-audit.php:299
    85140msgid "Not translated"
    86141msgstr ""
    87142
    88 #: admin/views/alt-audit.php:252
     143#: admin/views/alt-audit.php:311
    89144msgid "ALT text for this image"
    90145msgstr ""
    91146
    92 #: admin/views/alt-audit.php:252
     147#: admin/views/alt-audit.php:311
    93148msgid "Decorative image (alt=\"\")"
    94149msgstr ""
    95150
    96 #: admin/views/alt-audit.php:281
     151#: admin/views/alt-audit.php:340
    97152msgid "Mark this image as a regular content image (requires an ALT text)."
    98153msgstr ""
    99154
    100 #: admin/views/alt-audit.php:281
     155#: admin/views/alt-audit.php:340
    101156msgid "Mark this image as decorative (alt=\"\", excluded from the ALT score)."
    102157msgstr ""
    103158
    104 #: admin/views/alt-audit.php:293
     159#: admin/views/alt-audit.php:352
    105160msgid "Save"
    106161msgstr ""
    107162
    108 #: admin/views/alt-audit.php:309
     163#: admin/views/alt-audit.php:368
    109164#: admin/views/duplicates-similar.php:185
    110 #: admin/views/duplicates.php:249
    111 #: admin/views/duplicates.php:407
     165#: admin/views/duplicates.php:253
     166#: admin/views/duplicates.php:411
    112167msgid "Pagination"
    113168msgstr ""
    114169
    115 #: admin/views/alt-audit.php:314
    116 #: admin/views/duplicates.php:254
     170#: admin/views/alt-audit.php:373
     171#: admin/views/duplicates.php:258
    117172msgid "Page %1$d of %2$d (%3$d items)"
    118173msgstr ""
    119174
    120 #: admin/views/alt-audit.php:323
     175#: admin/views/alt-audit.php:382
    121176#: admin/views/duplicates-similar.php:199
    122 #: admin/views/duplicates.php:263
    123 #: admin/views/duplicates.php:421
     177#: admin/views/duplicates.php:267
     178#: admin/views/duplicates.php:425
    124179msgid "&laquo; Previous"
    125180msgstr ""
    126181
    127 #: admin/views/alt-audit.php:326
     182#: admin/views/alt-audit.php:385
    128183#: admin/views/duplicates-similar.php:202
    129 #: admin/views/duplicates.php:266
    130 #: admin/views/duplicates.php:424
     184#: admin/views/duplicates.php:270
     185#: admin/views/duplicates.php:428
    131186msgid "Next &raquo;"
    132187msgstr ""
    133188
    134 #: admin/views/alt-audit.php:67
    135 #: admin/views/dashboard.php:103
     189#: admin/views/alt-audit.php:79
     190#: admin/views/dashboard.php:60
     191#: admin/views/dashboard.php:86
    136192#: includes/admin/class-filikod-media-alt-status.php:303
    137193msgid "Missing"
    138194msgstr ""
    139195
    140 #: admin/views/alt-audit.php:68
    141 #: admin/views/dashboard.php:107
     196#: admin/views/alt-audit.php:80
     197#: admin/views/dashboard.php:61
     198#: admin/views/dashboard.php:87
    142199#: includes/admin/class-filikod-media-alt-status.php:305
    143200msgid "Generic"
    144201msgstr ""
    145202
    146 #: admin/views/alt-audit.php:69
    147 #: admin/views/dashboard.php:111
     203#: admin/views/alt-audit.php:81
     204#: admin/views/dashboard.php:62
     205#: admin/views/dashboard.php:88
    148206#: includes/admin/class-filikod-media-alt-status.php:307
    149207msgid "Too short"
    150208msgstr ""
    151209
    152 #: admin/views/alt-audit.php:70
    153 #: admin/views/dashboard.php:115
     210#: admin/views/alt-audit.php:82
     211#: admin/views/dashboard.php:89
    154212#: includes/admin/class-filikod-media-alt-status.php:309
    155213msgid "Too long"
    156214msgstr ""
    157215
    158 #: admin/views/alt-audit.php:71
    159 #: admin/views/dashboard.php:119
     216#: admin/views/alt-audit.php:83
     217#: admin/views/dashboard.php:90
    160218#: includes/admin/class-filikod-media-alt-status.php:311
    161219msgid "Duplicated"
    162220msgstr ""
    163221
    164 #: admin/views/alt-audit.php:72
    165 #: admin/views/alt-audit.php:171
    166 #: admin/views/alt-audit.php:283
    167 #: admin/views/dashboard.php:123
     222#: admin/views/alt-audit.php:84
     223#: admin/views/alt-audit.php:230
     224#: admin/views/alt-audit.php:342
     225#: admin/views/dashboard.php:91
    168226#: includes/admin/class-filikod-media-alt-status.php:313
    169227msgid "Decorative"
    170228msgstr ""
    171229
    172 #: admin/views/alt-audit.php:76
     230#: admin/views/alt-audit.php:88
    173231msgid "Images without ALT text are less accessible and less well referenced. Add a short description of the image content. Purely decorative images can be marked as Decorative."
    174232msgstr ""
    175233
    176 #: admin/views/alt-audit.php:77
     234#: admin/views/alt-audit.php:89
    177235msgid "Generic ALTs (e.g. \"logo\", \"image\") do not describe the content. Prefer a specific description for each image."
    178236msgstr ""
    179237
    180 #: admin/views/alt-audit.php:78
     238#: admin/views/alt-audit.php:90
    181239msgid "ALT text that is too short (under 8 characters after normalization) provides little context for users or search engines."
    182240msgstr ""
    183241
    184 #: admin/views/alt-audit.php:81
    185 msgid "ALT text that is too long (over %d characters) is poorly read by screen readers and dilutes SEO signals. Aim for a concise description."
    186 msgstr ""
    187 
    188 #: admin/views/alt-audit.php:84
    189 msgid "Duplicated ALT often occurs with logos and decorative elements. When possible, differentiate each image with a unique description. Exact copies of the same file (see Filikod > Duplicates) sharing one ALT are not counted here."
    190 msgstr ""
    191 
    192 #: admin/views/alt-audit.php:85
     242#: admin/views/alt-audit.php:93
     243msgid "ALT text that is too long (over %d characters) is hard to follow: screen readers read it in full and listeners cannot go back inside it. Keep what the image shows and move credits, dates or details to the caption or the text around the image."
     244msgstr ""
     245
     246#: admin/views/alt-audit.php:96
     247msgid "Duplicated ALT often occurs with logos and decorative elements. When possible, differentiate each image with a unique description. Exact copies of the same file (see Media > Duplicate files) sharing one ALT are not counted here."
     248msgstr ""
     249
     250#: admin/views/alt-audit.php:97
    193251msgid "Decorative images are intentionally hidden from assistive technologies (alt=\"\"). They are excluded from the ALT score. Use this for icons, separators or purely visual elements that carry no information."
    194252msgstr ""
    195253
    196 #: admin/views/dashboard.php:104
    197 msgid "View images with missing ALT"
    198 msgstr ""
    199 
    200 #: admin/views/dashboard.php:108
    201 msgid "View images with generic ALT"
    202 msgstr ""
    203 
    204 #: admin/views/dashboard.php:112
    205 msgid "View images with too short ALT"
    206 msgstr ""
    207 
    208 #: admin/views/dashboard.php:116
    209 msgid "View images with too long ALT"
    210 msgstr ""
    211 
    212 #: admin/views/dashboard.php:120
    213 msgid "View images with duplicated ALT"
    214 msgstr ""
    215 
    216 #: admin/views/dashboard.php:124
    217 msgid "View decorative images (excluded from the ALT score)"
    218 msgstr ""
    219 
    220 #: admin/views/dashboard.php:131
    221 msgid "Media Size Savings"
     254#: admin/views/brand-bar.php:18
     255msgid "Breadcrumb"
     256msgstr ""
     257
     258#: admin/views/bulk.php:107
     259#: admin/views/duplicates.php:154
     260msgid "Important:"
     261msgstr ""
     262
     263#: admin/views/bulk.php:108
     264#: admin/views/duplicates.php:155
     265msgid "Please keep this page open until the process is complete. Do not navigate away or close this page."
     266msgstr ""
     267
     268#: admin/views/bulk.php:31
     269msgid "Taken from the image title or, failing that, from the file name. Existing ALT text is never changed."
     270msgstr ""
     271
     272#: admin/views/bulk.php:32
     273msgid "Writes an ALT text for each image that has none, from the image title or, when the title is empty, from the file name. Dashes, underscores and the file extension are removed. Existing ALT text is never changed. Images marked as decorative are skipped, and so are names that would only give a generic ALT such as \"IMG_1234\"."
     274msgstr ""
     275
     276#: admin/views/bulk.php:34
     277msgid "Fill the missing ALT text of your images from their titles or file names? Existing ALT text will not be changed."
     278msgstr ""
     279
     280#: admin/views/bulk.php:37
     281#: admin/views/dashboard.php:68
     282msgid "Clean ALT text taken from file names"
     283msgstr ""
     284
     285#: admin/views/bulk.php:38
     286msgid "\"my-photo_2024.jpg\" becomes \"my photo 2024\". ALT text written by hand keeps its punctuation."
     287msgstr ""
     288
     289#: admin/views/bulk.php:39
     290msgid "Removes dashes, underscores and file extensions from ALT text that comes from a file name: \"my-photo_2024.jpg\" becomes \"my photo 2024\". ALT text written by hand keeps its punctuation."
     291msgstr ""
     292
     293#: admin/views/bulk.php:40
     294msgid "Clean ALT text"
     295msgstr ""
     296
     297#: admin/views/bulk.php:41
     298msgid "Clean the ALT text taken from file names? ALT text written by hand keeps its punctuation."
     299msgstr ""
     300
     301#: admin/views/bulk.php:44
     302msgid "Clear image titles"
     303msgstr ""
     304
     305#: admin/views/bulk.php:45
     306msgid "Empties the Title field of every image. An image without ALT text first gets its title as ALT text. This cannot be undone."
     307msgstr ""
     308
     309#: admin/views/bulk.php:46
     310msgid "Empties the Title field of every image in the Media Library. WordPress fills it from the file name on upload, and some themes and galleries show it next to the image or as a tooltip. Before a title is cleared, an image without ALT text gets that title as its ALT text, so the title is never lost. Existing ALT text is never changed. This cannot be undone."
     311msgstr ""
     312
     313#: admin/views/bulk.php:47
     314msgid "Clear titles"
     315msgstr ""
     316
     317#: admin/views/bulk.php:48
     318msgid "Clear the title of every image in the Media Library? Images without ALT text first get their title as ALT text. This cannot be undone."
     319msgstr ""
     320
     321#: admin/views/bulk.php:51
     322#: admin/views/dashboard.php:312
     323#: admin/views/resize.php:15
     324#: includes/admin/class-filikod-admin.php:105
     325#: includes/admin/class-filikod-admin.php:106
     326msgid "Resize large images"
     327msgstr ""
     328
     329#: admin/views/bulk.php:52
     330msgid "Smaller images are left as they are. The resized file replaces the original, which cannot be undone."
     331msgstr ""
     332
     333#: admin/views/bulk.php:53
     334msgid "Reduces every image wider than the maximum width below, keeping its proportions. Smaller images are left as they are. The resized file replaces the original, so keep a backup of your uploads folder."
     335msgstr ""
     336
     337#: admin/views/bulk.php:54
     338msgid "Resize images"
     339msgstr ""
     340
     341#: admin/views/bulk.php:56
     342msgid "Resize every image wider than %d pixels? The resized files will replace the originals. This cannot be undone."
     343msgstr ""
     344
     345#: admin/views/bulk.php:81
     346msgid "Learn more"
     347msgstr ""
     348
     349#: admin/views/bulk.php:85
     350msgid "A title or a file name is a starting point, not a description. Check the result in Filikod > ALT Text afterwards."
     351msgstr ""
     352
     353#: admin/views/bulk.php:86
     354#: admin/views/dashboard.php:212
     355msgid "Open ALT Text"
     356msgstr ""
     357
     358#: admin/views/bulk.php:93
     359#: admin/views/settings.php:86
     360msgid "Maximum Image Width"
     361msgstr ""
     362
     363#: admin/views/bulk.php:95
     364#: admin/views/settings.php:101
     365msgid "pixels"
     366msgstr ""
     367
     368#: admin/views/dashboard-review.php:19
     369msgid "Close this message"
     370msgstr ""
     371
     372#: admin/views/dashboard-review.php:24
     373msgid "Is Filikod helping you?"
     374msgstr ""
     375
     376#: admin/views/dashboard-review.php:30
     377msgid "Filikod has checked %s image in your Media Library. A review on WordPress.org takes a minute and helps other sites find Filikod."
     378msgid_plural "Filikod has checked %s images in your Media Library. A review on WordPress.org takes a minute and helps other sites find Filikod."
     379msgstr[0] ""
     380msgstr[1] ""
     381
     382#: admin/views/dashboard-review.php:43
     383#: admin/views/dashboard-review.php:46
     384#: admin/views/dashboard.php:101
     385#: includes/admin/class-filikod-admin.php:286
     386msgid "(opens in a new tab)"
     387msgstr ""
     388
     389#: admin/views/dashboard-review.php:43
     390#: includes/admin/class-filikod-admin.php:284
     391msgid "Leave a review"
     392msgstr ""
     393
     394#: admin/views/dashboard-review.php:46
     395#: admin/views/dashboard.php:100
     396msgid "A problem? Ask on the support forum"
     397msgstr ""
     398
     399#: admin/views/dashboard-review.php:48
     400#: includes/admin/class-filikod-admin.php:285
     401msgid "Maybe later"
     402msgstr ""
     403
     404#: admin/views/dashboard-review.php:49
     405msgid "I already did"
     406msgstr ""
     407
     408#: admin/views/dashboard.php:126
     409msgid "Alt Text Health"
    222410msgstr ""
    223411
    224412#: admin/views/dashboard.php:134
    225 msgid "Resizing size impact"
     413msgid "ALT score: %d out of 100"
    226414msgstr ""
    227415
    228416#: admin/views/dashboard.php:140
    229 msgid "You saved %s"
    230 msgstr ""
    231 
    232 #: admin/views/dashboard.php:147
    233 msgid "Original"
    234 msgstr ""
    235 
    236 #: admin/views/dashboard.php:15
     417msgid "out of 100"
     418msgstr ""
     419
     420#: admin/views/dashboard.php:161
     421msgid "Add an image to start the check"
     422msgstr ""
     423
     424#: admin/views/dashboard.php:162
     425msgid "Filikod checks the ALT text of every image in your Media Library as soon as there is one."
     426msgstr ""
     427
     428#: admin/views/dashboard.php:169
     429msgid "%1$s image to fix out of %2$s"
     430msgid_plural "%1$s images to fix out of %2$s"
     431msgstr[0] ""
     432msgstr[1] ""
     433
     434#: admin/views/dashboard.php:176
     435msgid "Without a useful ALT text, a screen reader says nothing about these images, and neither does Google. You fix them in the list, without changing page."
     436msgstr ""
     437
     438#: admin/views/dashboard.php:186
     439msgid "%1$s: %2$s"
     440msgstr ""
     441
     442#: admin/views/dashboard.php:196
     443msgid "Fix these images"
     444msgstr ""
     445
     446#: admin/views/dashboard.php:204
     447msgid "%s image checked: its ALT text is usable"
     448msgid_plural "%s images checked: all have a usable ALT text"
     449msgstr[0] ""
     450msgstr[1] ""
     451
     452#: admin/views/dashboard.php:21
    237453#: admin/views/settings.php:15
    238 #: includes/dashboard/class-filikod-dashboard.php:161
    239 #: includes/dashboard/class-filikod-dashboard.php:168
    240 #: includes/dashboard/class-filikod-dashboard.php:202
    241 #: includes/dashboard/class-filikod-dashboard.php:209
    242 #: includes/duplicates/class-filikod-duplicates.php:1091
    243 #: includes/duplicates/class-filikod-duplicates.php:1104
     454#: includes/dashboard/class-filikod-dashboard.php:97
     455#: includes/dashboard/class-filikod-dashboard.php:241
     456#: includes/dashboard/class-filikod-dashboard.php:248
     457#: includes/dashboard/class-filikod-dashboard.php:282
     458#: includes/dashboard/class-filikod-dashboard.php:289
     459#: includes/duplicates/class-filikod-duplicates.php:1094
     460#: includes/duplicates/class-filikod-duplicates.php:1107
    244461#: includes/duplicates/class-filikod-visual-duplicates.php:742
    245 #: includes/settings/class-filikod-settings.php:253
    246 #: includes/settings/class-filikod-settings.php:275
    247 #: includes/settings/class-filikod-settings.php:321
    248 #: includes/settings/class-filikod-settings.php:343
     462#: includes/settings/class-filikod-settings.php:128
     463#: includes/settings/class-filikod-settings.php:324
     464#: includes/settings/class-filikod-settings.php:346
     465#: includes/settings/class-filikod-settings.php:402
     466#: includes/settings/class-filikod-settings.php:424
    249467msgid "Insufficient permissions."
    250468msgstr ""
    251469
    252 #: admin/views/dashboard.php:156
    253 msgid "Optimized"
    254 msgstr ""
    255 
    256 #: admin/views/dashboard.php:169
     470#: admin/views/dashboard.php:210
     471msgid "Nothing urgent to fix. New images are checked as soon as they are uploaded."
     472msgstr ""
     473
     474#: admin/views/dashboard.php:223
     475msgid "Next uploads"
     476msgstr ""
     477
     478#: admin/views/dashboard.php:228
     479msgid "Off"
     480msgstr ""
     481
     482#: admin/views/dashboard.php:228
     483msgid "On"
     484msgstr ""
     485
     486#: admin/views/dashboard.php:232
     487msgid "Change in Settings"
     488msgstr ""
     489
     490#: admin/views/dashboard.php:239
    257491msgid "Library Overview"
    258492msgstr ""
    259493
    260 #: admin/views/dashboard.php:173
     494#: admin/views/dashboard.php:243
    261495msgid "Total Images"
    262496msgstr ""
    263497
    264 #: admin/views/dashboard.php:177
     498#: admin/views/dashboard.php:247
    265499msgid "Total Media Size"
    266500msgstr ""
    267501
    268 #: admin/views/dashboard.php:181
     502#: admin/views/dashboard.php:251
    269503msgid "Average size per image"
    270504msgstr ""
    271505
    272 #: admin/views/dashboard.php:186
    273 msgid "View duplicate images"
    274 msgstr ""
    275 
    276 #: admin/views/dashboard.php:188
    277 #: admin/views/dashboard.php:201
     506#: admin/views/dashboard.php:258
     507#: admin/views/dashboard.php:271
    278508msgid "Duplicate images"
    279509msgstr ""
    280510
    281 #: admin/views/dashboard.php:193
     511#: admin/views/dashboard.php:263
    282512msgid "%1$s groups, %2$s wasted"
    283513msgstr ""
    284514
    285 #: admin/views/dashboard.php:203
     515#: admin/views/dashboard.php:273
    286516msgid "Scan the library to detect duplicates"
    287517msgstr ""
    288518
    289 #: admin/views/dashboard.php:57
    290 msgid "Welcome to Filikod"
    291 msgstr ""
    292 
    293 #: admin/views/dashboard.php:58
    294 msgid "Optimize your media files, improve accessibility and SEO for your visual content."
    295 msgstr ""
    296 
    297 #: admin/views/dashboard.php:61
    298 msgid "Go to Settings"
    299 msgstr ""
    300 
    301 #: admin/views/dashboard.php:70
    302 msgid "Alt Text Health"
    303 msgstr ""
    304 
    305 #: admin/views/dashboard.php:80
    306 msgid "ALT score gauge"
    307 msgstr ""
    308 
    309 #: admin/views/dashboard.php:90
    310 msgid "ALT Score"
     519#: admin/views/dashboard.php:282
     520msgid "Filikod tools"
     521msgstr ""
     522
     523#: admin/views/dashboard.php:287
     524msgid "Fill missing ALT text, clean ALT text taken from file names or clear image titles in one go."
     525msgstr ""
     526
     527#: admin/views/dashboard.php:288
     528#: admin/views/settings.php:274
     529msgid "Filikod > ALT Text > Bulk actions"
     530msgstr ""
     531
     532#: admin/views/dashboard.php:290
     533#: admin/views/dashboard.php:307
     534#: admin/views/dashboard.php:337
     535msgid "Open"
     536msgstr ""
     537
     538#: admin/views/dashboard.php:295
     539#: admin/views/duplicates.php:95
     540#: includes/admin/class-filikod-admin.php:95
     541#: includes/admin/class-filikod-admin.php:96
     542msgid "Duplicate files"
     543msgstr ""
     544
     545#: admin/views/dashboard.php:299
     546msgid "Find the files uploaded twice and free up space in your Media Library."
     547msgstr ""
     548
     549#: admin/views/dashboard.php:301
     550msgid "Scan your Media Library once to find the files uploaded twice."
     551msgstr ""
     552
     553#: admin/views/dashboard.php:305
     554msgid "Media > Duplicate files"
     555msgstr ""
     556
     557#: admin/views/dashboard.php:319
     558msgid "%1$s image is wider than %2$s px."
     559msgid_plural "%1$s images are wider than %2$s px."
     560msgstr[0] ""
     561msgstr[1] ""
     562
     563#: admin/views/dashboard.php:327
     564msgid "No image is wider than %s px."
     565msgstr ""
     566
     567#: admin/views/dashboard.php:331
     568msgid "Reduce the images that are wider than you need."
     569msgstr ""
     570
     571#: admin/views/dashboard.php:43
     572msgid "Good score"
     573msgstr ""
     574
     575#: admin/views/dashboard.php:45
     576msgid "Could be better"
     577msgstr ""
     578
     579#: admin/views/dashboard.php:47
     580msgid "Needs work"
     581msgstr ""
     582
     583#: admin/views/dashboard.php:67
     584msgid "Fill missing ALT text from the title or file name"
     585msgstr ""
     586
     587#: admin/views/dashboard.php:69
     588msgid "Clear the title, after using it as ALT text"
     589msgstr ""
     590
     591#: admin/views/dashboard.php:72
     592msgid "Resize images wider than %s px"
    311593msgstr ""
    312594
    … …  
    320602
    321603#: admin/views/duplicates-similar.php:125
    322 #: admin/views/duplicates.php:204
    323 #: admin/views/duplicates.php:348
     604#: admin/views/duplicates.php:208
     605#: admin/views/duplicates.php:352
    324606#: includes/duplicates/class-filikod-duplicates.php:248
    325607msgid "ID %d"
    … …  
    327609
    328610#: admin/views/duplicates-similar.php:156
    329 #: admin/views/duplicates.php:229
    330 #: admin/views/duplicates.php:378
     611#: admin/views/duplicates.php:233
     612#: admin/views/duplicates.php:382
    331613msgid "No ALT"
    332614msgstr ""
    333615
    334616#: admin/views/duplicates-similar.php:164
    335 #: admin/views/duplicates.php:233
    336 #: admin/views/duplicates.php:386
     617#: admin/views/duplicates.php:237
     618#: admin/views/duplicates.php:390
    337619msgid "Edit"
    338620msgstr ""
    339621
    340622#: admin/views/duplicates-similar.php:166
    341 #: admin/views/duplicates.php:235
    342 #: admin/views/duplicates.php:388
     623#: admin/views/duplicates.php:239
     624#: admin/views/duplicates.php:392
    343625msgid "Library"
    344626msgstr ""
    … …  
    362644
    363645#: admin/views/duplicates-similar.php:190
    364 #: admin/views/duplicates.php:412
     646#: admin/views/duplicates.php:416
    365647msgid "Page %1$d of %2$d (%3$d groups)"
    366648msgstr ""
    … …  
    410692msgstr ""
    411693
    412 #: admin/views/duplicates.php:107
     694#: admin/views/duplicates.php:103
     695msgid "Filikod fingerprints the original file of every image (md5) to find exact copies. New uploads are fingerprinted automatically; run the scan once for the images already in your library."
     696msgstr ""
     697
     698#: admin/views/duplicates.php:111
    413699msgid "%1$s of %2$s images fingerprinted."
    414700msgstr ""
    415701
    416 #: admin/views/duplicates.php:115
     702#: admin/views/duplicates.php:119
    417703msgid "%s images are still waiting. \"Scan library\" fingerprints them; \"Full rescan\" recomputes every fingerprint, useful after files were replaced outside WordPress."
    418704msgstr ""
    419705
    420 #: admin/views/duplicates.php:119
     706#: admin/views/duplicates.php:123
    421707msgid "Every image is fingerprinted. \"Full rescan\" recomputes every fingerprint, useful after files were replaced outside WordPress."
    422708msgstr ""
    423709
    424 #: admin/views/duplicates.php:125
     710#: admin/views/duplicates.php:129
    425711msgid "%s images have no file on disk (broken attachments) and cannot be fingerprinted."
    426712msgstr ""
    427713
    428 #: admin/views/duplicates.php:134
     714#: admin/views/duplicates.php:138
    429715msgid "%s images have no visual signature yet (Similar images tab): \"Scan library\" computes them."
    430716msgstr ""
    431717
    432 #: admin/views/duplicates.php:141
     718#: admin/views/duplicates.php:145
    433719msgid "Scan library"
    434720msgstr ""
    435721
    436 #: admin/views/duplicates.php:144
     722#: admin/views/duplicates.php:148
    437723msgid "Full rescan"
    438724msgstr ""
    439725
    440 #: admin/views/duplicates.php:150
    441 #: admin/views/settings.php:143
    442 #: admin/views/settings.php:294
    443 msgid "Important:"
    444 msgstr ""
    445 
    446 #: admin/views/duplicates.php:151
    447 #: admin/views/settings.php:144
    448 #: admin/views/settings.php:295
    449 msgid "Please keep this page open until the process is complete. Do not navigate away or close this page."
    450 msgstr ""
    451 
    452 #: admin/views/duplicates.php:166
     726#: admin/views/duplicates.php:168
     727msgid "Duplicates"
     728msgstr ""
     729
     730#: admin/views/duplicates.php:170
    453731msgid "Duplicated files"
    454732msgstr ""
    455733
    456 #: admin/views/duplicates.php:169
     734#: admin/views/duplicates.php:173
    457735msgid "Similar images"
    458736msgstr ""
    459737
    460 #: admin/views/duplicates.php:172
     738#: admin/views/duplicates.php:176
    461739msgid "Missing files"
    462740msgstr ""
    463741
    464 #: admin/views/duplicates.php:184
     742#: admin/views/duplicates.php:188
    465743msgid "Image attachments whose file could not be found on this server: the scan could not fingerprint them. They still appear in the Media Library and may be referenced in your content. If your media is offloaded to external storage (S3, CDN), these files are simply not fingerprinted and display normally. Otherwise they render as broken images: restore the file before deleting anything from the Media Library."
    466744msgstr ""
    467745
    468 #: admin/views/duplicates.php:187
     746#: admin/views/duplicates.php:191
    469747msgid "No missing file among the scanned images."
    470748msgstr ""
    471749
    472 #: admin/views/duplicates.php:193
     750#: admin/views/duplicates.php:197
    473751msgid "Expected file"
    474752msgstr ""
    475753
    476 #: admin/views/duplicates.php:279
     754#: admin/views/duplicates.php:283
    477755msgid "Exact copies of the same file (same md5 fingerprint) uploaded more than once. Nothing is deleted or merged: check where each copy is used, keep that one, and remove the others from the Media Library once you are sure."
    478756msgstr ""
    479757
    480 #: admin/views/duplicates.php:283
     758#: admin/views/duplicates.php:287
    481759msgid "Media linked as translations of each other (Polylang, WPML, Bogo) are intentional and never listed here."
    482760msgstr ""
    483761
    484 #: admin/views/duplicates.php:289
     762#: admin/views/duplicates.php:293
    485763msgid "No scan yet. Click \"Scan library\" above to fingerprint your images."
    486764msgstr ""
    487765
    488 #: admin/views/duplicates.php:291
     766#: admin/views/duplicates.php:295
    489767msgid "No duplicate images found among the fingerprinted files."
    490768msgstr ""
    491769
    492 #: admin/views/duplicates.php:297
     770#: admin/views/duplicates.php:301
    493771msgid "%1$s groups, %2$s redundant files, %3$s that could be freed by keeping a single copy per group."
    494772msgstr ""
    495773
    496 #: admin/views/duplicates.php:333
     774#: admin/views/duplicates.php:337
    497775msgid "Group %1$d: %2$d identical copies, %3$s could be freed"
    498776msgstr ""
    … …  
    515793msgstr ""
    516794
    517 #: admin/views/duplicates.php:94
    518 #: admin/views/duplicates.php:164
    519 #: includes/admin/class-filikod-admin.php:80
    520 msgid "Duplicates"
    521 msgstr ""
    522 
    523 #: admin/views/duplicates.php:99
    524 msgid "Filikod fingerprints the original file of every image (md5) to find exact copies. New uploads are fingerprinted automatically; run the scan once for the images already in your library."
    525 msgstr ""
    526 
    527 #: admin/views/settings.php:101
    528 msgid "pixels"
     795#: admin/views/resize.php:23
     796msgid "Reduce the images already in your Media Library that are wider than you need. Smaller files load faster."
     797msgstr ""
     798
     799#: admin/views/resize.php:27
     800msgid "To resize new uploads automatically, turn on Automatic Image Resizing in %s."
     801msgstr ""
     802
     803#: admin/views/resize.php:28
     804msgid "Filikod > Settings"
    529805msgstr ""
    530806
    … …  
    538814msgstr ""
    539815
    540 #: admin/views/settings.php:133
    541 msgid "You can process existing images by clicking the button below. This will resize all images in your media library that exceed the maximum width."
    542 msgstr ""
    543 
    544816#: admin/views/settings.php:136
    545 msgid "Resize Existing Images"
    546 msgstr ""
    547 
    548 #: admin/views/settings.php:161
    549 #: admin/views/settings.php:312
    550 #: admin/views/settings.php:376
     817msgid "Automatic options apply to new uploads. To resize the images already in your Media Library, use %s."
     818msgstr ""
     819
     820#: admin/views/settings.php:147
     821#: admin/views/settings.php:284
     822#: admin/views/settings.php:348
    551823msgid "Save Changes"
    552824msgstr ""
    553825
    554 #: admin/views/settings.php:169
     826#: admin/views/settings.php:155
    555827msgid "Configure automatic accessibility improvements for your images."
    556828msgstr ""
    557829
    558 #: admin/views/settings.php:179
    559 #: admin/views/settings.php:195
     830#: admin/views/settings.php:165
     831#: admin/views/settings.php:181
    560832msgid "Automatic ALT Text Generation"
    561833msgstr ""
    562834
    563 #: admin/views/settings.php:181
     835#: admin/views/settings.php:167
    564836msgid "Automatically generate alternative text (ALT) from the image filename. This will only apply to images that do not already have ALT text."
    565837msgstr ""
    566838
    567 #: admin/views/settings.php:204
    568 #: admin/views/settings.php:226
     839#: admin/views/settings.php:190
     840#: admin/views/settings.php:212
    569841msgid "Remove Title Attribute"
    570842msgstr ""
    571843
    572 #: admin/views/settings.php:206
     844#: admin/views/settings.php:192
    573845msgid "Automatically remove the title attribute from images. This improves accessibility and prevents redundant information."
    574846msgstr ""
    575847
    576 #: admin/views/settings.php:210
     848#: admin/views/settings.php:196
    577849msgid "Images with a title in your library:"
    578850msgstr ""
    579851
    580 #: admin/views/settings.php:212
    581 msgid "These titles are cleared when the option is enabled: automatically for new uploads, and for the existing library when you run Process Existing Images below."
     852#: admin/views/settings.php:198
     853msgid "When the option is enabled, titles are cleared on new uploads, after an image without ALT text has received its title as ALT text. To clear the titles already in your library, use Filikod > ALT Text > Bulk actions."
     854msgstr ""
     855
     856#: admin/views/settings.php:221
     857#: admin/views/settings.php:237
     858msgid "Remove Special Characters from ALT Text"
     859msgstr ""
     860
     861#: admin/views/settings.php:223
     862msgid "Clean ALT text inherited from file names: dashes, underscores and dots become spaces (my-photo_2024.jpg becomes \"my photo 2024\"). Hand-written ALT text keeps its punctuation; only technical characters (slash, backslash, brackets, symbols) are removed. Applies to new uploads."
    582863msgstr ""
    583864
    584865#: admin/views/settings.php:23
    585 #: admin/views/settings.php:168
     866#: admin/views/settings.php:154
    586867msgid "Accessibility / SEO"
    587 msgstr ""
    588 
    589 #: admin/views/settings.php:235
    590 #: admin/views/settings.php:251
    591 msgid "Remove Special Characters from ALT Text"
    592 msgstr ""
    593 
    594 #: admin/views/settings.php:237
    595 msgid "Clean ALT text inherited from file names: dashes, underscores and dots become spaces (my-photo_2024.jpg becomes \"my photo 2024\"). Hand-written ALT text keeps its punctuation; only technical characters (slash, backslash, brackets, symbols) are removed. This applies to existing and future images."
    596868msgstr ""
    597869
    … …  
    600872msgstr ""
    601873
     874#: admin/views/settings.php:246
     875#: admin/views/settings.php:262
     876msgid "Hide ALT badges on Media Library thumbnails"
     877msgstr ""
     878
     879#: admin/views/settings.php:248
     880msgid "Hides the ALT status badges shown on thumbnails in the Media Library grid. Badges stay visible in the list view and in the attachment details."
     881msgstr ""
     882
    602883#: admin/views/settings.php:25
    603884msgid "File types"
    … …  
    608889msgstr ""
    609890
    610 #: admin/views/settings.php:260
    611 #: admin/views/settings.php:276
    612 msgid "Hide ALT badges on Media Library thumbnails"
    613 msgstr ""
    614 
    615 #: admin/views/settings.php:262
    616 msgid "Hides the ALT status badges shown on thumbnails in the Media Library grid. Badges stay visible in the list view and in the attachment details."
    617 msgstr ""
    618 
    619 #: admin/views/settings.php:284
    620 msgid "You can process existing images by clicking the button below. This will apply the selected options to all images in your media library."
    621 msgstr ""
    622 
    623 #: admin/views/settings.php:287
    624 msgid "Process Existing Images"
    625 msgstr ""
    626 
    627 #: admin/views/settings.php:319
     891#: admin/views/settings.php:273
     892msgid "Automatic options apply to new uploads. To process the images already in your Media Library, use %s."
     893msgstr ""
     894
     895#: admin/views/settings.php:291
    628896msgid "Authorized File Types"
    629897msgstr ""
    630898
    631 #: admin/views/settings.php:345
     899#: admin/views/settings.php:317
    632900msgid "SVG XML will be automatically filtered for security"
    633901msgstr ""
    634902
    635 #: admin/views/settings.php:385
     903#: admin/views/settings.php:357
    636904msgid "Filikod Pro is in preparation"
    637905msgstr ""
    638906
    639 #: admin/views/settings.php:386
     907#: admin/views/settings.php:358
    640908msgid "Filikod stays a checker: no AI, no credits, no external API. The Pro version will extend the audit, not replace your judgement."
    641909msgstr ""
    642910
    643 #: admin/views/settings.php:388
     911#: admin/views/settings.php:360
    644912msgid "Scheduled audits with an e-mail report when the score drops."
    645913msgstr ""
    646914
    647 #: admin/views/settings.php:389
     915#: admin/views/settings.php:361
    648916msgid "Alt text audit of published content, not only of the media library."
    649917msgstr ""
    650918
    651 #: admin/views/settings.php:390
     919#: admin/views/settings.php:362
    652920msgid "Exportable reports (CSV, PDF) for clients and accessibility reviews (WCAG 2.1 success criterion 1.1.1)."
    653921msgstr ""
    654922
    655 #: admin/views/settings.php:391
     923#: admin/views/settings.php:363
    656924msgid "Custom rules: thresholds, generic terms per language, exclusions."
    657925msgstr ""
    658926
    659 #: admin/views/settings.php:394
     927#: admin/views/settings.php:366
    660928msgid "Tell us which feature you need first"
    661929msgstr ""
    … …  
    678946msgstr ""
    679947
    680 #: admin/views/settings.php:86
    681 msgid "Maximum Image Width"
    682 msgstr ""
    683 
    684948#: admin/views/settings.php:88
    685949msgid "Define the maximum width in pixels for uploaded images. Images larger than this width will be automatically resized while maintaining their aspect ratio. Recommended: 2000px for most websites."
    686950msgstr ""
    687951
    688 #: filikod.php:261
     952#: filikod.php:273
    689953msgid "Filikod requires WordPress 5.8 or higher."
    690954msgstr ""
    691955
    692 #: filikod.php:271
     956#: filikod.php:283
    693957msgid "Filikod requires PHP 7.4 or higher."
    694958msgstr ""
    695959
    696 #: includes/admin/class-filikod-admin.php:141
     960#: includes/admin/class-filikod-admin.php:192
     961msgid "Open Filikod"
     962msgstr ""
     963
     964#: includes/admin/class-filikod-admin.php:238
    697965msgid "Settings saved successfully!"
    698966msgstr ""
    699967
    700 #: includes/admin/class-filikod-admin.php:142
     968#: includes/admin/class-filikod-admin.php:239
    701969msgid "Error saving settings."
    702970msgstr ""
    703971
    704 #: includes/admin/class-filikod-admin.php:143
     972#: includes/admin/class-filikod-admin.php:240
    705973msgid "Processing..."
    706974msgstr ""
    707975
    708 #: includes/admin/class-filikod-admin.php:144
     976#: includes/admin/class-filikod-admin.php:241
     977#: includes/dashboard/class-filikod-dashboard.php:109
    709978#: includes/duplicates/class-filikod-visual-duplicates.php:750
    710979msgid "An error occurred."
    711980msgstr ""
    712981
    713 #: includes/admin/class-filikod-admin.php:145
     982#: includes/admin/class-filikod-admin.php:242
    714983msgid "An error occurred during processing."
    715984msgstr ""
    716985
    717 #: includes/admin/class-filikod-admin.php:146
     986#: includes/admin/class-filikod-admin.php:243
    718987msgid "Starting processing..."
    719988msgstr ""
    720989
    721 #: includes/admin/class-filikod-admin.php:147
     990#: includes/admin/class-filikod-admin.php:244
    722991msgid "images resized"
    723992msgstr ""
    724993
    725 #: includes/admin/class-filikod-admin.php:148
     994#: includes/admin/class-filikod-admin.php:245
    726995msgid "image resized"
    727996msgstr ""
    728997
    729 #: includes/admin/class-filikod-admin.php:149
     998#: includes/admin/class-filikod-admin.php:246
    730999msgid "ignored"
    7311000msgstr ""
    7321001
    733 #: includes/admin/class-filikod-admin.php:150
     1002#: includes/admin/class-filikod-admin.php:247
    7341003msgid "saved"
    7351004msgstr ""
    7361005
    737 #: includes/admin/class-filikod-admin.php:152
     1006#: includes/admin/class-filikod-admin.php:249
    7381007msgid "Resize complete: %1$d images resized, %2$d ignored. Space saved: %3$s"
    7391008msgstr ""
    7401009
    741 #: includes/admin/class-filikod-admin.php:153
     1010#: includes/admin/class-filikod-admin.php:250
    7421011msgid "Unable to retrieve image count"
    7431012msgstr ""
    7441013
    745 #: includes/admin/class-filikod-admin.php:154
     1014#: includes/admin/class-filikod-admin.php:251
    7461015msgid "Error retrieving image count"
    7471016msgstr ""
    7481017
    749 #: includes/admin/class-filikod-admin.php:155
     1018#: includes/admin/class-filikod-admin.php:252
    7501019msgid "image processed"
    7511020msgstr ""
    7521021
    753 #: includes/admin/class-filikod-admin.php:156
     1022#: includes/admin/class-filikod-admin.php:253
    7541023msgid "images processed"
    7551024msgstr ""
    7561025
    757 #: includes/admin/class-filikod-admin.php:157
    758 #: includes/admin/class-filikod-admin.php:158
     1026#: includes/admin/class-filikod-admin.php:254
     1027#: includes/admin/class-filikod-admin.php:255
    7591028msgid "skipped"
    7601029msgstr ""
    7611030
    762 #: includes/admin/class-filikod-admin.php:160
     1031#: includes/admin/class-filikod-admin.php:257
    7631032msgid "Processing complete: %1$d images processed, %2$d skipped."
    7641033msgstr ""
    7651034
    766 #: includes/admin/class-filikod-admin.php:161
     1035#: includes/admin/class-filikod-admin.php:258
     1036#: includes/settings/class-filikod-settings.php:443
     1037msgid "Enter a width between 100 and 10,000 pixels."
     1038msgstr ""
     1039
     1040#: includes/admin/class-filikod-admin.php:260
     1041msgid "ALT text written: %1$d. Images left without ALT: %2$d, because their title or file name is too generic (for example \"IMG_1234\" or \"logo-company\")."
     1042msgstr ""
     1043
     1044#: includes/admin/class-filikod-admin.php:262
     1045msgid "ALT text written: %d. No image is left without ALT."
     1046msgstr ""
     1047
     1048#: includes/admin/class-filikod-admin.php:264
     1049msgid "ALT text cleaned: %d."
     1050msgstr ""
     1051
     1052#: includes/admin/class-filikod-admin.php:266
     1053msgid "Titles cleared: %d."
     1054msgstr ""
     1055
     1056#: includes/admin/class-filikod-admin.php:267
     1057msgid "Write them in ALT Text"
     1058msgstr ""
     1059
     1060#: includes/admin/class-filikod-admin.php:268
    7671061msgid "Saved."
    7681062msgstr ""
    7691063
    770 #: includes/admin/class-filikod-admin.php:162
     1064#: includes/admin/class-filikod-admin.php:269
    7711065msgid "Error saving ALT."
    7721066msgstr ""
    7731067
    774 #: includes/admin/class-filikod-admin.php:163
     1068#: includes/admin/class-filikod-admin.php:270
    7751069msgid "Marked as decorative (excluded from the ALT score)."
    7761070msgstr ""
    7771071
    778 #: includes/admin/class-filikod-admin.php:164
     1072#: includes/admin/class-filikod-admin.php:271
    7791073msgid "Image restored as a regular image, please add an ALT text."
    7801074msgstr ""
    7811075
    782 #: includes/admin/class-filikod-admin.php:166
     1076#: includes/admin/class-filikod-admin.php:273
    7831077msgid "%1$d fingerprinted, %2$d skipped (%3$d%%)"
    7841078msgstr ""
    7851079
    786 #: includes/admin/class-filikod-admin.php:168
     1080#: includes/admin/class-filikod-admin.php:275
    7871081msgid "Scan complete: %1$d images fingerprinted, %2$d duplicate groups found (%3$d redundant files). Reloading..."
    7881082msgstr ""
    7891083
    790 #: includes/admin/class-filikod-admin.php:46
     1084#: includes/admin/class-filikod-admin.php:283
     1085msgid "Did Filikod save you time? A review on WordPress.org helps other sites find it."
     1086msgstr ""
     1087
     1088#: includes/admin/class-filikod-admin.php:50
    7911089msgid "Filikod"
    7921090msgstr ""
    7931091
    794 #: includes/admin/class-filikod-admin.php:58
    795 #: includes/admin/class-filikod-admin.php:59
     1092#: includes/admin/class-filikod-admin.php:62
     1093#: includes/admin/class-filikod-admin.php:63
    7961094msgid "Dashboard"
    7971095msgstr ""
    7981096
    799 #: includes/admin/class-filikod-admin.php:79
    800 msgid "Duplicate Images"
    801 msgstr ""
    802 
    803 #: includes/admin/class-filikod-admin.php:89
    804 #: includes/admin/class-filikod-admin.php:90
     1097#: includes/admin/class-filikod-admin.php:83
     1098#: includes/admin/class-filikod-admin.php:84
    8051099msgid "Settings"
    8061100msgstr ""
    … …  
    8121106
    8131107#: includes/admin/class-filikod-media-alt-status.php:229
    814 #: includes/dashboard/class-filikod-dashboard.php:165
    815 #: includes/dashboard/class-filikod-dashboard.php:206
     1108#: includes/dashboard/class-filikod-dashboard.php:245
     1109#: includes/dashboard/class-filikod-dashboard.php:286
    8161110msgid "Invalid attachment."
    8171111msgstr ""
    … …  
    8431137
    8441138#: includes/admin/class-filikod-media-alt-status.php:345
    845 msgid "ALT text exceeds %d characters. Long ALTs are poorly read by screen readers and dilute SEO signals. Aim for a concise description."
     1139msgid "ALT text exceeds %d characters. A long ALT is hard to follow: screen readers read it in full and listeners cannot go back inside it. Keep what the image shows and move credits, dates or details to the caption or the text around the image."
    8461140msgstr ""
    8471141
    … …  
    8601154
    8611155#: includes/admin/class-filikod-media-alt-status.php:407
    862 msgid "Exact copy of an image already in the library (same file fingerprint). See Filikod > Duplicates."
     1156msgid "Exact copy of an image already in the library (same file fingerprint). See Media > Duplicate files."
    8631157msgstr ""
    8641158
    … …  
    8731167msgstr ""
    8741168
    875 #: includes/class-filikod-media-utils.php:78
     1169#: includes/class-filikod-media-utils.php:165
    8761170msgid "bytes"
    8771171msgstr ""
    8781172
    879 #: includes/dashboard/class-filikod-dashboard.php:148
    880 #: includes/dashboard/class-filikod-dashboard.php:237
    881 #: includes/duplicates/class-filikod-duplicates.php:1415
    882 #: includes/settings/class-filikod-settings.php:90
     1173#: includes/dashboard/class-filikod-dashboard.php:100
     1174#: includes/duplicates/class-filikod-duplicates.php:1097
     1175#: includes/duplicates/class-filikod-duplicates.php:1110
     1176#: includes/duplicates/class-filikod-visual-duplicates.php:745
     1177#: includes/settings/class-filikod-settings.php:131
     1178#: includes/settings/class-filikod-settings.php:329
     1179#: includes/settings/class-filikod-settings.php:351
     1180#: includes/settings/class-filikod-settings.php:407
     1181#: includes/settings/class-filikod-settings.php:429
     1182msgid "Security check failed."
     1183msgstr ""
     1184
     1185#: includes/dashboard/class-filikod-dashboard.php:228
     1186#: includes/dashboard/class-filikod-dashboard.php:317
     1187#: includes/duplicates/class-filikod-duplicates.php:1419
     1188#: includes/settings/class-filikod-settings.php:150
     1189#: includes/settings/class-filikod-settings.php:161
    8831190msgid "You do not have sufficient permissions to access this page."
    8841191msgstr ""
    8851192
    886 #: includes/dashboard/class-filikod-dashboard.php:213
     1193#: includes/dashboard/class-filikod-dashboard.php:293
    8871194msgid "Audit module unavailable."
    8881195msgstr ""
    8891196
    890 #: includes/dashboard/class-filikod-dashboard.php:217
     1197#: includes/dashboard/class-filikod-dashboard.php:297
    8911198msgid "Unable to update decorative state."
    892 msgstr ""
    893 
    894 #: includes/duplicates/class-filikod-duplicates.php:1094
    895 #: includes/duplicates/class-filikod-duplicates.php:1107
    896 #: includes/duplicates/class-filikod-visual-duplicates.php:745
    897 #: includes/settings/class-filikod-settings.php:258
    898 #: includes/settings/class-filikod-settings.php:280
    899 #: includes/settings/class-filikod-settings.php:326
    900 #: includes/settings/class-filikod-settings.php:348
    901 msgid "Security check failed."
    9021199msgstr ""
    9031200
    … …  
    9171214
    9181215#: includes/duplicates/class-filikod-duplicates.php:264
    919 msgid "Review and clean up in Filikod > Duplicates"
     1216msgid "Review and clean up in Media > Duplicate files"
    9201217msgstr ""
    9211218
    … …  
    9291226
    9301227#: includes/duplicates/class-filikod-duplicates.php:310
    931 msgid "Review in Filikod > Duplicates"
     1228msgid "Review in Media > Duplicate files"
    9321229msgstr ""
    9331230
    … …  
    10141311msgstr ""
    10151312
    1016 #: includes/settings/class-filikod-settings.php:141
     1313#: includes/settings/class-filikod-settings.php:106
     1314msgid "image in your Media Library"
     1315msgid_plural "images in your Media Library"
     1316msgstr[0] ""
     1317msgstr[1] ""
     1318
     1319#: includes/settings/class-filikod-settings.php:110
     1320msgid "image wider than %s px"
     1321msgid_plural "images wider than %s px"
     1322msgstr[0] ""
     1323msgstr[1] ""
     1324
     1325#: includes/settings/class-filikod-settings.php:116
     1326msgid "image without ALT text"
     1327msgid_plural "images without ALT text"
     1328msgstr[0] ""
     1329msgstr[1] ""
     1330
     1331#: includes/settings/class-filikod-settings.php:117
     1332msgid "ALT text to clean"
     1333msgid_plural "ALT texts to clean"
     1334msgstr[0] ""
     1335msgstr[1] ""
     1336
     1337#: includes/settings/class-filikod-settings.php:118
     1338msgid "image with a title"
     1339msgid_plural "images with a title"
     1340msgstr[0] ""
     1341msgstr[1] ""
     1342
     1343#: includes/settings/class-filikod-settings.php:212
    10171344msgid "File types saved successfully!"
    10181345msgstr ""
    10191346
    1020 #: includes/settings/class-filikod-settings.php:187
     1347#: includes/settings/class-filikod-settings.php:258
    10211348msgid "Accessibility settings saved successfully!"
    10221349msgstr ""
    10231350
    1024 #: includes/settings/class-filikod-settings.php:232
     1351#: includes/settings/class-filikod-settings.php:303
    10251352msgid "Maximum image width must be between 100 and 10000 pixels. Value was not saved."
    10261353msgstr ""
    10271354
    1028 #: includes/settings/class-filikod-settings.php:242
     1355#: includes/settings/class-filikod-settings.php:313
    10291356msgid "Optimization settings saved successfully!"
    10301357msgstr ""
     1358
     1359#: includes/settings/class-filikod-settings.php:366
     1360msgid "Unknown task."
     1361msgstr ""
  • filikod/trunk/readme.txt

    r3763820 r3833014  
    66Tested up to: 7.1
    77Requires PHP: 7.4
    8 Stable tag: 1.3.0
     8Stable tag: 1.4.0
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
    1111
    12 Free alt text checker for WordPress: find missing, generic or duplicate image alt text, get an ALT Quality Score (0-100%) and fix it all in bulk.
     12Free alt text checker for WordPress accessibility (WCAG 1.1.1): find missing, generic or duplicate image alt text, score it and fix it all in bulk.
    1313
    1414== Description ==
    … …  
    8888* Save instantly without leaving the page
    8989* Fix missing alt text on dozens or hundreds of images in minutes
     90* Fill missing ALT from image titles or file names, clean ALT taken from file names, clear image titles or resize large images in one click from **Filikod > ALT Text > Bulk actions** (large images: **Tools > Resize large images**)
    9091
    9192Built for real media libraries with thousands of images, not tidy demos with five.
    … …  
    105106The same logo uploaded three times, the same photo dropped into two pages by two editors: exact copies pile up in every real media library, waste disk space and split your ALT work across files.
    106107
    107 Filikod fingerprints the original file of every image (md5, computed on upload and back-filled for your existing library by a batched scan) and lists every group of identical copies in **Filikod > Duplicates**:
     108Filikod fingerprints the original file of every image (md5, computed on upload and back-filled for your existing library by a batched scan) and lists every group of identical copies in **Media > Duplicate files** (a Filikod screen, also reachable from the Filikod Dashboard):
    108109
    109110* One row per copy with thumbnail, file name, ID, dimensions, size, upload date, **Context** (where it is used) and ALT text
    … …  
    115116Multilingual sites are handled. Media linked as translations of each other by **Polylang**, **WPML** (Media Translation) or **Bogo**, one attachment per language for the same file, are intentional and never reported as duplicates; unlinked copies are listed with their language so you can link them or keep one. **Weglot**, **GTranslate** and **TranslatePress** translate on the fly and never duplicate media, **WPGlobus** keeps every language in the same post, and **MultilingualPress** uses one media library per site, each scanned on its own: nothing to configure with them.
    116117
    117 **Similar images.** The same photo is often uploaded twice as two different files: re-exported, compressed or renamed. Filikod gives every image a small visual signature, computed once on your server from a thumbnail WordPress already made (no AI, no external service), and lists look-alike images of the same dimensions in **Filikod > Duplicates > Similar images**. A banner and its smaller version are never listed. On multilingual sites, look-alikes uploaded in two different languages, such as a map with French labels and the same map in English, are language versions: they are listed apart and hidden by default. Any group can be marked as intentional.
     118**Similar images.** The same photo is often uploaded twice as two different files: re-exported, compressed or renamed. Filikod gives every image a small visual signature, computed once on your server from a thumbnail WordPress already made (no AI, no external service), and lists look-alike images of the same dimensions in **Media > Duplicate files > Similar images**. A banner and its smaller version are never listed. On multilingual sites, look-alikes uploaded in two different languages, such as a map with French labels and the same map in English, are language versions: they are listed apart and hidden by default. Any group can be marked as intentional.
    118119
    119120Once the library is scanned, every copy carries a red **Duplicate file** badge in the Media Library grid and a **Duplicate** warning in the attachment details listing every copy of the group, with a link to the Duplicates page. The **Duplicate Upload Alert** (on by default, switch in Settings > Optimizations) adds a notice in the uploader the moment you upload a copy of an existing image. Nothing is blocked.
    120121
    121 Bonus for the ALT Audit: identical files sharing the same ALT text are no longer reported as **Duplicated ALT**, and neither are the language versions of one media created by WPML, Polylang or Bogo. That was never an ALT problem, it was a duplicate file or a translation.
     122Bonus for the ALT audit: identical files sharing the same ALT text are no longer reported as **Duplicated ALT**, and neither are the language versions of one media created by WPML, Polylang or Bogo. That was never an ALT problem, it was a duplicate file or a translation.
    122123
    123124---
    … …  
    144145* Bulk process your entire existing media library in one click
    145146
    146 Execution order is always enforced: generate ALT from filename, clean special characters, then remove title. Predictable. Consistent. Always yours to control.
     147Execution order is always enforced: generate ALT (from the title, then the file name), clean special characters, then remove the title. A title is never cleared before it has become the ALT text of an image that had none. Predictable. Consistent. Always yours to control.
    147148
    148149---
    … …  
    176177* Compatible with Elementor, Divi, Gutenberg, WPBakery and most major page builders
    177178* Single site and multisite supported
    178 * Multilingual: Polylang, WPML, Bogo (translation links respected by the duplicate detection, language column in the ALT Audit), Weglot, GTranslate, TranslatePress, MultilingualPress
     179* Multilingual: Polylang, WPML, Bogo (translation links respected by the duplicate detection, language column in Filikod > ALT Text), Weglot, GTranslate, TranslatePress, MultilingualPress
    179180* WPGlobus and qTranslate-XT: ALT text written in several languages is audited language by language, and an ALT left empty in one language is reported
    180181* No external services required, runs entirely inside WordPress
    … …  
    1891902. Activate Filikod
    1901913. Go to **Filikod > Dashboard** to see your ALT Quality Score
    191 4. Go to **Filikod > ALT Audit** to find and fix issues by type
     1924. Go to **Filikod > ALT Text** to find and fix issues by type
    1921935. Open **Media > Library** to see **ALT Status** in list or grid view, and in each image's attachment details
    1931946. Configure optional automation in **Filikod > Settings**
    … …  
    199200= How do I check alt text in WordPress? =
    200201
    201 Install Filikod and open **Filikod > ALT Audit**. It checks every image in your media library and flags the ones whose alt text is missing or empty, generic, too short, too long or duplicated, each in its own tab. Fix them one by one inline, or in bulk by issue type. The **Filikod > Dashboard** sums it up in a single ALT Quality Score. To check a single public page without installing anything, use the free online checker at [filikod.com/alt-text-checker](https://filikod.com/alt-text-checker/).
     202Install Filikod and open **Filikod > ALT Text**. It checks every image in your media library and flags the ones whose alt text is missing or empty, generic, too short, too long or duplicated, each in its own tab. Fix them one by one inline, or in bulk by issue type. The **Filikod > Dashboard** sums it up in a single ALT Quality Score. To check a single public page without installing anything, use the free online checker at [filikod.com/alt-text-checker](https://filikod.com/alt-text-checker/).
    202203
    203204= Is Filikod an alt text checker or an alt text generator? =
    204205
    205 A checker first. Filikod audits the alt text that already exists in your media library and scores it. It never sends your images to an external AI service and never invents descriptions behind your back. An optional, local filename-based setting (off by default) can fill a starting ALT for images that have none, and you then review it in the ALT Audit like any other ALT text.
     206A checker first. Filikod audits the alt text that already exists in your media library and scores it. It never sends your images to an external AI service and never invents descriptions behind your back. An optional, local filename-based setting (off by default) can fill a starting ALT for images that have none, and you then review it in Filikod > ALT Text like any other ALT text.
    206207
    207208= Does Filikod make my site WCAG, ADA or EAA compliant? =
    … …  
    223224= Does it work on images already in my media library? =
    224225
    225 Yes. Filikod scans and processes your entire existing media library, including images uploaded before installation. You can run a bulk process from the Settings page at any time.
     226Yes. Filikod scans and processes your entire existing media library, including images uploaded before installation. Run a bulk process at any time from **Filikod > ALT Text > Bulk actions**, also linked from the Missing tab.
    226227
    227228= Does Filikod modify my image files? =
    … …  
    237238= Can I bulk edit ALT text? =
    238239
    239 Yes. The ALT Audit page lets you filter images by issue type (missing, generic, short, duplicated) and edit ALT text inline. Changes save instantly without reloading the page.
     240Yes. The Filikod > ALT Text screen lets you filter images by issue type (missing, generic, short, duplicated) and edit ALT text inline. Changes save instantly without reloading the page.
    240241
    241242= Is it compatible with Elementor, Divi, WPBakery, and Gutenberg? =
    … …  
    245246= Does Filikod detect duplicate images? =
    246247
    247 Yes. Filikod > Duplicates lists every group of identical files (same md5 fingerprint) with thumbnail, size, upload date, usage context and ALT text, and flags the oldest copy. Run "Scan library" once to fingerprint your existing images; new uploads are fingerprinted automatically. Filikod only detects: it never deletes or merges files, you clean up from the Media Library when you are sure. Resized or re-encoded variants of a picture are different files and are not reported as duplicates. An optional Duplicate Upload Alert (Settings > Optimizations) warns you right after uploading a copy of an existing image.
     248Yes. Media > Duplicate files (a Filikod screen) lists every group of identical files (same md5 fingerprint) with thumbnail, size, upload date, usage context and ALT text, and flags the oldest copy. Run "Scan library" once to fingerprint your existing images; new uploads are fingerprinted automatically. Filikod only detects: it never deletes or merges files, you clean up from the Media Library when you are sure. Resized or re-encoded variants of a picture are different files and are not reported as duplicates. An optional Duplicate Upload Alert (Settings > Optimizations) warns you right after uploading a copy of an existing image.
    248249
    249250= Does it work on multisite installations? =
    … …  
    264265
    2652661. **Dashboard**: ALT Quality Score (0–100%) with donut gauge and legend, issue counts (missing, generic, too short, **too long**, duplicated, **decorative**), optional **Media Size Savings** impact, and **Library Overview** (total images, total size, average size). Optional automation toggles summarized on the side.
    266 2. **ALT Audit**: Filter tabs for Missing, Generic, Too short, **Too long**, Duplicated, and **Decorative**; table with thumbnail, filename, **Context** (where the image is used), editable **ALT** field, issue label, a dedicated **Decorative** column with a toggle switch (auto-saved), and a per-row **Save** action. Duplicated ALT grouped for fast fixes.
    267 3. **Settings: Accessibility / SEO**: Toggles for automatic ALT from filename, optional title-attribute removal, and special-character cleanup; **Process Existing Images** for bulk apply; **Save Changes**.
     2672. **ALT Text**: Filter tabs for Missing, Generic, Too short, **Too long**, Duplicated, and **Decorative**; table with thumbnail, filename, **Context** (where the image is used), editable **ALT** field, issue label, a dedicated **Decorative** column with a toggle switch (auto-saved), and a per-row **Save** action. Duplicated ALT grouped for fast fixes.
     2683. **Settings: Accessibility / SEO**: Toggles for automatic ALT from filename, optional title-attribute removal and special-character cleanup on new uploads; **Save Changes**.
    2682694. **Attachment details**: Native media modal/sidebar with **Alternative Text** and Filikod **ALT Status** (e.g. green **Alt: OK** when rules pass), so you see health next to the field while you edit.
    2692705. **Media Library (grid)**: Thumbnails with **ALT Status** badges (e.g. **Alt: OK** on qualifying images) for a quick scan of library-wide ALT health.
    … …  
    272273
    273274== Changelog ==
     275
     276= 1.4.0 =
     277* **Security fix**: ALT text is now always read as plain text on the Media Library screens. Updating is recommended.
     278* **New – a simpler menu**: Filikod now has three entries: **Dashboard**, **ALT Text** (formerly ALT Audit) and **Settings**. Duplicates moved to **Media > Duplicate files** and resizing the images already in your library moved to **Tools > Resize large images**, where WordPress keeps this kind of screen. Both carry a small "Filikod" tag in the menu, a "Filikod ›" breadcrumb and a shortcut on the Filikod Dashboard. Old addresses redirect to the new screens.
     279* **New – Bulk actions tab in ALT Text**: filling missing ALT text, cleaning ALT taken from file names and clearing image titles each have their own card in **Filikod > ALT Text > Bulk actions**, with the number of images concerned. Each task runs on its own: you no longer need to switch an option on in Settings first. Settings now only decide what happens to new uploads, and the "Process Existing Images" and "Resize Existing Images" buttons left the Settings. Filling missing ALT from Bulk actions always removes dashes, underscores and file extensions. Clearing titles cannot be undone, so its button is an outline button.
     280* **Change – a title is never lost when titles are cleared**: before Filikod clears an image title (Bulk actions, or on upload when "Remove Title Attribute" is on), an image without ALT text first gets that title as its ALT text. Existing ALT text is never changed.
     281* **New – Dashboard**: the ALT health card shows the score out of 100 in words ("Good score") and every check with its count (missing, generic, too short, too long, repeated, decorative), next to what to fix ("4 images to fix out of 420") with one main button to the list. Then what happens to your next uploads, the Media Library overview (number of images, total and average size, duplicates), shortcuts to every Filikod tool and a link to the support forum.
     282* **New – review invitation**: a compact banner at the top of the Filikod Dashboard shows how many images Filikod has checked and invites you to rate Filikod on WordPress.org, with a link to the support forum right next to it. It only appears after a few days of use, can be closed for good ("I already did") or for 30 days ("Maybe later"), never shows anywhere else in the admin and never offers anything in exchange. When a bulk action has just finished, its result message can also carry a short invitation, under the same rules.
     283* **Improved – ALT Text opens on the first tab that has images**, instead of an empty Missing tab, and an empty tab now says what is right ("Every image has an ALT text.").
     284* **Fix – clearer help for long ALT text**: the "Too long" explanation in ALT Text and on the Media Library badges now says what really happens. Screen readers read a long ALT in full, but listeners cannot go back inside it, so credits, dates and details belong in the caption or in the text around the image.
     285* **New – "Open Filikod" link** under the plugin name in the Plugins list.
     286* **Accessibility – visible keyboard focus** on the tabs of the Filikod screens.
     287* **French translation**: punctuation now follows the rules of the WordPress French translation team (non-breaking spaces, French quotation marks), and the words are clearer ("Répété" for an ALT text shared by several images, "Fichiers en double", "Téléversé sur"). File sizes now use the units of your WordPress language ("Mo" and "Ko" in French).
    274288
    275289= 1.3.0 =
    … …  
    421435== Upgrade Notice ==
    422436
     437= 1.4.0 =
     438Security fix: ALT text is now always read as plain text on Media Library screens. Updating is recommended. Also: a simpler menu (Dashboard, ALT Text, Settings), duplicate files in Media, resizing in Tools and a new Dashboard.
     439
    423440= 1.3.0 =
    424441New Similar images tab (no AI), language column and WPGlobus / qTranslate-XT support in the ALT Audit, automatic ALT on WPML copies, fewer false duplicated ALTs. Run "Scan library" once in Filikod > Duplicates after updating.
  • filikod/trunk/uninstall.php

    r3763820 r3833014  
    2828    // Groupes d'images semblables marqués « C'est voulu » (module Doublons)
    2929    'filikod_visual_ignored',
     30    // Date d'installation (bloc « Laisser un avis » du tableau de bord)
     31    'filikod_installed_at',
    3032
    3133    // Options de nettoyage des caractères spéciaux
    … …  
    9092delete_post_meta_by_key('_filikod_visual_hash');
    9193
     94// Choix du bloc « Laisser un avis » (méta utilisateur, partagée par tout le réseau en multisite).
     95delete_metadata('user', 0, 'filikod_review_prompt', '', true);
     96
    9297// Supprimer les tâches cron
    9398wp_clear_scheduled_hook('filikod_cron_hook');
Note: See TracChangeset for help on using the changeset viewer.