Changeset 3833014
- Timestamp:
- 11/29/2026 12:44:43 PM (8 hours ago)
- Location:
- filikod
- Files:
-
- 74 added
- 22 edited
-
tags/1.4.0 (added)
-
tags/1.4.0/admin (added)
-
tags/1.4.0/admin/index.php (added)
-
tags/1.4.0/admin/views (added)
-
tags/1.4.0/admin/views/alt-audit.php (added)
-
tags/1.4.0/admin/views/brand-bar.php (added)
-
tags/1.4.0/admin/views/bulk.php (added)
-
tags/1.4.0/admin/views/dashboard-review.php (added)
-
tags/1.4.0/admin/views/dashboard.php (added)
-
tags/1.4.0/admin/views/duplicates-similar.php (added)
-
tags/1.4.0/admin/views/duplicates.php (added)
-
tags/1.4.0/admin/views/index.php (added)
-
tags/1.4.0/admin/views/resize.php (added)
-
tags/1.4.0/admin/views/settings.php (added)
-
tags/1.4.0/assets (added)
-
tags/1.4.0/assets/css (added)
-
tags/1.4.0/assets/css/admin.css (added)
-
tags/1.4.0/assets/css/index.php (added)
-
tags/1.4.0/assets/css/media-modal-alt-status.css (added)
-
tags/1.4.0/assets/filikod-picto.svg (added)
-
tags/1.4.0/assets/images (added)
-
tags/1.4.0/assets/images/index.php (added)
-
tags/1.4.0/assets/images/mascot-review.webp (added)
-
tags/1.4.0/assets/index.php (added)
-
tags/1.4.0/assets/js (added)
-
tags/1.4.0/assets/js/admin.js (added)
-
tags/1.4.0/assets/js/index.php (added)
-
tags/1.4.0/assets/js/media-alt-badges.js (added)
-
tags/1.4.0/assets/js/media-duplicate-alert.js (added)
-
tags/1.4.0/filikod.php (added)
-
tags/1.4.0/includes (added)
-
tags/1.4.0/includes/accessibility (added)
-
tags/1.4.0/includes/accessibility/class-filikod-accessibility.php (added)
-
tags/1.4.0/includes/accessibility/index.php (added)
-
tags/1.4.0/includes/admin (added)
-
tags/1.4.0/includes/admin/class-filikod-admin.php (added)
-
tags/1.4.0/includes/admin/class-filikod-media-alt-status.php (added)
-
tags/1.4.0/includes/admin/index.php (added)
-
tags/1.4.0/includes/class-filikod-alt-audit.php (added)
-
tags/1.4.0/includes/class-filikod-media-utils.php (added)
-
tags/1.4.0/includes/dashboard (added)
-
tags/1.4.0/includes/dashboard/class-filikod-dashboard.php (added)
-
tags/1.4.0/includes/dashboard/index.php (added)
-
tags/1.4.0/includes/duplicates (added)
-
tags/1.4.0/includes/duplicates/class-filikod-duplicates.php (added)
-
tags/1.4.0/includes/duplicates/class-filikod-visual-duplicates.php (added)
-
tags/1.4.0/includes/duplicates/index.php (added)
-
tags/1.4.0/includes/file-types (added)
-
tags/1.4.0/includes/file-types/class-filikod-file-types.php (added)
-
tags/1.4.0/includes/file-types/index.php (added)
-
tags/1.4.0/includes/index.php (added)
-
tags/1.4.0/includes/optimizations (added)
-
tags/1.4.0/includes/optimizations/class-filikod-image-resizer.php (added)
-
tags/1.4.0/includes/optimizations/index.php (added)
-
tags/1.4.0/includes/security (added)
-
tags/1.4.0/includes/security/class-filikod-svg-security.php (added)
-
tags/1.4.0/includes/security/index.php (added)
-
tags/1.4.0/includes/settings (added)
-
tags/1.4.0/includes/settings/class-filikod-settings.php (added)
-
tags/1.4.0/includes/settings/index.php (added)
-
tags/1.4.0/index.php (added)
-
tags/1.4.0/languages (added)
-
tags/1.4.0/languages/filikod-fr_FR.mo (added)
-
tags/1.4.0/languages/filikod-fr_FR.po (added)
-
tags/1.4.0/languages/filikod.pot (added)
-
tags/1.4.0/readme.txt (added)
-
tags/1.4.0/uninstall.php (added)
-
trunk/admin/views/alt-audit.php (modified) (7 diffs)
-
trunk/admin/views/brand-bar.php (added)
-
trunk/admin/views/bulk.php (added)
-
trunk/admin/views/dashboard-review.php (added)
-
trunk/admin/views/dashboard.php (modified) (2 diffs)
-
trunk/admin/views/duplicates.php (modified) (2 diffs)
-
trunk/admin/views/resize.php (added)
-
trunk/admin/views/settings.php (modified) (4 diffs)
-
trunk/assets/css/admin.css (modified) (12 diffs)
-
trunk/assets/images (added)
-
trunk/assets/images/index.php (added)
-
trunk/assets/images/mascot-review.webp (added)
-
trunk/assets/js/admin.js (modified) (6 diffs)
-
trunk/assets/js/media-duplicate-alert.js (modified) (1 diff)
-
trunk/filikod.php (modified) (5 diffs)
-
trunk/includes/accessibility/class-filikod-accessibility.php (modified) (14 diffs)
-
trunk/includes/admin/class-filikod-admin.php (modified) (7 diffs)
-
trunk/includes/admin/class-filikod-media-alt-status.php (modified) (2 diffs)
-
trunk/includes/class-filikod-alt-audit.php (modified) (3 diffs)
-
trunk/includes/class-filikod-media-utils.php (modified) (1 diff)
-
trunk/includes/dashboard/class-filikod-dashboard.php (modified) (2 diffs)
-
trunk/includes/duplicates/class-filikod-duplicates.php (modified) (3 diffs)
-
trunk/includes/optimizations/class-filikod-image-resizer.php (modified) (5 diffs)
-
trunk/includes/settings/class-filikod-settings.php (modified) (7 diffs)
-
trunk/languages/filikod-fr_FR.mo (modified) ( previous)
-
trunk/languages/filikod-fr_FR.po (modified) (21 diffs)
-
trunk/languages/filikod.pot (modified) (18 diffs)
-
trunk/readme.txt (modified) (14 diffs)
-
trunk/uninstall.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
filikod/trunk/admin/views/alt-audit.php
r3763820 r3833014 16 16 $filikod_allowed_statuses = array( 'missing', 'generic', 'too_short', 'too_long', 'duplicated', 'decorative' ); 17 17 $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. 44 20 45 21 $filikod_audit_counts = array( … … 64 40 } 65 41 42 if ( ! 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 ); 60 if ( 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 66 78 $filikod_issue_labels = array( 67 79 'missing' => __( 'Missing', 'filikod' ), … … 79 91 'too_long' => sprintf( 80 92 /* 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' ), 82 94 (int) ( class_exists( 'Filikod_Alt_Audit' ) ? Filikod_Alt_Audit::TOO_LONG_MIN_LEN : 125 ) 83 95 ), 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' ), 85 97 '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' ), 86 107 ); 87 108 … … 119 140 }; 120 141 </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> 123 144 124 145 <div id="filikod-alt-audit-notice" class="notice notice-success is-dismissible" style="display:none;"><p></p></div> … … 127 148 <div class="filikod-tabs-wrapper"> 128 149 <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"> 130 151 <?php echo esc_html( $filikod_issue_labels['missing'] ); ?> (<span class="filikod-alt-tab-count"><?php echo esc_html( (string) $filikod_audit_counts['missing'] ); ?></span>) 131 152 </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"> 133 154 <?php echo esc_html( $filikod_issue_labels['generic'] ); ?> (<span class="filikod-alt-tab-count"><?php echo esc_html( (string) $filikod_audit_counts['generic'] ); ?></span>) 134 155 </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"> 136 157 <?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>) 137 158 </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"> 139 160 <?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>) 140 161 </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"> 142 163 <?php echo esc_html( $filikod_issue_labels['duplicate'] ); ?> (<span class="filikod-alt-tab-count"><?php echo esc_html( (string) $filikod_audit_counts['duplicate'] ); ?></span>) 143 164 </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"> 145 166 <?php echo esc_html( $filikod_issue_labels['decorative'] ); ?> (<span class="filikod-alt-tab-count"><?php echo esc_html( (string) $filikod_audit_counts['decorative'] ); ?></span>) 146 167 </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> 147 171 </nav> 148 172 149 173 <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> 150 185 <?php 186 $filikod_bulk_only = array( 'auto_alt', 'clean_chars', 'remove_title' ); 187 include FILIKOD_PLUGIN_PATH . 'admin/views/bulk.php'; 188 else : 151 189 $filikod_alt_description = isset( $filikod_issue_descriptions[ $status ] ) ? $filikod_issue_descriptions[ $status ] : ''; 152 190 if ( $filikod_alt_description ) : … … 155 193 <?php endif; ?> 156 194 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 157 215 <?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> 159 218 <?php else : ?> 160 219 <table class="wp-list-table widefat fixed striped filikod-alt-audit-table"> … … 330 389 <?php endif; ?> 331 390 <?php endif; ?> 391 <?php endif; // Fin de la vue liste. ?> 332 392 </div><!-- .filikod-tabs-content --> 333 393 </div><!-- .filikod-tabs-wrapper --> -
filikod/trunk/admin/views/dashboard.php
r3704678 r3833014 1 1 <?php 2 2 /** 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. 4 10 * 5 11 * @package Filikod … … 17 23 18 24 $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']; 37 if ( 0 === $filikod_to_fix && 0 === $filikod_to_review ) { 38 // Aucune image à problème : 100 %, les décoratives ne comptent pas. 39 39 $filikod_alt_score = 100.0; 40 40 } 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 ) ) ); 42 if ( $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'; 53 foreach ( 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. 45 78 $filikod_dup_summary = class_exists( 'Filikod_Duplicates' ) 46 79 ? Filikod_Duplicates::get_summary() 47 80 : 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>'; 49 102 ?> 50 51 <div class="wrap filikod-dashboard"> 103 <div class="wrap filikod-dashboard filikod-dashboard-v2"> 52 104 <h1><?php echo esc_html( get_admin_page_title() ); ?></h1> 53 105 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 54 121 <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 ) : ?> 71 128 <div class="filikod-alt-donut-wrapper"> 72 129 <?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 ); 79 133 ?> 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 ); ?>" 85 138 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> 89 141 </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; ?> 97 145 <div class="filikod-alt-separator"></div> 98 146 <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> 163 234 </div> 164 235 </div> 165 236 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">–</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">–</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 210 341 </div> 211 342 </div> -
filikod/trunk/admin/views/duplicates.php
r3763820 r3833014 21 21 $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. 22 22 $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(); 24 24 $filikod_missing_url = add_query_arg( array( 'view' => 'missing' ), $filikod_base_url ); 25 25 $filikod_similar_url = add_query_arg( array( 'view' => 'similar' ), $filikod_base_url ); … … 91 91 92 92 ?> 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> 95 99 96 100 <!-- Scan (en tête de page : accès direct) --> -
filikod/trunk/admin/views/settings.php
r3737001 r3833014 129 129 </div> 130 130 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> 155 141 156 142 <p class="submit"> … … 210 196 <?php esc_html_e('Images with a title in your library:', 'filikod'); ?> 211 197 <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> 213 199 </p> 214 200 </div> … … 235 221 <h3><?php esc_html_e('Remove Special Characters from ALT Text', 'filikod'); ?></h3> 236 222 <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'); ?> 238 224 </p> 239 225 </div> … … 280 266 </div> 281 267 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> 306 278 307 279 <p class="submit"> -
filikod/trunk/assets/css/admin.css
r3763820 r3833014 24 24 .filikod-welcome-panel h2 { 25 25 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; 26 132 } 27 133 … … 145 251 background: #f6f7f7; 146 252 } 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. */ 147 255 .filikod-tabs-nav a:focus { 148 256 color: #043959; 149 box-shadow: 0 0 0 0px transparent;257 box-shadow: none; 150 258 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; 151 268 } 152 269 … … 423 540 424 541 /* 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 { 427 543 margin-top: 20px; 428 544 padding: 15px; … … 432 548 } 433 549 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 { 436 551 width: 100%; 437 552 height: 24px; … … 443 558 } 444 559 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 { 447 561 height: 100%; 448 562 background: linear-gradient(90deg, #2E00D5 0%, #5a2dff 50%, #2E00D5 100%); … … 454 568 } 455 569 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 { 458 571 content: ''; 459 572 position: absolute; … … 489 602 } 490 603 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 { 493 605 font-size: 13px; 494 606 color: #555; … … 825 937 .filikod-settings .submit input.button-primary, 826 938 .filikod-settings .button.button-primary[type="submit"], 827 .filikod-go-to-settings-button { 939 .filikod-go-to-settings-button, 940 .filikod-btn-primary { 828 941 background-color: #2E00D5 !important; 829 942 border-color: #2E00D5 !important; … … 838 951 .filikod-settings .submit input.button-primary:hover, 839 952 .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 { 841 955 background-color: #2500b3 !important; 842 956 border-color: #2500b3 !important; … … 847 961 .filikod-settings .submit input.button-primary:focus, 848 962 .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 { 850 965 background-color: #2500b3 !important; 851 966 border-color: #2500b3 !important; … … 857 972 .filikod-coming-soon .dashicons { 858 973 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;892 974 } 893 975 … … 1630 1712 color: #fff; 1631 1713 } 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. */ 2308 a.filikod-alt-count-item { 2309 text-decoration: none; 2310 border-radius: 4px; 2311 } 2312 2313 a.filikod-alt-count-item .filikod-alt-count-value { 2314 font-weight: 700; 2315 color: #2E00D5; 2316 } 2317 2318 a.filikod-alt-count-item:hover .filikod-alt-count-label, 2319 a.filikod-alt-count-item:focus .filikod-alt-count-label { 2320 color: #1d2327; 2321 text-decoration: underline; 2322 } 2323 2324 a.filikod-alt-count-item:focus { 2325 box-shadow: none; 2326 outline: none; 2327 } 2328 2329 a.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 14 14 initToggleSwitches(); 15 15 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(); 21 18 22 19 // Gérer l'activation/désactivation du champ de taille max … … 31 28 // Duplicates > Similar images : « C'est voulu » / « Afficher de nouveau » 32 29 initVisualIgnore(); 30 31 // Tableau de bord : bloc « Laisser un avis » 32 initReviewPrompt(); 33 33 }); 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 } 34 93 35 94 /** … … 210 269 function cleanupFail(msg, showNoticeToo) { 211 270 state.isProcessing = false; 271 if (typeof o.onFail === 'function') { 272 o.onFail(msg); 273 } 212 274 window.removeEventListener('beforeunload', beforeUnloadHandler); 213 275 statusMessage.removeClass('processing').addClass('error'); … … 316 378 317 379 /** 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) { 322 424 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; 323 448 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 }, 333 461 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 ? 335 474 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 } 343 500 return sprintf( 344 501 filikodAdmin.strings.accessibilityComplete || 'Processing complete: %d images processed, %d skipped.', … … 347 504 ); 348 505 }, 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); 354 523 } 355 524 }); … … 418 587 e.preventDefault(); 419 588 runScan(true, $(this)); 420 });421 }422 423 /**424 * Initialiser le traitement des images existantes pour redimensionnement425 */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_formatted457 );458 }459 });460 589 }); 461 590 } -
filikod/trunk/assets/js/media-duplicate-alert.js
r3737001 r3833014 38 38 html += 39 39 ' <a href="' + escapeHtml(cfg.duplicatesUrl).replace(/"/g, '"') + '" target="_blank" rel="noopener noreferrer">' + 40 escapeHtml(strings.review || 'Review in Filikod > Duplicates') +40 escapeHtml(strings.review || 'Review in Media > Duplicate files') + 41 41 '</a>'; 42 42 } -
filikod/trunk/filikod.php
r3763820 r3833014 3 3 * Plugin Name: Filikod – Alt Text Checker & Bulk Image Alt Text Editor 4 4 * 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.05 * 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 7 7 * Author: Filikod 8 8 * Author URI: https://filikod.com … … 12 12 * Domain Path: /languages 13 13 * Requires at least: 5.8 14 * Tested up to: 7.115 14 * Requires PHP: 7.4 16 15 */ … … 22 21 23 22 // Définir les constantes du plugin 24 define('FILIKOD_VERSION', '1. 3.0');23 define('FILIKOD_VERSION', '1.4.0'); 25 24 define('FILIKOD_PLUGIN_URL', plugin_dir_url(__FILE__)); 26 25 define('FILIKOD_PLUGIN_PATH', plugin_dir_path(__FILE__)); … … 164 163 // (wp_cache_flush() vidait Redis/Memcached pour tout le site, voire tout le réseau). 165 164 $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 } 166 171 167 172 update_option('filikod_version', FILIKOD_VERSION); … … 204 209 delete_option('filikod_debug_mode'); 205 210 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 206 216 update_option('filikod_version', FILIKOD_VERSION); 207 217 } -
filikod/trunk/includes/accessibility/class-filikod-accessibility.php
r3763820 r3833014 95 95 */ 96 96 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). 98 101 if (get_option('filikod_auto_alt', 'no') === 'yes') { 99 102 $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); 100 106 } 101 107 // 2) Nettoyer les caractères spéciaux dans le texte ALT si activé … … 104 110 } 105 111 // 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) { 107 113 $this->clear_attachment_title($attachment_id); 108 114 } … … 234 240 * 5. Sauvegarde uniquement si l'image n'a pas déjà un texte ALT 235 241 * 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) { 239 248 // Récupérer le texte ALT actuel 240 249 $current_alt = get_post_meta($attachment_id, '_wp_attachment_image_alt', true); 241 250 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)) { 244 254 return; 245 255 } … … 262 272 if ($title !== '') { 263 273 $alt_text = $title; 274 } elseif ($title_only) { 275 return; 264 276 } elseif ($filename_without_ext !== '') { 265 277 $alt_text = $filename_without_ext; … … 268 280 } 269 281 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) { 272 286 $alt_text = self::clean_special_chars_value($alt_text); 273 287 } … … 421 435 * @return array Résultat du traitement du batch 422 436 */ 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) { 424 438 global $wpdb; 425 439 … … 428 442 $offset = max(0, (int) $offset); 429 443 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 } 433 455 // Si aucune option n'est activée, ne rien faire 434 456 if ( ! $auto_alt_enabled && ! $clean_chars_enabled && ! $remove_title_enabled ) { … … 438 460 'total_processed' => $total_processed, 439 461 'total_skipped' => $total_skipped, 462 'total_not_filled' => (int) $total_not_filled, 440 463 'finished' => true 441 464 ); … … 466 489 'total_processed' => $total_processed, 467 490 'total_skipped' => $total_skipped, 491 'total_not_filled' => (int) $total_not_filled, 468 492 'finished' => true 469 493 ); … … 472 496 $batch_processed = 0; 473 497 $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; 474 501 475 502 // Traiter chaque image du batch … … 480 507 if ($auto_alt_enabled) { 481 508 $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); 484 511 $new_alt = get_post_meta($attachment_id, '_wp_attachment_image_alt', true); 485 512 if ($new_alt !== $old_alt) { 486 513 $was_modified = true; 514 } elseif (!(class_exists('Filikod_Alt_Audit') && Filikod_Alt_Audit::is_decorative($attachment_id))) { 515 $batch_not_filled++; 487 516 } 488 517 } … … 504 533 $post = get_post($attachment_id); 505 534 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 } 506 543 $this->clear_attachment_title($attachment_id); 507 544 $was_modified = true; … … 518 555 $total_processed += $batch_processed; 519 556 $total_skipped += $batch_skipped; 557 $total_not_filled += $batch_not_filled; 520 558 521 559 return array( … … 524 562 'total_processed' => $total_processed, 525 563 'total_skipped' => $total_skipped, 564 'total_not_filled' => $total_not_filled, 526 565 'finished' => false 527 566 ); -
filikod/trunk/includes/admin/class-filikod-admin.php
r3763820 r3833014 29 29 private function init_hooks() { 30 30 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' ) ); 31 34 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' ) ); 32 36 if ( class_exists( 'Filikod_Media_Alt_Status' ) ) { 33 37 new Filikod_Media_Alt_Status(); … … 63 67 ); 64 68 65 // Sous-menu ALT Audit69 // Sous-menu Textes ALT (liste des images par problème + onglet « Actions en masse » depuis la 1.4.0). 66 70 $this->alt_audit_hook = add_submenu_page( 67 71 'filikod', 68 __( 'ALT Audit', 'filikod' ),69 __( 'ALT Audit', 'filikod' ),72 __( 'ALT Text', 'filikod' ), 73 __( 'ALT Text', 'filikod' ), 70 74 'manage_options', 71 75 'filikod-alt-audit', … … 73 77 ); 74 78 $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 );85 79 86 80 // Sous-menu Settings … … 94 88 ); 95 89 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 96 112 // add_submenu_page() renvoie false quand l'utilisateur n'a pas la capacité. 97 113 $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; 98 195 } 99 196 … … 159 256 /* translators: 1: Number of processed images, 2: Number of skipped images */ 160 257 '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' ), 161 268 'altSaved' => __( 'Saved.', 'filikod' ), 162 269 'altSaveError' => __( 'Error saving ALT.', 'filikod' ), … … 169 276 ), 170 277 ); 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' ); 171 287 if ( '' !== $this->alt_audit_hook && $hook === $this->alt_audit_hook ) { 172 288 $localize['saveAltNonce'] = wp_create_nonce( 'filikod_save_alt' ); … … 198 314 */ 199 315 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 ); 201 329 } 202 330 -
filikod/trunk/includes/admin/class-filikod-media-alt-status.php
r3763820 r3833014 343 343 return sprintf( 344 344 /* 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' ), 346 346 (int) $too_long_min 347 347 ); … … 405 405 ), 406 406 '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' ), 408 408 'ok' => self::tooltip_for_code( 'ok' ), 409 409 'missing' => self::tooltip_for_code( 'missing' ), -
filikod/trunk/includes/class-filikod-alt-audit.php
r3763820 r3833014 814 814 ? $known['alt'] 815 815 : 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é. 817 818 $alt_raw = is_string( $alt_raw ) ? $alt_raw : ''; 818 819 … … 988 989 989 990 /** 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 /** 990 1013 * ALT et marqueur décoratif de toutes les images, par tranches de 1 000 en une requête chacune. 991 1014 * WP_Query en mode 'ids' n'amorce pas le cache des métas : sans cela, l'audit complet coûtait deux … … 1020 1043 // Même règle que get_post_meta( …, true ) : la première ligne par meta_id fait foi. 1021 1044 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 ); 1023 1046 $values[ $id ]['alt_seen'] = true; 1024 1047 } elseif ( self::META_DECORATIVE === $row->meta_key && ! $values[ $id ]['deco_seen'] ) { -
filikod/trunk/includes/class-filikod-media-utils.php
r3704678 r3833014 62 62 63 63 /** 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. 65 145 * 66 146 * @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 »). 68 148 */ 69 149 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 } 70 157 if ( $bytes >= 1073741824 ) { 71 158 return number_format_i18n( $bytes / 1073741824, 2 ) . ' GB'; -
filikod/trunk/includes/dashboard/class-filikod-dashboard.php
r3763820 r3833014 21 21 const MEDIA_STATS_TTL = 900; 22 22 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 23 40 private $plugin; 24 41 … … 27 44 add_action( 'wp_ajax_filikod_save_alt', array( $this, 'ajax_save_alt' ) ); 28 45 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' ) ); 29 47 // Invalider le cache des stats média lors des évènements qui les modifient. 30 48 add_action( 'add_attachment', array( __CLASS__, 'invalidate_media_stats_cache' ) ); 31 49 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(); 32 112 } 33 113 -
filikod/trunk/includes/duplicates/class-filikod-duplicates.php
r3763820 r3833014 225 225 // Le même encart sur chaque membre du groupe : la liste complète des copies, sans lien 226 226 // 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(); 228 228 $total = count( $dup['ids'] ); 229 229 $html = '<div class="filikod-dup-warning" role="status">' … … 262 262 } 263 263 $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>' 265 265 . '</div>'; 266 266 … … 303 303 'filikodDuplicateAlert', 304 304 array( 305 'duplicatesUrl' => add_query_arg( array( 'page' => 'filikod-duplicates' ), admin_url( 'admin.php' )),305 'duplicatesUrl' => Filikod_Admin::duplicates_url(), 306 306 'strings' => array( 307 307 'title' => __( 'Duplicate file:', 'filikod' ), 308 308 /* translators: 1: uploaded file name, 2: file name of the older copy, 3: attachment ID of the older copy */ 309 309 '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' ), 311 311 'dismiss' => __( 'Dismiss this notice.', 'filikod' ), 312 312 ), -
filikod/trunk/includes/optimizations/class-filikod-image-resizer.php
r3737001 r3833014 22 22 23 23 /** 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 /** 24 31 * Nom de la taille WordPress personnalisée 25 32 */ … … 432 439 */ 433 440 public function get_max_width() { 441 if ($this->max_width_override > 0) { 442 return $this->max_width_override; 443 } 434 444 $max_width = (int) get_option('filikod_max_image_width', 2000); 435 445 … … 491 501 * @return array Résultat du traitement du batch 492 502 */ 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) { 494 504 global $wpdb; 495 505 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') { 498 508 return array( 499 509 'processed' => 0, … … 538 548 $batch_saved = 0; 539 549 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 540 554 foreach ($image_ids as $attachment_id) { 541 555 $result = $this->resize_image($attachment_id); … … 548 562 } 549 563 } 564 565 $this->max_width_override = 0; 550 566 551 567 // Cumuler les totaux -
filikod/trunk/includes/settings/class-filikod-settings.php
r3737001 r3833014 29 29 add_action('wp_ajax_filikod_get_total_images_count_accessibility', array($this, 'ajax_get_total_images_count_accessibility')); 30 30 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')); 31 33 } 32 34 … … 83 85 84 86 /** 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 /** 85 156 * Afficher la page des paramètres 86 157 */ … … 289 360 $total_skipped = isset($_POST['total_skipped']) ? absint(wp_unslash($_POST['total_skipped'])) : 0; 290 361 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 291 369 // Traiter le batch 292 370 $result = $this->plugin->accessibility->process_existing_images_batch( … … 294 372 $batch_size, 295 373 $total_processed, 296 $total_skipped 374 $total_skipped, 375 array($task), 376 $total_not_filled 297 377 ); 298 378 … … 303 383 'total_processed' => $result['total_processed'], 304 384 'total_skipped' => $result['total_skipped'], 385 'total_not_filled' => isset($result['total_not_filled']) ? (int) $result['total_not_filled'] : 0, 305 386 'finished' => $result['finished'], 306 387 'next_offset' => $offset + $batch_size … … 357 438 $total_skipped = isset($_POST['total_skipped']) ? absint(wp_unslash($_POST['total_skipped'])) : 0; 358 439 $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. 361 447 $result = $this->plugin->image_resizer->process_existing_images_batch( 362 448 $offset, … … 364 450 $total_processed, 365 451 $total_skipped, 366 $total_saved 452 $total_saved, 453 true, 454 $max_width 367 455 ); 368 456 -
filikod/trunk/languages/filikod-fr_FR.po
r3763820 r3833014 1 1 msgid "" 2 2 msgstr "" 3 "Project-Id-Version: Filikod 1. 3.0\n"3 "Project-Id-Version: Filikod 1.4.0\n" 4 4 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/filikod\n" 5 "PO-Revision-Date: 2026-1 0-06 12:00+0000\n"5 "PO-Revision-Date: 2026-11-29 20:00+0000\n" 6 6 "Last-Translator: Lyode <contact@lyode.fr>\n" 7 7 "Language-Team: French\n" … … 13 13 "X-Domain: filikod\n" 14 14 15 #: admin/views/alt-audit.php:109 15 #: admin/views/alt-audit.php:101 16 msgid "Every image has an ALT text." 17 msgstr "Toutes les images ont un texte ALT." 18 19 #: admin/views/alt-audit.php:102 20 msgid "No generic ALT text." 21 msgstr "Aucun texte ALT générique." 22 23 #: admin/views/alt-audit.php:103 24 msgid "No ALT text is too short." 25 msgstr "Aucun texte ALT trop court." 26 27 #: admin/views/alt-audit.php:104 28 msgid "No ALT text is too long." 29 msgstr "Aucun texte ALT trop long." 30 31 #: admin/views/alt-audit.php:105 32 msgid "No ALT text is shared by several images." 33 msgstr "Aucun texte ALT n’est répété sur plusieurs images." 34 35 #: admin/views/alt-audit.php:106 36 msgid "No image is marked as decorative." 37 msgstr "Aucune image n’est marquée comme décorative." 38 39 #: admin/views/alt-audit.php:130 16 40 msgid "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)." 17 41 msgstr "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)." 18 42 19 #: admin/views/alt-audit.php:1 2220 #: includes/admin/class-filikod-admin.php: 6821 #: includes/admin/class-filikod-admin.php: 6922 msgid "ALT Audit"23 msgstr " AuditALT"24 25 #: admin/views/alt-audit.php:1 2843 #: admin/views/alt-audit.php:143 44 #: includes/admin/class-filikod-admin.php:72 45 #: includes/admin/class-filikod-admin.php:73 46 msgid "ALT Text" 47 msgstr "Textes ALT" 48 49 #: admin/views/alt-audit.php:149 26 50 msgid "Filter by issue type" 27 51 msgstr "Trier par type de problème" 28 52 29 #: admin/views/alt-audit.php:158 53 #: admin/views/alt-audit.php:169 54 #: admin/views/dashboard.php:286 55 msgid "Bulk actions" 56 msgstr "Actions en masse" 57 58 #: admin/views/alt-audit.php:176 59 msgid "Fix the images already in your Media Library in one go. Settings only apply to new uploads." 60 msgstr "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 63 msgid "To resize large images, use %s." 64 msgstr "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 69 msgid "Tools > Resize large images" 70 msgstr "Outils > Réduire les grandes images" 71 72 #: admin/views/alt-audit.php:201 73 msgid "%s image has no ALT text. Write it below, or fill it from its title or file name in one go." 74 msgid_plural "%s images have no ALT text. Write them below, or fill them from their titles or file names in one go." 75 msgstr[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." 76 msgstr[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 81 msgid "Fill missing ALT text" 82 msgstr "Remplir les ALT manquants" 83 84 #: admin/views/alt-audit.php:217 30 85 msgid "No images match this filter." 31 86 msgstr "Aucune image ne correspond à ce filtre." 32 87 33 #: admin/views/alt-audit.php: 16388 #: admin/views/alt-audit.php:222 34 89 #: admin/views/duplicates-similar.php:88 35 #: admin/views/duplicates.php:19 236 #: admin/views/duplicates.php:3 0890 #: admin/views/duplicates.php:196 91 #: admin/views/duplicates.php:312 37 92 msgid "Thumbnail" 38 93 msgstr "Miniature" 39 94 40 #: admin/views/alt-audit.php: 16495 #: admin/views/alt-audit.php:223 41 96 #: admin/views/duplicates-similar.php:89 42 #: admin/views/duplicates.php:3 0997 #: admin/views/duplicates.php:313 43 98 msgid "File name" 44 99 msgstr "Nom du fichier" 45 100 46 #: admin/views/alt-audit.php: 166101 #: admin/views/alt-audit.php:225 47 102 msgid "Language" 48 103 msgstr "Langue" 49 104 50 #: admin/views/alt-audit.php: 168105 #: admin/views/alt-audit.php:227 51 106 #: admin/views/duplicates-similar.php:90 52 #: admin/views/duplicates.php:19 453 #: admin/views/duplicates.php:31 0107 #: admin/views/duplicates.php:198 108 #: admin/views/duplicates.php:314 54 109 msgid "Context" 55 msgstr " Contexte"56 57 #: admin/views/alt-audit.php: 169110 msgstr "Téléversé sur" 111 112 #: admin/views/alt-audit.php:228 58 113 #: admin/views/duplicates-similar.php:91 59 #: admin/views/duplicates.php:19 560 #: admin/views/duplicates.php:31 1114 #: admin/views/duplicates.php:199 115 #: admin/views/duplicates.php:315 61 116 msgid "ALT" 62 117 msgstr "ALT" 63 118 64 #: admin/views/alt-audit.php: 170119 #: admin/views/alt-audit.php:229 65 120 #: admin/views/duplicates-similar.php:92 66 #: admin/views/duplicates.php:31 2121 #: admin/views/duplicates.php:316 67 122 msgid "Issue" 68 123 msgstr "Problème" 69 124 70 #: admin/views/alt-audit.php: 172125 #: admin/views/alt-audit.php:231 71 126 #: admin/views/duplicates-similar.php:93 72 #: admin/views/duplicates.php: 19673 #: admin/views/duplicates.php:31 3127 #: admin/views/duplicates.php:200 128 #: admin/views/duplicates.php:317 74 129 msgid "Action" 75 130 msgstr "Action" 76 131 77 #: admin/views/alt-audit.php:2 31132 #: admin/views/alt-audit.php:290 78 133 msgid "empty: %s" 79 134 msgstr "vide : %s" 80 135 81 #: admin/views/alt-audit.php:2 40136 #: admin/views/alt-audit.php:299 82 137 msgid "Not translated" 83 138 msgstr "Non traduit" 84 139 85 #: admin/views/alt-audit.php: 252140 #: admin/views/alt-audit.php:311 86 141 msgid "ALT text for this image" 87 142 msgstr "Texte ALT pour cette image" 88 143 89 #: admin/views/alt-audit.php: 252144 #: admin/views/alt-audit.php:311 90 145 msgid "Decorative image (alt=\"\")" 91 146 msgstr "Image décorative (alt=\"\")" 92 147 93 #: admin/views/alt-audit.php: 281148 #: admin/views/alt-audit.php:340 94 149 msgid "Mark this image as a regular content image (requires an ALT text)." 95 150 msgstr "Marquer cette image comme image de contenu normale (un texte ALT est requis)." 96 151 97 #: admin/views/alt-audit.php: 281152 #: admin/views/alt-audit.php:340 98 153 msgid "Mark this image as decorative (alt=\"\", excluded from the ALT score)." 99 154 msgstr "Marquer cette image comme décorative (alt=\"\", exclue du score ALT)." 100 155 101 #: admin/views/alt-audit.php: 293156 #: admin/views/alt-audit.php:352 102 157 msgid "Save" 103 158 msgstr "Enregistrer" 104 159 105 #: admin/views/alt-audit.php:3 09160 #: admin/views/alt-audit.php:368 106 161 #: admin/views/duplicates-similar.php:185 107 #: admin/views/duplicates.php:2 49108 #: admin/views/duplicates.php:4 07162 #: admin/views/duplicates.php:253 163 #: admin/views/duplicates.php:411 109 164 msgid "Pagination" 110 165 msgstr "Pagination" 111 166 112 #: admin/views/alt-audit.php:3 14113 #: admin/views/duplicates.php:25 4167 #: admin/views/alt-audit.php:373 168 #: admin/views/duplicates.php:258 114 169 msgid "Page %1$d of %2$d (%3$d items)" 115 170 msgstr "Page %1$d sur %2$d (%3$d éléments)" 116 171 117 #: admin/views/alt-audit.php:3 23172 #: admin/views/alt-audit.php:382 118 173 #: admin/views/duplicates-similar.php:199 119 #: admin/views/duplicates.php:26 3120 #: admin/views/duplicates.php:42 1174 #: admin/views/duplicates.php:267 175 #: admin/views/duplicates.php:425 121 176 msgid "« Previous" 122 177 msgstr "« Précédent" 123 178 124 #: admin/views/alt-audit.php:3 26179 #: admin/views/alt-audit.php:385 125 180 #: admin/views/duplicates-similar.php:202 126 #: admin/views/duplicates.php:2 66127 #: admin/views/duplicates.php:42 4181 #: admin/views/duplicates.php:270 182 #: admin/views/duplicates.php:428 128 183 msgid "Next »" 129 184 msgstr "Suivant »" 130 185 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 133 189 #: includes/admin/class-filikod-media-alt-status.php:303 134 190 msgid "Missing" 135 191 msgstr "Manquant" 136 192 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 139 196 #: includes/admin/class-filikod-media-alt-status.php:305 140 197 msgid "Generic" 141 198 msgstr "Générique" 142 199 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 145 203 #: includes/admin/class-filikod-media-alt-status.php:307 146 204 msgid "Too short" 147 205 msgstr "Trop court" 148 206 149 #: admin/views/alt-audit.php: 70150 #: admin/views/dashboard.php: 115207 #: admin/views/alt-audit.php:82 208 #: admin/views/dashboard.php:89 151 209 #: includes/admin/class-filikod-media-alt-status.php:309 152 210 msgid "Too long" 153 211 msgstr "Trop long" 154 212 155 #: admin/views/alt-audit.php: 71156 #: admin/views/dashboard.php: 119213 #: admin/views/alt-audit.php:83 214 #: admin/views/dashboard.php:90 157 215 #: includes/admin/class-filikod-media-alt-status.php:311 158 216 msgid "Duplicated" 159 msgstr " Dupliqué"160 161 #: admin/views/alt-audit.php: 72162 #: admin/views/alt-audit.php: 171163 #: admin/views/alt-audit.php: 283164 #: admin/views/dashboard.php: 123217 msgstr "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 165 223 #: includes/admin/class-filikod-media-alt-status.php:313 166 224 msgid "Decorative" 167 225 msgstr "Décorative" 168 226 169 #: admin/views/alt-audit.php: 76227 #: admin/views/alt-audit.php:88 170 228 msgid "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." 171 229 msgstr "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." 172 230 173 #: admin/views/alt-audit.php: 77231 #: admin/views/alt-audit.php:89 174 232 msgid "Generic ALTs (e.g. \"logo\", \"image\") do not describe the content. Prefer a specific description for each image." 175 msgstr "Les ALT s 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: 78233 msgstr "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 178 236 msgid "ALT text that is too short (under 8 characters after normalization) provides little context for users or search engines." 179 237 msgstr "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." 180 238 181 #: admin/views/alt-audit.php: 81182 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: 84186 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: 85239 #: admin/views/alt-audit.php:93 240 msgid "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." 241 msgstr "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 244 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 Media > Duplicate files) sharing one ALT are not counted here." 245 msgstr "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 190 248 msgid "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." 191 249 msgstr "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." 192 250 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 252 msgid "Breadcrumb" 253 msgstr "Fil d’Ariane" 254 255 #: admin/views/bulk.php:107 256 #: admin/views/duplicates.php:154 257 msgid "Important:" 258 msgstr "Important :" 259 260 #: admin/views/bulk.php:108 261 #: admin/views/duplicates.php:155 262 msgid "Please keep this page open until the process is complete. Do not navigate away or close this page." 263 msgstr "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 266 msgid "Taken from the image title or, failing that, from the file name. Existing ALT text is never changed." 267 msgstr "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 270 msgid "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\"." 271 msgstr "É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 274 msgid "Fill the missing ALT text of your images from their titles or file names? Existing ALT text will not be changed." 275 msgstr "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 279 msgid "Clean ALT text taken from file names" 280 msgstr "Nettoyer les ALT tirés des noms de fichiers" 281 282 #: admin/views/bulk.php:38 283 msgid "\"my-photo_2024.jpg\" becomes \"my photo 2024\". ALT text written by hand keeps its punctuation." 284 msgstr "« my-photo_2024.jpg » devient « my photo 2024 ». Les textes ALT écrits à la main gardent leur ponctuation." 285 286 #: admin/views/bulk.php:39 287 msgid "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." 288 msgstr "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 291 msgid "Clean ALT text" 292 msgstr "Nettoyer les ALT" 293 294 #: admin/views/bulk.php:41 295 msgid "Clean the ALT text taken from file names? ALT text written by hand keeps its punctuation." 296 msgstr "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 299 msgid "Clear image titles" 300 msgstr "Effacer les titres des images" 301 302 #: admin/views/bulk.php:45 303 msgid "Empties the Title field of every image. An image without ALT text first gets its title as ALT text. This cannot be undone." 304 msgstr "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 307 msgid "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." 308 msgstr "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 311 msgid "Clear titles" 312 msgstr "Effacer les titres" 313 314 #: admin/views/bulk.php:48 315 msgid "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." 316 msgstr "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 323 msgid "Resize large images" 324 msgstr "Réduire les grandes images" 325 326 #: admin/views/bulk.php:52 327 msgid "Smaller images are left as they are. The resized file replaces the original, which cannot be undone." 328 msgstr "Les images plus petites restent telles quelles. Le fichier redimensionné remplace l’original : c’est irréversible." 329 330 #: admin/views/bulk.php:53 331 msgid "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." 332 msgstr "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 335 msgid "Resize images" 336 msgstr "Réduire les images" 337 338 #: admin/views/bulk.php:56 339 msgid "Resize every image wider than %d pixels? The resized files will replace the originals. This cannot be undone." 340 msgstr "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 343 msgid "Learn more" 344 msgstr "En savoir plus" 345 346 #: admin/views/bulk.php:85 347 msgid "A title or a file name is a starting point, not a description. Check the result in Filikod > ALT Text afterwards." 348 msgstr "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 352 msgid "Open ALT Text" 353 msgstr "Ouvrir Textes ALT" 354 355 #: admin/views/bulk.php:93 356 #: admin/views/settings.php:86 357 msgid "Maximum Image Width" 358 msgstr "Largeur maximale de l’image" 359 360 #: admin/views/bulk.php:95 361 #: admin/views/settings.php:101 362 msgid "pixels" 363 msgstr "pixels" 364 365 #: admin/views/dashboard-review.php:19 366 msgid "Close this message" 367 msgstr "Fermer ce message" 368 369 #: admin/views/dashboard-review.php:24 370 msgid "Is Filikod helping you?" 371 msgstr "Filikod vous rend service ?" 372 373 #: admin/views/dashboard-review.php:30 374 msgid "Filikod has checked %s image in your Media Library. A review on WordPress.org takes a minute and helps other sites find Filikod." 375 msgid_plural "Filikod has checked %s images in your Media Library. A review on WordPress.org takes a minute and helps other sites find Filikod." 376 msgstr[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." 377 msgstr[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 383 msgid "(opens in a new tab)" 384 msgstr "(s’ouvre dans un nouvel onglet)" 385 386 #: admin/views/dashboard-review.php:43 387 #: includes/admin/class-filikod-admin.php:284 388 msgid "Leave a review" 389 msgstr "Laisser un avis" 390 391 #: admin/views/dashboard-review.php:46 392 #: admin/views/dashboard.php:100 393 msgid "A problem? Ask on the support forum" 394 msgstr "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 398 msgid "Maybe later" 399 msgstr "Plus tard" 400 401 #: admin/views/dashboard-review.php:49 402 msgid "I already did" 403 msgstr "C’est déjà fait" 404 405 #: admin/views/dashboard.php:126 406 msgid "Alt Text Health" 407 msgstr "État de santé du texte ALT" 220 408 221 409 #: admin/views/dashboard.php:134 222 msgid " Resizing size impact"223 msgstr " Impact du redimensionnement de la taille"410 msgid "ALT score: %d out of 100" 411 msgstr "Score ALT : %d sur 100" 224 412 225 413 #: 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 414 msgid "out of 100" 415 msgstr "sur 100" 416 417 #: admin/views/dashboard.php:161 418 msgid "Add an image to start the check" 419 msgstr "Ajoutez une image pour lancer la vérification" 420 421 #: admin/views/dashboard.php:162 422 msgid "Filikod checks the ALT text of every image in your Media Library as soon as there is one." 423 msgstr "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 426 msgid "%1$s image to fix out of %2$s" 427 msgid_plural "%1$s images to fix out of %2$s" 428 msgstr[0] "%1$s image à corriger sur %2$s" 429 msgstr[1] "%1$s images à corriger sur %2$s" 430 431 #: admin/views/dashboard.php:176 432 msgid "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." 433 msgstr "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 436 msgid "%1$s: %2$s" 437 msgstr "%1$s : %2$s" 438 439 #: admin/views/dashboard.php:196 440 msgid "Fix these images" 441 msgstr "Corriger ces images" 442 443 #: admin/views/dashboard.php:204 444 msgid "%s image checked: its ALT text is usable" 445 msgid_plural "%s images checked: all have a usable ALT text" 446 msgstr[0] "%s image vérifiée : son texte ALT est utilisable" 447 msgstr[1] "%s images vérifiées : toutes ont un texte ALT utilisable" 448 449 #: admin/views/dashboard.php:21 234 450 #: 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 241 458 #: 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 246 464 msgid "Insufficient permissions." 247 465 msgstr "Droits insuffisants." 248 466 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 468 msgid "Nothing urgent to fix. New images are checked as soon as they are uploaded." 469 msgstr "Rien d’urgent à corriger. Les nouvelles images sont vérifiées dès leur envoi." 470 471 #: admin/views/dashboard.php:223 472 msgid "Next uploads" 473 msgstr "Les prochaines images" 474 475 #: admin/views/dashboard.php:228 476 msgid "Off" 477 msgstr "Désactivé" 478 479 #: admin/views/dashboard.php:228 480 msgid "On" 481 msgstr "Activé" 482 483 #: admin/views/dashboard.php:232 484 msgid "Change in Settings" 485 msgstr "Modifier dans les réglages" 486 487 #: admin/views/dashboard.php:239 254 488 msgid "Library Overview" 255 msgstr "Vue d’ensemble de la bibliothèque"256 257 #: admin/views/dashboard.php: 173489 msgstr "Vue d’ensemble de la médiathèque" 490 491 #: admin/views/dashboard.php:243 258 492 msgid "Total Images" 259 493 msgstr "Total des images" 260 494 261 #: admin/views/dashboard.php: 177495 #: admin/views/dashboard.php:247 262 496 msgid "Total Media Size" 263 497 msgstr "Poids total des médias" 264 498 265 #: admin/views/dashboard.php: 181499 #: admin/views/dashboard.php:251 266 500 msgid "Average size per image" 267 501 msgstr "Poids moyen par image" 268 502 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 275 505 msgid "Duplicate images" 276 506 msgstr "Images en double" 277 507 278 #: admin/views/dashboard.php: 193508 #: admin/views/dashboard.php:263 279 509 msgid "%1$s groups, %2$s wasted" 280 510 msgstr "%1$s groupes, %2$s gaspillés" 281 511 282 #: admin/views/dashboard.php:2 03512 #: admin/views/dashboard.php:273 283 513 msgid "Scan the library to detect duplicates" 284 514 msgstr "Analysez la médiathèque pour détecter les doublons" 285 515 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 517 msgid "Filikod tools" 518 msgstr "Outils Filikod" 519 520 #: admin/views/dashboard.php:287 521 msgid "Fill missing ALT text, clean ALT text taken from file names or clear image titles in one go." 522 msgstr "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 526 msgid "Filikod > ALT Text > Bulk actions" 527 msgstr "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 532 msgid "Open" 533 msgstr "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 539 msgid "Duplicate files" 540 msgstr "Fichiers en double" 541 542 #: admin/views/dashboard.php:299 543 msgid "Find the files uploaded twice and free up space in your Media Library." 544 msgstr "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 547 msgid "Scan your Media Library once to find the files uploaded twice." 548 msgstr "Analysez une fois votre médiathèque pour trouver les fichiers envoyés deux fois." 549 550 #: admin/views/dashboard.php:305 551 msgid "Media > Duplicate files" 552 msgstr "Médias > Fichiers en double" 553 554 #: admin/views/dashboard.php:319 555 msgid "%1$s image is wider than %2$s px." 556 msgid_plural "%1$s images are wider than %2$s px." 557 msgstr[0] "%1$s image dépasse %2$s px de large." 558 msgstr[1] "%1$s images dépassent %2$s px de large." 559 560 #: admin/views/dashboard.php:327 561 msgid "No image is wider than %s px." 562 msgstr "Aucune image ne dépasse %s px de large." 563 564 #: admin/views/dashboard.php:331 565 msgid "Reduce the images that are wider than you need." 566 msgstr "Réduisez les images plus larges que nécessaire." 567 568 #: admin/views/dashboard.php:43 569 msgid "Good score" 570 msgstr "Bon score" 571 572 #: admin/views/dashboard.php:45 573 msgid "Could be better" 574 msgstr "À améliorer" 575 576 #: admin/views/dashboard.php:47 577 msgid "Needs work" 578 msgstr "Faible" 579 580 #: admin/views/dashboard.php:67 581 msgid "Fill missing ALT text from the title or file name" 582 msgstr "Remplir les ALT manquants à partir du titre ou du nom de fichier" 583 584 #: admin/views/dashboard.php:69 585 msgid "Clear the title, after using it as ALT text" 586 msgstr "Effacer le titre, après s’en être servi comme ALT" 587 588 #: admin/views/dashboard.php:72 589 msgid "Resize images wider than %s px" 590 msgstr "Réduire les images de plus de %s px" 309 591 310 592 #: admin/views/duplicates-similar.php:108 … … 317 599 318 600 #: admin/views/duplicates-similar.php:125 319 #: admin/views/duplicates.php:20 4320 #: admin/views/duplicates.php:3 48601 #: admin/views/duplicates.php:208 602 #: admin/views/duplicates.php:352 321 603 #: includes/duplicates/class-filikod-duplicates.php:248 322 604 msgid "ID %d" … … 324 606 325 607 #: admin/views/duplicates-similar.php:156 326 #: admin/views/duplicates.php:2 29327 #: admin/views/duplicates.php:3 78608 #: admin/views/duplicates.php:233 609 #: admin/views/duplicates.php:382 328 610 msgid "No ALT" 329 611 msgstr "Sans ALT" 330 612 331 613 #: admin/views/duplicates-similar.php:164 332 #: admin/views/duplicates.php:23 3333 #: admin/views/duplicates.php:3 86614 #: admin/views/duplicates.php:237 615 #: admin/views/duplicates.php:390 334 616 msgid "Edit" 335 617 msgstr "Modifier" 336 618 337 619 #: admin/views/duplicates-similar.php:166 338 #: admin/views/duplicates.php:23 5339 #: admin/views/duplicates.php:3 88620 #: admin/views/duplicates.php:239 621 #: admin/views/duplicates.php:392 340 622 msgid "Library" 341 623 msgstr "Médiathèque" … … 359 641 360 642 #: admin/views/duplicates-similar.php:190 361 #: admin/views/duplicates.php:41 2643 #: admin/views/duplicates.php:416 362 644 msgid "Page %1$d of %2$d (%3$d groups)" 363 645 msgstr "Page %1$d sur %2$d (%3$d groupes)" … … 407 689 msgstr "Aucune image semblable dans cette liste." 408 690 409 #: admin/views/duplicates.php:107 691 #: admin/views/duplicates.php:103 692 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." 693 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." 694 695 #: admin/views/duplicates.php:111 410 696 msgid "%1$s of %2$s images fingerprinted." 411 697 msgstr "%1$s images sur %2$s ont une empreinte." 412 698 413 #: admin/views/duplicates.php:11 5699 #: admin/views/duplicates.php:119 414 700 msgid "%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:1 19701 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." 702 703 #: admin/views/duplicates.php:123 418 704 msgid "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:12 5705 msgstr "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 422 708 msgid "%s images have no file on disk (broken attachments) and cannot be fingerprinted." 423 709 msgstr "%s images n’ont aucun fichier sur le disque (fichiers joints cassés) et ne peuvent pas recevoir d’empreinte." 424 710 425 #: admin/views/duplicates.php:13 4711 #: admin/views/duplicates.php:138 426 712 msgid "%s images have no visual signature yet (Similar images tab): \"Scan library\" computes them." 427 713 msgstr "%s images n’ont pas encore de signature visuelle (onglet Images semblables) : « Analyser la médiathèque » les calcule." 428 714 429 #: admin/views/duplicates.php:14 1715 #: admin/views/duplicates.php:145 430 716 msgid "Scan library" 431 717 msgstr "Analyser la médiathèque" 432 718 433 #: admin/views/duplicates.php:14 4719 #: admin/views/duplicates.php:148 434 720 msgid "Full rescan" 435 721 msgstr "Analyse complète" 436 722 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 724 msgid "Duplicates" 725 msgstr "Doublons" 726 727 #: admin/views/duplicates.php:170 450 728 msgid "Duplicated files" 451 729 msgstr "Fichiers en double" 452 730 453 #: admin/views/duplicates.php:1 69731 #: admin/views/duplicates.php:173 454 732 msgid "Similar images" 455 733 msgstr "Images semblables" 456 734 457 #: admin/views/duplicates.php:17 2735 #: admin/views/duplicates.php:176 458 736 msgid "Missing files" 459 737 msgstr "Fichiers manquants" 460 738 461 #: admin/views/duplicates.php:18 4739 #: admin/views/duplicates.php:188 462 740 msgid "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:1 87741 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." 742 743 #: admin/views/duplicates.php:191 466 744 msgid "No missing file among the scanned images." 467 745 msgstr "Aucun fichier manquant parmi les images analysées." 468 746 469 #: admin/views/duplicates.php:19 3747 #: admin/views/duplicates.php:197 470 748 msgid "Expected file" 471 749 msgstr "Fichier attendu" 472 750 473 #: admin/views/duplicates.php:2 79751 #: admin/views/duplicates.php:283 474 752 msgid "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." 475 753 msgstr "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." 476 754 477 #: admin/views/duplicates.php:28 3755 #: admin/views/duplicates.php:287 478 756 msgid "Media linked as translations of each other (Polylang, WPML, Bogo) are intentional and never listed here." 479 757 msgstr "Les médias liés comme traductions les uns des autres (Polylang, WPML, Bogo) sont volontaires et ne sont jamais listés ici." 480 758 481 #: admin/views/duplicates.php:2 89759 #: admin/views/duplicates.php:293 482 760 msgid "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:29 1761 msgstr "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 486 764 msgid "No duplicate images found among the fingerprinted files." 487 765 msgstr "Aucune image en double parmi les fichiers analysés." 488 766 489 #: admin/views/duplicates.php: 297767 #: admin/views/duplicates.php:301 490 768 msgid "%1$s groups, %2$s redundant files, %3$s that could be freed by keeping a single copy per group." 491 769 msgstr "%1$s groupes, %2$s fichiers redondants, %3$s libérables en ne gardant qu’une copie par groupe." 492 770 493 #: admin/views/duplicates.php:33 3771 #: admin/views/duplicates.php:337 494 772 msgid "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"773 msgstr "Groupe %1$d : %2$d copies identiques, %3$s libérables" 496 774 497 775 #: admin/views/duplicates.php:48 498 776 msgid "Reference" 499 msgstr " Référence"777 msgstr "Original" 500 778 501 779 #: admin/views/duplicates.php:49 … … 506 784 #: admin/views/duplicates.php:52 507 785 msgid "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."786 msgstr "Copie la plus ancienne de ce fichier : celle à garder, sauf si une autre copie est celle réellement utilisée dans vos contenus." 509 787 510 788 #: admin/views/duplicates.php:53 … … 512 790 msgstr "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." 513 791 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 793 msgid "Reduce the images already in your Media Library that are wider than you need. Smaller files load faster." 794 msgstr "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 797 msgid "To resize new uploads automatically, turn on Automatic Image Resizing in %s." 798 msgstr "Pour réduire automatiquement les prochaines images, activez « Redimensionnement automatique des images » dans %s." 799 800 #: admin/views/resize.php:28 801 msgid "Filikod > Settings" 802 msgstr "Filikod > Réglages" 527 803 528 804 #: admin/views/settings.php:109 … … 533 809 #: admin/views/settings.php:111 534 810 msgid "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." 811 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)." 540 812 541 813 #: admin/views/settings.php:136 542 msgid " Resize Existing Images"543 msgstr " Redimensionner les images existantes"544 545 #: admin/views/settings.php:1 61546 #: admin/views/settings.php: 312547 #: admin/views/settings.php:3 76814 msgid "Automatic options apply to new uploads. To resize the images already in your Media Library, use %s." 815 msgstr "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 548 820 msgid "Save Changes" 549 821 msgstr "Enregistrer les modifications" 550 822 551 #: admin/views/settings.php:1 69823 #: admin/views/settings.php:155 552 824 msgid "Configure automatic accessibility improvements for your images." 553 825 msgstr "Configurer les améliorations d’accessibilité pour vos images." 554 826 555 #: admin/views/settings.php:1 79556 #: admin/views/settings.php:1 95827 #: admin/views/settings.php:165 828 #: admin/views/settings.php:181 557 829 msgid "Automatic ALT Text Generation" 558 830 msgstr "Génération automatique de texte ALT" 559 831 560 #: admin/views/settings.php:1 81832 #: admin/views/settings.php:167 561 833 msgid "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: 204565 #: admin/views/settings.php:2 26834 msgstr "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 566 838 msgid "Remove Title Attribute" 567 839 msgstr "Retirer l’attribut titre" 568 840 569 #: admin/views/settings.php: 206841 #: admin/views/settings.php:192 570 842 msgid "Automatically remove the title attribute from images. This improves accessibility and prevents redundant information." 571 843 msgstr "Retirer automatiquement l’attribut titre des images. Améliore l’accessibilité et évite les informations redondantes." 572 844 573 #: admin/views/settings.php: 210845 #: admin/views/settings.php:196 574 846 msgid "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." 847 msgstr "Images avec un titre dans votre médiathèque :" 848 849 #: admin/views/settings.php:198 850 msgid "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." 851 msgstr "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 855 msgid "Remove Special Characters from ALT Text" 856 msgstr "Retirer les caractères spéciaux du texte ALT" 857 858 #: admin/views/settings.php:223 859 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. Applies to new uploads." 860 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 nouveaux envois." 580 861 581 862 #: admin/views/settings.php:23 582 #: admin/views/settings.php:1 68863 #: admin/views/settings.php:154 583 864 msgid "Accessibility / SEO" 584 865 msgstr "Accessibilité / SEO" 585 586 #: admin/views/settings.php:235587 #: admin/views/settings.php:251588 msgid "Remove Special Characters from ALT Text"589 msgstr "Retirer les caractères spéciaux du texte ALT"590 591 #: admin/views/settings.php:237592 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."594 866 595 867 #: admin/views/settings.php:24 … … 597 869 msgstr "Optimisations" 598 870 871 #: admin/views/settings.php:246 872 #: admin/views/settings.php:262 873 msgid "Hide ALT badges on Media Library thumbnails" 874 msgstr "Masquer les badges ALT sur les vignettes de la médiathèque" 875 876 #: admin/views/settings.php:248 877 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." 878 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." 879 599 880 #: admin/views/settings.php:25 600 881 msgid "File types" … … 605 886 msgstr "PRO" 606 887 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 889 msgid "Automatic options apply to new uploads. To process the images already in your Media Library, use %s." 890 msgstr "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 625 893 msgid "Authorized File Types" 626 894 msgstr "Formats de fichiers autorisés" 627 895 628 #: admin/views/settings.php:3 45896 #: admin/views/settings.php:317 629 897 msgid "SVG XML will be automatically filtered for security" 630 898 msgstr "SVG XML sera automatiquement filtré par sécurité" 631 899 632 #: admin/views/settings.php:3 85900 #: admin/views/settings.php:357 633 901 msgid "Filikod Pro is in preparation" 634 902 msgstr "Filikod Pro est en préparation" 635 903 636 #: admin/views/settings.php:3 86904 #: admin/views/settings.php:358 637 905 msgid "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:3 88906 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." 907 908 #: admin/views/settings.php:360 641 909 msgid "Scheduled audits with an e-mail report when the score drops." 642 910 msgstr "Audits planifiés avec un rapport par e-mail quand le score baisse." 643 911 644 #: admin/views/settings.php:3 89912 #: admin/views/settings.php:361 645 913 msgid "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:3 90914 msgstr "Audit des textes alternatifs du contenu publié et pas seulement de la médiathèque." 915 916 #: admin/views/settings.php:362 649 917 msgid "Exportable reports (CSV, PDF) for clients and accessibility reviews (WCAG 2.1 success criterion 1.1.1)." 650 918 msgstr "Rapports exportables (CSV, PDF) pour les clients et les revues d’accessibilité (critère de succès 1.1.1 des WCAG 2.1)." 651 919 652 #: admin/views/settings.php:3 91920 #: admin/views/settings.php:363 653 921 msgid "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:3 94922 msgstr "Règles personnalisées : seuils, termes génériques par langue, exclusions." 923 924 #: admin/views/settings.php:366 657 925 msgid "Tell us which feature you need first" 658 926 msgstr "Dites-nous quelle fonctionnalité vous attendez en premier" … … 675 943 msgstr "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." 676 944 677 #: admin/views/settings.php:86678 msgid "Maximum Image Width"679 msgstr "Largeur maximale de l’image"680 681 945 #: admin/views/settings.php:88 682 946 msgid "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." 683 947 msgstr "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." 684 948 685 #: filikod.php:2 61949 #: filikod.php:273 686 950 msgid "Filikod requires WordPress 5.8 or higher." 687 951 msgstr "Filikod nécessite une version de WordPress 5.8 ou supérieure." 688 952 689 #: filikod.php:2 71953 #: filikod.php:283 690 954 msgid "Filikod requires PHP 7.4 or higher." 691 955 msgstr "Filikod nécessite une version de PHP 7.4 ou supérieure." 692 956 693 #: includes/admin/class-filikod-admin.php:141 957 #: includes/admin/class-filikod-admin.php:192 958 msgid "Open Filikod" 959 msgstr "Ouvrir Filikod" 960 961 #: includes/admin/class-filikod-admin.php:238 694 962 msgid "Settings saved successfully!" 695 963 msgstr "Les réglages ont bien été enregistrés !" 696 964 697 #: includes/admin/class-filikod-admin.php: 142965 #: includes/admin/class-filikod-admin.php:239 698 966 msgid "Error saving settings." 699 967 msgstr "Erreur dans l’enregistrement des réglages." 700 968 701 #: includes/admin/class-filikod-admin.php: 143969 #: includes/admin/class-filikod-admin.php:240 702 970 msgid "Processing..." 703 971 msgstr "Traitement en cours…" 704 972 705 #: includes/admin/class-filikod-admin.php:144 973 #: includes/admin/class-filikod-admin.php:241 974 #: includes/dashboard/class-filikod-dashboard.php:109 706 975 #: includes/duplicates/class-filikod-visual-duplicates.php:750 707 976 msgid "An error occurred." 708 977 msgstr "Une erreur s’est produite." 709 978 710 #: includes/admin/class-filikod-admin.php: 145979 #: includes/admin/class-filikod-admin.php:242 711 980 msgid "An error occurred during processing." 712 981 msgstr "Une erreur s’est produite durant le traitement." 713 982 714 #: includes/admin/class-filikod-admin.php: 146983 #: includes/admin/class-filikod-admin.php:243 715 984 msgid "Starting processing..." 716 985 msgstr "Traitement en cours…" 717 986 718 #: includes/admin/class-filikod-admin.php: 147987 #: includes/admin/class-filikod-admin.php:244 719 988 msgid "images resized" 720 989 msgstr "images retaillées" 721 990 722 #: includes/admin/class-filikod-admin.php: 148991 #: includes/admin/class-filikod-admin.php:245 723 992 msgid "image resized" 724 993 msgstr "image retaillée" 725 994 726 #: includes/admin/class-filikod-admin.php: 149995 #: includes/admin/class-filikod-admin.php:246 727 996 msgid "ignored" 728 997 msgstr "ignoré" 729 998 730 #: includes/admin/class-filikod-admin.php: 150999 #: includes/admin/class-filikod-admin.php:247 731 1000 msgid "saved" 732 1001 msgstr "enregistré" 733 1002 734 #: includes/admin/class-filikod-admin.php: 1521003 #: includes/admin/class-filikod-admin.php:249 735 1004 msgid "Resize complete: %1$d images resized, %2$d ignored. Space saved: %3$s" 736 1005 msgstr "Traitement validé : %1$d images traitées, %2$d ignorées. Gain de place : %3$s" 737 1006 738 #: includes/admin/class-filikod-admin.php: 1531007 #: includes/admin/class-filikod-admin.php:250 739 1008 msgid "Unable to retrieve image count" 740 1009 msgstr "Impossible de récupérer le total des images" 741 1010 742 #: includes/admin/class-filikod-admin.php: 1541011 #: includes/admin/class-filikod-admin.php:251 743 1012 msgid "Error retrieving image count" 744 1013 msgstr "Erreur lors de la récupération du total des images" 745 1014 746 #: includes/admin/class-filikod-admin.php: 1551015 #: includes/admin/class-filikod-admin.php:252 747 1016 msgid "image processed" 748 1017 msgstr "image traitée" 749 1018 750 #: includes/admin/class-filikod-admin.php: 1561019 #: includes/admin/class-filikod-admin.php:253 751 1020 msgid "images processed" 752 1021 msgstr "images traitées" 753 1022 754 #: includes/admin/class-filikod-admin.php: 157755 #: includes/admin/class-filikod-admin.php: 1581023 #: includes/admin/class-filikod-admin.php:254 1024 #: includes/admin/class-filikod-admin.php:255 756 1025 msgid "skipped" 757 1026 msgstr "ignoré" 758 1027 759 #: includes/admin/class-filikod-admin.php: 1601028 #: includes/admin/class-filikod-admin.php:257 760 1029 msgid "Processing complete: %1$d images processed, %2$d skipped." 761 1030 msgstr "Traitement validé : %1$d images traitées, %2$d ignorées." 762 1031 763 #: includes/admin/class-filikod-admin.php:161 1032 #: includes/admin/class-filikod-admin.php:258 1033 #: includes/settings/class-filikod-settings.php:443 1034 msgid "Enter a width between 100 and 10,000 pixels." 1035 msgstr "Saisissez une largeur entre 100 et 10 000 pixels." 1036 1037 #: includes/admin/class-filikod-admin.php:260 1038 msgid "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\")." 1039 msgstr "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 1042 msgid "ALT text written: %d. No image is left without ALT." 1043 msgstr "Textes ALT écrits : %d. Plus aucune image sans ALT." 1044 1045 #: includes/admin/class-filikod-admin.php:264 1046 msgid "ALT text cleaned: %d." 1047 msgstr "Textes ALT nettoyés : %d." 1048 1049 #: includes/admin/class-filikod-admin.php:266 1050 msgid "Titles cleared: %d." 1051 msgstr "Titres effacés : %d." 1052 1053 #: includes/admin/class-filikod-admin.php:267 1054 msgid "Write them in ALT Text" 1055 msgstr "Les écrire dans Textes ALT" 1056 1057 #: includes/admin/class-filikod-admin.php:268 764 1058 msgid "Saved." 765 1059 msgstr "Enregistré." 766 1060 767 #: includes/admin/class-filikod-admin.php: 1621061 #: includes/admin/class-filikod-admin.php:269 768 1062 msgid "Error saving ALT." 769 1063 msgstr "Erreur lors de l’enregistrement du ALT." 770 1064 771 #: includes/admin/class-filikod-admin.php: 1631065 #: includes/admin/class-filikod-admin.php:270 772 1066 msgid "Marked as decorative (excluded from the ALT score)." 773 1067 msgstr "Marquée comme décorative (exclue du score ALT)." 774 1068 775 #: includes/admin/class-filikod-admin.php: 1641069 #: includes/admin/class-filikod-admin.php:271 776 1070 msgid "Image restored as a regular image, please add an ALT text." 777 1071 msgstr "Image rétablie comme image normale, veuillez ajouter un texte ALT." 778 1072 779 #: includes/admin/class-filikod-admin.php: 1661073 #: includes/admin/class-filikod-admin.php:273 780 1074 msgid "%1$d fingerprinted, %2$d skipped (%3$d%%)" 781 1075 msgstr "%1$d empreintes calculées, %2$d ignorées (%3$d %%)" 782 1076 783 #: includes/admin/class-filikod-admin.php: 1681077 #: includes/admin/class-filikod-admin.php:275 784 1078 msgid "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 1079 msgstr "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 1082 msgid "Did Filikod save you time? A review on WordPress.org helps other sites find it." 1083 msgstr "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 788 1086 msgid "Filikod" 789 1087 msgstr "Filikod" 790 1088 791 #: includes/admin/class-filikod-admin.php: 58792 #: includes/admin/class-filikod-admin.php: 591089 #: includes/admin/class-filikod-admin.php:62 1090 #: includes/admin/class-filikod-admin.php:63 793 1091 msgid "Dashboard" 794 1092 msgstr "Tableau de bord" 795 1093 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 802 1096 msgid "Settings" 803 1097 msgstr "Réglages" … … 809 1103 810 1104 #: includes/admin/class-filikod-media-alt-status.php:229 811 #: includes/dashboard/class-filikod-dashboard.php: 165812 #: includes/dashboard/class-filikod-dashboard.php:2 061105 #: includes/dashboard/class-filikod-dashboard.php:245 1106 #: includes/dashboard/class-filikod-dashboard.php:286 813 1107 msgid "Invalid attachment." 814 1108 msgstr "Fichier joint invalide." … … 821 1115 #: includes/admin/class-filikod-media-alt-status.php:291 822 1116 msgid "Alt: %s" 823 msgstr "Alt : %s"1117 msgstr "Alt : %s" 824 1118 825 1119 #: includes/admin/class-filikod-media-alt-status.php:331 826 1120 msgid "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."1121 msgstr "Le texte ALT passe tous les contrôles : présent, spécifique, de bonne longueur et unique." 828 1122 829 1123 #: includes/admin/class-filikod-media-alt-status.php:333 … … 833 1127 #: includes/admin/class-filikod-media-alt-status.php:335 834 1128 msgid "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."1129 msgstr "Le texte ALT est trop générique (par ex. « logo », « image1 »). Remplacez-le par une description propre à cette image." 836 1130 837 1131 #: includes/admin/class-filikod-media-alt-status.php:339 … … 840 1134 841 1135 #: 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."1136 msgid "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." 1137 msgstr "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." 844 1138 845 1139 #: includes/admin/class-filikod-media-alt-status.php:349 … … 857 1151 858 1152 #: 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."1153 msgid "Exact copy of an image already in the library (same file fingerprint). See Media > Duplicate files." 1154 msgstr "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." 861 1155 862 1156 #: includes/admin/class-filikod-media-alt-status.php:64 … … 870 1164 msgstr "-" 871 1165 872 #: includes/class-filikod-media-utils.php: 781166 #: includes/class-filikod-media-utils.php:165 873 1167 msgid "bytes" 874 1168 msgstr "octets" 875 1169 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 1179 msgid "Security check failed." 1180 msgstr "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 880 1187 msgid "You do not have sufficient permissions to access this page." 881 1188 msgstr "Vous n’avez pas les droits suffisants pour accéder à cette page." 882 1189 883 #: includes/dashboard/class-filikod-dashboard.php:2 131190 #: includes/dashboard/class-filikod-dashboard.php:293 884 1191 msgid "Audit module unavailable." 885 1192 msgstr "Module d’audit indisponible." 886 1193 887 #: includes/dashboard/class-filikod-dashboard.php:2 171194 #: includes/dashboard/class-filikod-dashboard.php:297 888 1195 msgid "Unable to update decorative state." 889 1196 msgstr "Impossible de mettre à jour l’état décoratif." 890 891 #: includes/duplicates/class-filikod-duplicates.php:1094892 #: includes/duplicates/class-filikod-duplicates.php:1107893 #: includes/duplicates/class-filikod-visual-duplicates.php:745894 #: includes/settings/class-filikod-settings.php:258895 #: includes/settings/class-filikod-settings.php:280896 #: includes/settings/class-filikod-settings.php:326897 #: includes/settings/class-filikod-settings.php:348898 msgid "Security check failed."899 msgstr "Le contrôle de sécurité a échoué."900 1197 901 1198 #: includes/duplicates/class-filikod-duplicates.php:234 902 1199 msgid "This file exists %d time in your library:" 903 1200 msgid_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 :"1201 msgstr[0] "Ce fichier existe %d fois dans votre médiathèque :" 1202 msgstr[1] "Ce fichier existe %d fois dans votre médiathèque :" 906 1203 907 1204 #: includes/duplicates/class-filikod-duplicates.php:253 … … 914 1211 915 1212 #: 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"1213 msgid "Review and clean up in Media > Duplicate files" 1214 msgstr "Vérifier et nettoyer dans Médias > Fichiers en double" 918 1215 919 1216 #: includes/duplicates/class-filikod-duplicates.php:307 920 1217 msgid "Duplicate file:" 921 msgstr "Fichier en double :"1218 msgstr "Fichier en double :" 922 1219 923 1220 #: includes/duplicates/class-filikod-duplicates.php:309 … … 926 1223 927 1224 #: includes/duplicates/class-filikod-duplicates.php:310 928 msgid "Review in Filikod > Duplicates"929 msgstr "Vérifier dans Filikod > Doublons"1225 msgid "Review in Media > Duplicate files" 1226 msgstr "Vérifier dans Médias > Fichiers en double" 930 1227 931 1228 #: includes/duplicates/class-filikod-duplicates.php:311 … … 1011 1308 msgstr "Impossible de lire le fichier SVG." 1012 1309 1013 #: includes/settings/class-filikod-settings.php:141 1310 #: includes/settings/class-filikod-settings.php:106 1311 msgid "image in your Media Library" 1312 msgid_plural "images in your Media Library" 1313 msgstr[0] "image dans votre médiathèque" 1314 msgstr[1] "images dans votre médiathèque" 1315 1316 #: includes/settings/class-filikod-settings.php:110 1317 msgid "image wider than %s px" 1318 msgid_plural "images wider than %s px" 1319 msgstr[0] "image de plus de %s px" 1320 msgstr[1] "images de plus de %s px" 1321 1322 #: includes/settings/class-filikod-settings.php:116 1323 msgid "image without ALT text" 1324 msgid_plural "images without ALT text" 1325 msgstr[0] "image sans texte ALT" 1326 msgstr[1] "images sans texte ALT" 1327 1328 #: includes/settings/class-filikod-settings.php:117 1329 msgid "ALT text to clean" 1330 msgid_plural "ALT texts to clean" 1331 msgstr[0] "texte ALT à nettoyer" 1332 msgstr[1] "textes ALT à nettoyer" 1333 1334 #: includes/settings/class-filikod-settings.php:118 1335 msgid "image with a title" 1336 msgid_plural "images with a title" 1337 msgstr[0] "image avec un titre" 1338 msgstr[1] "images avec un titre" 1339 1340 #: includes/settings/class-filikod-settings.php:212 1014 1341 msgid "File types saved successfully!" 1015 1342 msgstr "Formats de fichiers correctement enregistrés !" 1016 1343 1017 #: includes/settings/class-filikod-settings.php: 1871344 #: includes/settings/class-filikod-settings.php:258 1018 1345 msgid "Accessibility settings saved successfully!" 1019 1346 msgstr "Réglages d’accessibilité correctement enregistrés !" 1020 1347 1021 #: includes/settings/class-filikod-settings.php: 2321348 #: includes/settings/class-filikod-settings.php:303 1022 1349 msgid "Maximum image width must be between 100 and 10000 pixels. Value was not saved." 1023 1350 msgstr "La largeur maximale d’image doit être comprise entre 100 et 10000 pixels. La valeur n’a pas été enregistrée." 1024 1351 1025 #: includes/settings/class-filikod-settings.php: 2421352 #: includes/settings/class-filikod-settings.php:313 1026 1353 msgid "Optimization settings saved successfully!" 1027 1354 msgstr "Réglages d’optimisation correctement enregistrés !" 1355 1356 #: includes/settings/class-filikod-settings.php:366 1357 msgid "Unknown task." 1358 msgstr "Tâche inconnue." -
filikod/trunk/languages/filikod.pot
r3763820 r3833014 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Filikod 1. 3.0\n"5 "Project-Id-Version: Filikod 1.4.0\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/filikod\n" 7 "POT-Creation-Date: 2026-1 0-24 19:43+0000\n"7 "POT-Creation-Date: 2026-11-29 12:37+0000\n" 8 8 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 9 9 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 16 16 "X-Domain: filikod\n" 17 17 18 #: admin/views/alt-audit.php:109 18 #: admin/views/alt-audit.php:101 19 msgid "Every image has an ALT text." 20 msgstr "" 21 22 #: admin/views/alt-audit.php:102 23 msgid "No generic ALT text." 24 msgstr "" 25 26 #: admin/views/alt-audit.php:103 27 msgid "No ALT text is too short." 28 msgstr "" 29 30 #: admin/views/alt-audit.php:104 31 msgid "No ALT text is too long." 32 msgstr "" 33 34 #: admin/views/alt-audit.php:105 35 msgid "No ALT text is shared by several images." 36 msgstr "" 37 38 #: admin/views/alt-audit.php:106 39 msgid "No image is marked as decorative." 40 msgstr "" 41 42 #: admin/views/alt-audit.php:130 19 43 msgid "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)." 20 44 msgstr "" 21 45 22 #: admin/views/alt-audit.php:1 2223 #: includes/admin/class-filikod-admin.php: 6824 #: includes/admin/class-filikod-admin.php: 6925 msgid "ALT Audit"26 msgstr "" 27 28 #: admin/views/alt-audit.php:1 2846 #: admin/views/alt-audit.php:143 47 #: includes/admin/class-filikod-admin.php:72 48 #: includes/admin/class-filikod-admin.php:73 49 msgid "ALT Text" 50 msgstr "" 51 52 #: admin/views/alt-audit.php:149 29 53 msgid "Filter by issue type" 30 54 msgstr "" 31 55 32 #: admin/views/alt-audit.php:158 56 #: admin/views/alt-audit.php:169 57 #: admin/views/dashboard.php:286 58 msgid "Bulk actions" 59 msgstr "" 60 61 #: admin/views/alt-audit.php:176 62 msgid "Fix the images already in your Media Library in one go. Settings only apply to new uploads." 63 msgstr "" 64 65 #: admin/views/alt-audit.php:180 66 msgid "To resize large images, use %s." 67 msgstr "" 68 69 #: admin/views/alt-audit.php:181 70 #: admin/views/dashboard.php:335 71 #: admin/views/settings.php:137 72 msgid "Tools > Resize large images" 73 msgstr "" 74 75 #: admin/views/alt-audit.php:201 76 msgid "%s image has no ALT text. Write it below, or fill it from its title or file name in one go." 77 msgid_plural "%s images have no ALT text. Write them below, or fill them from their titles or file names in one go." 78 msgstr[0] "" 79 msgstr[1] "" 80 81 #: admin/views/alt-audit.php:211 82 #: admin/views/bulk.php:30 83 #: admin/views/bulk.php:33 84 msgid "Fill missing ALT text" 85 msgstr "" 86 87 #: admin/views/alt-audit.php:217 33 88 msgid "No images match this filter." 34 89 msgstr "" 35 90 36 #: admin/views/alt-audit.php: 16391 #: admin/views/alt-audit.php:222 37 92 #: admin/views/duplicates-similar.php:88 38 #: admin/views/duplicates.php:19 239 #: admin/views/duplicates.php:3 0893 #: admin/views/duplicates.php:196 94 #: admin/views/duplicates.php:312 40 95 msgid "Thumbnail" 41 96 msgstr "" 42 97 43 #: admin/views/alt-audit.php: 16498 #: admin/views/alt-audit.php:223 44 99 #: admin/views/duplicates-similar.php:89 45 #: admin/views/duplicates.php:3 09100 #: admin/views/duplicates.php:313 46 101 msgid "File name" 47 102 msgstr "" 48 103 49 #: admin/views/alt-audit.php: 166104 #: admin/views/alt-audit.php:225 50 105 msgid "Language" 51 106 msgstr "" 52 107 53 #: admin/views/alt-audit.php: 168108 #: admin/views/alt-audit.php:227 54 109 #: admin/views/duplicates-similar.php:90 55 #: admin/views/duplicates.php:19 456 #: admin/views/duplicates.php:31 0110 #: admin/views/duplicates.php:198 111 #: admin/views/duplicates.php:314 57 112 msgid "Context" 58 113 msgstr "" 59 114 60 #: admin/views/alt-audit.php: 169115 #: admin/views/alt-audit.php:228 61 116 #: admin/views/duplicates-similar.php:91 62 #: admin/views/duplicates.php:19 563 #: admin/views/duplicates.php:31 1117 #: admin/views/duplicates.php:199 118 #: admin/views/duplicates.php:315 64 119 msgid "ALT" 65 120 msgstr "" 66 121 67 #: admin/views/alt-audit.php: 170122 #: admin/views/alt-audit.php:229 68 123 #: admin/views/duplicates-similar.php:92 69 #: admin/views/duplicates.php:31 2124 #: admin/views/duplicates.php:316 70 125 msgid "Issue" 71 126 msgstr "" 72 127 73 #: admin/views/alt-audit.php: 172128 #: admin/views/alt-audit.php:231 74 129 #: admin/views/duplicates-similar.php:93 75 #: admin/views/duplicates.php: 19676 #: admin/views/duplicates.php:31 3130 #: admin/views/duplicates.php:200 131 #: admin/views/duplicates.php:317 77 132 msgid "Action" 78 133 msgstr "" 79 134 80 #: admin/views/alt-audit.php:2 31135 #: admin/views/alt-audit.php:290 81 136 msgid "empty: %s" 82 137 msgstr "" 83 138 84 #: admin/views/alt-audit.php:2 40139 #: admin/views/alt-audit.php:299 85 140 msgid "Not translated" 86 141 msgstr "" 87 142 88 #: admin/views/alt-audit.php: 252143 #: admin/views/alt-audit.php:311 89 144 msgid "ALT text for this image" 90 145 msgstr "" 91 146 92 #: admin/views/alt-audit.php: 252147 #: admin/views/alt-audit.php:311 93 148 msgid "Decorative image (alt=\"\")" 94 149 msgstr "" 95 150 96 #: admin/views/alt-audit.php: 281151 #: admin/views/alt-audit.php:340 97 152 msgid "Mark this image as a regular content image (requires an ALT text)." 98 153 msgstr "" 99 154 100 #: admin/views/alt-audit.php: 281155 #: admin/views/alt-audit.php:340 101 156 msgid "Mark this image as decorative (alt=\"\", excluded from the ALT score)." 102 157 msgstr "" 103 158 104 #: admin/views/alt-audit.php: 293159 #: admin/views/alt-audit.php:352 105 160 msgid "Save" 106 161 msgstr "" 107 162 108 #: admin/views/alt-audit.php:3 09163 #: admin/views/alt-audit.php:368 109 164 #: admin/views/duplicates-similar.php:185 110 #: admin/views/duplicates.php:2 49111 #: admin/views/duplicates.php:4 07165 #: admin/views/duplicates.php:253 166 #: admin/views/duplicates.php:411 112 167 msgid "Pagination" 113 168 msgstr "" 114 169 115 #: admin/views/alt-audit.php:3 14116 #: admin/views/duplicates.php:25 4170 #: admin/views/alt-audit.php:373 171 #: admin/views/duplicates.php:258 117 172 msgid "Page %1$d of %2$d (%3$d items)" 118 173 msgstr "" 119 174 120 #: admin/views/alt-audit.php:3 23175 #: admin/views/alt-audit.php:382 121 176 #: admin/views/duplicates-similar.php:199 122 #: admin/views/duplicates.php:26 3123 #: admin/views/duplicates.php:42 1177 #: admin/views/duplicates.php:267 178 #: admin/views/duplicates.php:425 124 179 msgid "« Previous" 125 180 msgstr "" 126 181 127 #: admin/views/alt-audit.php:3 26182 #: admin/views/alt-audit.php:385 128 183 #: admin/views/duplicates-similar.php:202 129 #: admin/views/duplicates.php:2 66130 #: admin/views/duplicates.php:42 4184 #: admin/views/duplicates.php:270 185 #: admin/views/duplicates.php:428 131 186 msgid "Next »" 132 187 msgstr "" 133 188 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 136 192 #: includes/admin/class-filikod-media-alt-status.php:303 137 193 msgid "Missing" 138 194 msgstr "" 139 195 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 142 199 #: includes/admin/class-filikod-media-alt-status.php:305 143 200 msgid "Generic" 144 201 msgstr "" 145 202 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 148 206 #: includes/admin/class-filikod-media-alt-status.php:307 149 207 msgid "Too short" 150 208 msgstr "" 151 209 152 #: admin/views/alt-audit.php: 70153 #: admin/views/dashboard.php: 115210 #: admin/views/alt-audit.php:82 211 #: admin/views/dashboard.php:89 154 212 #: includes/admin/class-filikod-media-alt-status.php:309 155 213 msgid "Too long" 156 214 msgstr "" 157 215 158 #: admin/views/alt-audit.php: 71159 #: admin/views/dashboard.php: 119216 #: admin/views/alt-audit.php:83 217 #: admin/views/dashboard.php:90 160 218 #: includes/admin/class-filikod-media-alt-status.php:311 161 219 msgid "Duplicated" 162 220 msgstr "" 163 221 164 #: admin/views/alt-audit.php: 72165 #: admin/views/alt-audit.php: 171166 #: admin/views/alt-audit.php: 283167 #: admin/views/dashboard.php: 123222 #: 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 168 226 #: includes/admin/class-filikod-media-alt-status.php:313 169 227 msgid "Decorative" 170 228 msgstr "" 171 229 172 #: admin/views/alt-audit.php: 76230 #: admin/views/alt-audit.php:88 173 231 msgid "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." 174 232 msgstr "" 175 233 176 #: admin/views/alt-audit.php: 77234 #: admin/views/alt-audit.php:89 177 235 msgid "Generic ALTs (e.g. \"logo\", \"image\") do not describe the content. Prefer a specific description for each image." 178 236 msgstr "" 179 237 180 #: admin/views/alt-audit.php: 78238 #: admin/views/alt-audit.php:90 181 239 msgid "ALT text that is too short (under 8 characters after normalization) provides little context for users or search engines." 182 240 msgstr "" 183 241 184 #: admin/views/alt-audit.php: 81185 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: 84189 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: 85242 #: admin/views/alt-audit.php:93 243 msgid "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." 244 msgstr "" 245 246 #: admin/views/alt-audit.php:96 247 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 Media > Duplicate files) sharing one ALT are not counted here." 248 msgstr "" 249 250 #: admin/views/alt-audit.php:97 193 251 msgid "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." 194 252 msgstr "" 195 253 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 255 msgid "Breadcrumb" 256 msgstr "" 257 258 #: admin/views/bulk.php:107 259 #: admin/views/duplicates.php:154 260 msgid "Important:" 261 msgstr "" 262 263 #: admin/views/bulk.php:108 264 #: admin/views/duplicates.php:155 265 msgid "Please keep this page open until the process is complete. Do not navigate away or close this page." 266 msgstr "" 267 268 #: admin/views/bulk.php:31 269 msgid "Taken from the image title or, failing that, from the file name. Existing ALT text is never changed." 270 msgstr "" 271 272 #: admin/views/bulk.php:32 273 msgid "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\"." 274 msgstr "" 275 276 #: admin/views/bulk.php:34 277 msgid "Fill the missing ALT text of your images from their titles or file names? Existing ALT text will not be changed." 278 msgstr "" 279 280 #: admin/views/bulk.php:37 281 #: admin/views/dashboard.php:68 282 msgid "Clean ALT text taken from file names" 283 msgstr "" 284 285 #: admin/views/bulk.php:38 286 msgid "\"my-photo_2024.jpg\" becomes \"my photo 2024\". ALT text written by hand keeps its punctuation." 287 msgstr "" 288 289 #: admin/views/bulk.php:39 290 msgid "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." 291 msgstr "" 292 293 #: admin/views/bulk.php:40 294 msgid "Clean ALT text" 295 msgstr "" 296 297 #: admin/views/bulk.php:41 298 msgid "Clean the ALT text taken from file names? ALT text written by hand keeps its punctuation." 299 msgstr "" 300 301 #: admin/views/bulk.php:44 302 msgid "Clear image titles" 303 msgstr "" 304 305 #: admin/views/bulk.php:45 306 msgid "Empties the Title field of every image. An image without ALT text first gets its title as ALT text. This cannot be undone." 307 msgstr "" 308 309 #: admin/views/bulk.php:46 310 msgid "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." 311 msgstr "" 312 313 #: admin/views/bulk.php:47 314 msgid "Clear titles" 315 msgstr "" 316 317 #: admin/views/bulk.php:48 318 msgid "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." 319 msgstr "" 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 326 msgid "Resize large images" 327 msgstr "" 328 329 #: admin/views/bulk.php:52 330 msgid "Smaller images are left as they are. The resized file replaces the original, which cannot be undone." 331 msgstr "" 332 333 #: admin/views/bulk.php:53 334 msgid "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." 335 msgstr "" 336 337 #: admin/views/bulk.php:54 338 msgid "Resize images" 339 msgstr "" 340 341 #: admin/views/bulk.php:56 342 msgid "Resize every image wider than %d pixels? The resized files will replace the originals. This cannot be undone." 343 msgstr "" 344 345 #: admin/views/bulk.php:81 346 msgid "Learn more" 347 msgstr "" 348 349 #: admin/views/bulk.php:85 350 msgid "A title or a file name is a starting point, not a description. Check the result in Filikod > ALT Text afterwards." 351 msgstr "" 352 353 #: admin/views/bulk.php:86 354 #: admin/views/dashboard.php:212 355 msgid "Open ALT Text" 356 msgstr "" 357 358 #: admin/views/bulk.php:93 359 #: admin/views/settings.php:86 360 msgid "Maximum Image Width" 361 msgstr "" 362 363 #: admin/views/bulk.php:95 364 #: admin/views/settings.php:101 365 msgid "pixels" 366 msgstr "" 367 368 #: admin/views/dashboard-review.php:19 369 msgid "Close this message" 370 msgstr "" 371 372 #: admin/views/dashboard-review.php:24 373 msgid "Is Filikod helping you?" 374 msgstr "" 375 376 #: admin/views/dashboard-review.php:30 377 msgid "Filikod has checked %s image in your Media Library. A review on WordPress.org takes a minute and helps other sites find Filikod." 378 msgid_plural "Filikod has checked %s images in your Media Library. A review on WordPress.org takes a minute and helps other sites find Filikod." 379 msgstr[0] "" 380 msgstr[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 386 msgid "(opens in a new tab)" 387 msgstr "" 388 389 #: admin/views/dashboard-review.php:43 390 #: includes/admin/class-filikod-admin.php:284 391 msgid "Leave a review" 392 msgstr "" 393 394 #: admin/views/dashboard-review.php:46 395 #: admin/views/dashboard.php:100 396 msgid "A problem? Ask on the support forum" 397 msgstr "" 398 399 #: admin/views/dashboard-review.php:48 400 #: includes/admin/class-filikod-admin.php:285 401 msgid "Maybe later" 402 msgstr "" 403 404 #: admin/views/dashboard-review.php:49 405 msgid "I already did" 406 msgstr "" 407 408 #: admin/views/dashboard.php:126 409 msgid "Alt Text Health" 222 410 msgstr "" 223 411 224 412 #: admin/views/dashboard.php:134 225 msgid " Resizing size impact"413 msgid "ALT score: %d out of 100" 226 414 msgstr "" 227 415 228 416 #: 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 417 msgid "out of 100" 418 msgstr "" 419 420 #: admin/views/dashboard.php:161 421 msgid "Add an image to start the check" 422 msgstr "" 423 424 #: admin/views/dashboard.php:162 425 msgid "Filikod checks the ALT text of every image in your Media Library as soon as there is one." 426 msgstr "" 427 428 #: admin/views/dashboard.php:169 429 msgid "%1$s image to fix out of %2$s" 430 msgid_plural "%1$s images to fix out of %2$s" 431 msgstr[0] "" 432 msgstr[1] "" 433 434 #: admin/views/dashboard.php:176 435 msgid "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." 436 msgstr "" 437 438 #: admin/views/dashboard.php:186 439 msgid "%1$s: %2$s" 440 msgstr "" 441 442 #: admin/views/dashboard.php:196 443 msgid "Fix these images" 444 msgstr "" 445 446 #: admin/views/dashboard.php:204 447 msgid "%s image checked: its ALT text is usable" 448 msgid_plural "%s images checked: all have a usable ALT text" 449 msgstr[0] "" 450 msgstr[1] "" 451 452 #: admin/views/dashboard.php:21 237 453 #: 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 244 461 #: 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 249 467 msgid "Insufficient permissions." 250 468 msgstr "" 251 469 252 #: admin/views/dashboard.php:156 253 msgid "Optimized" 254 msgstr "" 255 256 #: admin/views/dashboard.php:169 470 #: admin/views/dashboard.php:210 471 msgid "Nothing urgent to fix. New images are checked as soon as they are uploaded." 472 msgstr "" 473 474 #: admin/views/dashboard.php:223 475 msgid "Next uploads" 476 msgstr "" 477 478 #: admin/views/dashboard.php:228 479 msgid "Off" 480 msgstr "" 481 482 #: admin/views/dashboard.php:228 483 msgid "On" 484 msgstr "" 485 486 #: admin/views/dashboard.php:232 487 msgid "Change in Settings" 488 msgstr "" 489 490 #: admin/views/dashboard.php:239 257 491 msgid "Library Overview" 258 492 msgstr "" 259 493 260 #: admin/views/dashboard.php: 173494 #: admin/views/dashboard.php:243 261 495 msgid "Total Images" 262 496 msgstr "" 263 497 264 #: admin/views/dashboard.php: 177498 #: admin/views/dashboard.php:247 265 499 msgid "Total Media Size" 266 500 msgstr "" 267 501 268 #: admin/views/dashboard.php: 181502 #: admin/views/dashboard.php:251 269 503 msgid "Average size per image" 270 504 msgstr "" 271 505 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 278 508 msgid "Duplicate images" 279 509 msgstr "" 280 510 281 #: admin/views/dashboard.php: 193511 #: admin/views/dashboard.php:263 282 512 msgid "%1$s groups, %2$s wasted" 283 513 msgstr "" 284 514 285 #: admin/views/dashboard.php:2 03515 #: admin/views/dashboard.php:273 286 516 msgid "Scan the library to detect duplicates" 287 517 msgstr "" 288 518 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 520 msgid "Filikod tools" 521 msgstr "" 522 523 #: admin/views/dashboard.php:287 524 msgid "Fill missing ALT text, clean ALT text taken from file names or clear image titles in one go." 525 msgstr "" 526 527 #: admin/views/dashboard.php:288 528 #: admin/views/settings.php:274 529 msgid "Filikod > ALT Text > Bulk actions" 530 msgstr "" 531 532 #: admin/views/dashboard.php:290 533 #: admin/views/dashboard.php:307 534 #: admin/views/dashboard.php:337 535 msgid "Open" 536 msgstr "" 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 542 msgid "Duplicate files" 543 msgstr "" 544 545 #: admin/views/dashboard.php:299 546 msgid "Find the files uploaded twice and free up space in your Media Library." 547 msgstr "" 548 549 #: admin/views/dashboard.php:301 550 msgid "Scan your Media Library once to find the files uploaded twice." 551 msgstr "" 552 553 #: admin/views/dashboard.php:305 554 msgid "Media > Duplicate files" 555 msgstr "" 556 557 #: admin/views/dashboard.php:319 558 msgid "%1$s image is wider than %2$s px." 559 msgid_plural "%1$s images are wider than %2$s px." 560 msgstr[0] "" 561 msgstr[1] "" 562 563 #: admin/views/dashboard.php:327 564 msgid "No image is wider than %s px." 565 msgstr "" 566 567 #: admin/views/dashboard.php:331 568 msgid "Reduce the images that are wider than you need." 569 msgstr "" 570 571 #: admin/views/dashboard.php:43 572 msgid "Good score" 573 msgstr "" 574 575 #: admin/views/dashboard.php:45 576 msgid "Could be better" 577 msgstr "" 578 579 #: admin/views/dashboard.php:47 580 msgid "Needs work" 581 msgstr "" 582 583 #: admin/views/dashboard.php:67 584 msgid "Fill missing ALT text from the title or file name" 585 msgstr "" 586 587 #: admin/views/dashboard.php:69 588 msgid "Clear the title, after using it as ALT text" 589 msgstr "" 590 591 #: admin/views/dashboard.php:72 592 msgid "Resize images wider than %s px" 311 593 msgstr "" 312 594 … … 320 602 321 603 #: admin/views/duplicates-similar.php:125 322 #: admin/views/duplicates.php:20 4323 #: admin/views/duplicates.php:3 48604 #: admin/views/duplicates.php:208 605 #: admin/views/duplicates.php:352 324 606 #: includes/duplicates/class-filikod-duplicates.php:248 325 607 msgid "ID %d" … … 327 609 328 610 #: admin/views/duplicates-similar.php:156 329 #: admin/views/duplicates.php:2 29330 #: admin/views/duplicates.php:3 78611 #: admin/views/duplicates.php:233 612 #: admin/views/duplicates.php:382 331 613 msgid "No ALT" 332 614 msgstr "" 333 615 334 616 #: admin/views/duplicates-similar.php:164 335 #: admin/views/duplicates.php:23 3336 #: admin/views/duplicates.php:3 86617 #: admin/views/duplicates.php:237 618 #: admin/views/duplicates.php:390 337 619 msgid "Edit" 338 620 msgstr "" 339 621 340 622 #: admin/views/duplicates-similar.php:166 341 #: admin/views/duplicates.php:23 5342 #: admin/views/duplicates.php:3 88623 #: admin/views/duplicates.php:239 624 #: admin/views/duplicates.php:392 343 625 msgid "Library" 344 626 msgstr "" … … 362 644 363 645 #: admin/views/duplicates-similar.php:190 364 #: admin/views/duplicates.php:41 2646 #: admin/views/duplicates.php:416 365 647 msgid "Page %1$d of %2$d (%3$d groups)" 366 648 msgstr "" … … 410 692 msgstr "" 411 693 412 #: admin/views/duplicates.php:107 694 #: admin/views/duplicates.php:103 695 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." 696 msgstr "" 697 698 #: admin/views/duplicates.php:111 413 699 msgid "%1$s of %2$s images fingerprinted." 414 700 msgstr "" 415 701 416 #: admin/views/duplicates.php:11 5702 #: admin/views/duplicates.php:119 417 703 msgid "%s images are still waiting. \"Scan library\" fingerprints them; \"Full rescan\" recomputes every fingerprint, useful after files were replaced outside WordPress." 418 704 msgstr "" 419 705 420 #: admin/views/duplicates.php:1 19706 #: admin/views/duplicates.php:123 421 707 msgid "Every image is fingerprinted. \"Full rescan\" recomputes every fingerprint, useful after files were replaced outside WordPress." 422 708 msgstr "" 423 709 424 #: admin/views/duplicates.php:12 5710 #: admin/views/duplicates.php:129 425 711 msgid "%s images have no file on disk (broken attachments) and cannot be fingerprinted." 426 712 msgstr "" 427 713 428 #: admin/views/duplicates.php:13 4714 #: admin/views/duplicates.php:138 429 715 msgid "%s images have no visual signature yet (Similar images tab): \"Scan library\" computes them." 430 716 msgstr "" 431 717 432 #: admin/views/duplicates.php:14 1718 #: admin/views/duplicates.php:145 433 719 msgid "Scan library" 434 720 msgstr "" 435 721 436 #: admin/views/duplicates.php:14 4722 #: admin/views/duplicates.php:148 437 723 msgid "Full rescan" 438 724 msgstr "" 439 725 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 727 msgid "Duplicates" 728 msgstr "" 729 730 #: admin/views/duplicates.php:170 453 731 msgid "Duplicated files" 454 732 msgstr "" 455 733 456 #: admin/views/duplicates.php:1 69734 #: admin/views/duplicates.php:173 457 735 msgid "Similar images" 458 736 msgstr "" 459 737 460 #: admin/views/duplicates.php:17 2738 #: admin/views/duplicates.php:176 461 739 msgid "Missing files" 462 740 msgstr "" 463 741 464 #: admin/views/duplicates.php:18 4742 #: admin/views/duplicates.php:188 465 743 msgid "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." 466 744 msgstr "" 467 745 468 #: admin/views/duplicates.php:1 87746 #: admin/views/duplicates.php:191 469 747 msgid "No missing file among the scanned images." 470 748 msgstr "" 471 749 472 #: admin/views/duplicates.php:19 3750 #: admin/views/duplicates.php:197 473 751 msgid "Expected file" 474 752 msgstr "" 475 753 476 #: admin/views/duplicates.php:2 79754 #: admin/views/duplicates.php:283 477 755 msgid "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." 478 756 msgstr "" 479 757 480 #: admin/views/duplicates.php:28 3758 #: admin/views/duplicates.php:287 481 759 msgid "Media linked as translations of each other (Polylang, WPML, Bogo) are intentional and never listed here." 482 760 msgstr "" 483 761 484 #: admin/views/duplicates.php:2 89762 #: admin/views/duplicates.php:293 485 763 msgid "No scan yet. Click \"Scan library\" above to fingerprint your images." 486 764 msgstr "" 487 765 488 #: admin/views/duplicates.php:29 1766 #: admin/views/duplicates.php:295 489 767 msgid "No duplicate images found among the fingerprinted files." 490 768 msgstr "" 491 769 492 #: admin/views/duplicates.php: 297770 #: admin/views/duplicates.php:301 493 771 msgid "%1$s groups, %2$s redundant files, %3$s that could be freed by keeping a single copy per group." 494 772 msgstr "" 495 773 496 #: admin/views/duplicates.php:33 3774 #: admin/views/duplicates.php:337 497 775 msgid "Group %1$d: %2$d identical copies, %3$s could be freed" 498 776 msgstr "" … … 515 793 msgstr "" 516 794 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 796 msgid "Reduce the images already in your Media Library that are wider than you need. Smaller files load faster." 797 msgstr "" 798 799 #: admin/views/resize.php:27 800 msgid "To resize new uploads automatically, turn on Automatic Image Resizing in %s." 801 msgstr "" 802 803 #: admin/views/resize.php:28 804 msgid "Filikod > Settings" 529 805 msgstr "" 530 806 … … 538 814 msgstr "" 539 815 540 #: admin/views/settings.php:133541 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 544 816 #: admin/views/settings.php:136 545 msgid " Resize Existing Images"546 msgstr "" 547 548 #: admin/views/settings.php:1 61549 #: admin/views/settings.php: 312550 #: admin/views/settings.php:3 76817 msgid "Automatic options apply to new uploads. To resize the images already in your Media Library, use %s." 818 msgstr "" 819 820 #: admin/views/settings.php:147 821 #: admin/views/settings.php:284 822 #: admin/views/settings.php:348 551 823 msgid "Save Changes" 552 824 msgstr "" 553 825 554 #: admin/views/settings.php:1 69826 #: admin/views/settings.php:155 555 827 msgid "Configure automatic accessibility improvements for your images." 556 828 msgstr "" 557 829 558 #: admin/views/settings.php:1 79559 #: admin/views/settings.php:1 95830 #: admin/views/settings.php:165 831 #: admin/views/settings.php:181 560 832 msgid "Automatic ALT Text Generation" 561 833 msgstr "" 562 834 563 #: admin/views/settings.php:1 81835 #: admin/views/settings.php:167 564 836 msgid "Automatically generate alternative text (ALT) from the image filename. This will only apply to images that do not already have ALT text." 565 837 msgstr "" 566 838 567 #: admin/views/settings.php: 204568 #: admin/views/settings.php:2 26839 #: admin/views/settings.php:190 840 #: admin/views/settings.php:212 569 841 msgid "Remove Title Attribute" 570 842 msgstr "" 571 843 572 #: admin/views/settings.php: 206844 #: admin/views/settings.php:192 573 845 msgid "Automatically remove the title attribute from images. This improves accessibility and prevents redundant information." 574 846 msgstr "" 575 847 576 #: admin/views/settings.php: 210848 #: admin/views/settings.php:196 577 849 msgid "Images with a title in your library:" 578 850 msgstr "" 579 851 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 853 msgid "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." 854 msgstr "" 855 856 #: admin/views/settings.php:221 857 #: admin/views/settings.php:237 858 msgid "Remove Special Characters from ALT Text" 859 msgstr "" 860 861 #: admin/views/settings.php:223 862 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. Applies to new uploads." 582 863 msgstr "" 583 864 584 865 #: admin/views/settings.php:23 585 #: admin/views/settings.php:1 68866 #: admin/views/settings.php:154 586 867 msgid "Accessibility / SEO" 587 msgstr ""588 589 #: admin/views/settings.php:235590 #: admin/views/settings.php:251591 msgid "Remove Special Characters from ALT Text"592 msgstr ""593 594 #: admin/views/settings.php:237595 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."596 868 msgstr "" 597 869 … … 600 872 msgstr "" 601 873 874 #: admin/views/settings.php:246 875 #: admin/views/settings.php:262 876 msgid "Hide ALT badges on Media Library thumbnails" 877 msgstr "" 878 879 #: admin/views/settings.php:248 880 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." 881 msgstr "" 882 602 883 #: admin/views/settings.php:25 603 884 msgid "File types" … … 608 889 msgstr "" 609 890 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 892 msgid "Automatic options apply to new uploads. To process the images already in your Media Library, use %s." 893 msgstr "" 894 895 #: admin/views/settings.php:291 628 896 msgid "Authorized File Types" 629 897 msgstr "" 630 898 631 #: admin/views/settings.php:3 45899 #: admin/views/settings.php:317 632 900 msgid "SVG XML will be automatically filtered for security" 633 901 msgstr "" 634 902 635 #: admin/views/settings.php:3 85903 #: admin/views/settings.php:357 636 904 msgid "Filikod Pro is in preparation" 637 905 msgstr "" 638 906 639 #: admin/views/settings.php:3 86907 #: admin/views/settings.php:358 640 908 msgid "Filikod stays a checker: no AI, no credits, no external API. The Pro version will extend the audit, not replace your judgement." 641 909 msgstr "" 642 910 643 #: admin/views/settings.php:3 88911 #: admin/views/settings.php:360 644 912 msgid "Scheduled audits with an e-mail report when the score drops." 645 913 msgstr "" 646 914 647 #: admin/views/settings.php:3 89915 #: admin/views/settings.php:361 648 916 msgid "Alt text audit of published content, not only of the media library." 649 917 msgstr "" 650 918 651 #: admin/views/settings.php:3 90919 #: admin/views/settings.php:362 652 920 msgid "Exportable reports (CSV, PDF) for clients and accessibility reviews (WCAG 2.1 success criterion 1.1.1)." 653 921 msgstr "" 654 922 655 #: admin/views/settings.php:3 91923 #: admin/views/settings.php:363 656 924 msgid "Custom rules: thresholds, generic terms per language, exclusions." 657 925 msgstr "" 658 926 659 #: admin/views/settings.php:3 94927 #: admin/views/settings.php:366 660 928 msgid "Tell us which feature you need first" 661 929 msgstr "" … … 678 946 msgstr "" 679 947 680 #: admin/views/settings.php:86681 msgid "Maximum Image Width"682 msgstr ""683 684 948 #: admin/views/settings.php:88 685 949 msgid "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." 686 950 msgstr "" 687 951 688 #: filikod.php:2 61952 #: filikod.php:273 689 953 msgid "Filikod requires WordPress 5.8 or higher." 690 954 msgstr "" 691 955 692 #: filikod.php:2 71956 #: filikod.php:283 693 957 msgid "Filikod requires PHP 7.4 or higher." 694 958 msgstr "" 695 959 696 #: includes/admin/class-filikod-admin.php:141 960 #: includes/admin/class-filikod-admin.php:192 961 msgid "Open Filikod" 962 msgstr "" 963 964 #: includes/admin/class-filikod-admin.php:238 697 965 msgid "Settings saved successfully!" 698 966 msgstr "" 699 967 700 #: includes/admin/class-filikod-admin.php: 142968 #: includes/admin/class-filikod-admin.php:239 701 969 msgid "Error saving settings." 702 970 msgstr "" 703 971 704 #: includes/admin/class-filikod-admin.php: 143972 #: includes/admin/class-filikod-admin.php:240 705 973 msgid "Processing..." 706 974 msgstr "" 707 975 708 #: includes/admin/class-filikod-admin.php:144 976 #: includes/admin/class-filikod-admin.php:241 977 #: includes/dashboard/class-filikod-dashboard.php:109 709 978 #: includes/duplicates/class-filikod-visual-duplicates.php:750 710 979 msgid "An error occurred." 711 980 msgstr "" 712 981 713 #: includes/admin/class-filikod-admin.php: 145982 #: includes/admin/class-filikod-admin.php:242 714 983 msgid "An error occurred during processing." 715 984 msgstr "" 716 985 717 #: includes/admin/class-filikod-admin.php: 146986 #: includes/admin/class-filikod-admin.php:243 718 987 msgid "Starting processing..." 719 988 msgstr "" 720 989 721 #: includes/admin/class-filikod-admin.php: 147990 #: includes/admin/class-filikod-admin.php:244 722 991 msgid "images resized" 723 992 msgstr "" 724 993 725 #: includes/admin/class-filikod-admin.php: 148994 #: includes/admin/class-filikod-admin.php:245 726 995 msgid "image resized" 727 996 msgstr "" 728 997 729 #: includes/admin/class-filikod-admin.php: 149998 #: includes/admin/class-filikod-admin.php:246 730 999 msgid "ignored" 731 1000 msgstr "" 732 1001 733 #: includes/admin/class-filikod-admin.php: 1501002 #: includes/admin/class-filikod-admin.php:247 734 1003 msgid "saved" 735 1004 msgstr "" 736 1005 737 #: includes/admin/class-filikod-admin.php: 1521006 #: includes/admin/class-filikod-admin.php:249 738 1007 msgid "Resize complete: %1$d images resized, %2$d ignored. Space saved: %3$s" 739 1008 msgstr "" 740 1009 741 #: includes/admin/class-filikod-admin.php: 1531010 #: includes/admin/class-filikod-admin.php:250 742 1011 msgid "Unable to retrieve image count" 743 1012 msgstr "" 744 1013 745 #: includes/admin/class-filikod-admin.php: 1541014 #: includes/admin/class-filikod-admin.php:251 746 1015 msgid "Error retrieving image count" 747 1016 msgstr "" 748 1017 749 #: includes/admin/class-filikod-admin.php: 1551018 #: includes/admin/class-filikod-admin.php:252 750 1019 msgid "image processed" 751 1020 msgstr "" 752 1021 753 #: includes/admin/class-filikod-admin.php: 1561022 #: includes/admin/class-filikod-admin.php:253 754 1023 msgid "images processed" 755 1024 msgstr "" 756 1025 757 #: includes/admin/class-filikod-admin.php: 157758 #: includes/admin/class-filikod-admin.php: 1581026 #: includes/admin/class-filikod-admin.php:254 1027 #: includes/admin/class-filikod-admin.php:255 759 1028 msgid "skipped" 760 1029 msgstr "" 761 1030 762 #: includes/admin/class-filikod-admin.php: 1601031 #: includes/admin/class-filikod-admin.php:257 763 1032 msgid "Processing complete: %1$d images processed, %2$d skipped." 764 1033 msgstr "" 765 1034 766 #: includes/admin/class-filikod-admin.php:161 1035 #: includes/admin/class-filikod-admin.php:258 1036 #: includes/settings/class-filikod-settings.php:443 1037 msgid "Enter a width between 100 and 10,000 pixels." 1038 msgstr "" 1039 1040 #: includes/admin/class-filikod-admin.php:260 1041 msgid "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\")." 1042 msgstr "" 1043 1044 #: includes/admin/class-filikod-admin.php:262 1045 msgid "ALT text written: %d. No image is left without ALT." 1046 msgstr "" 1047 1048 #: includes/admin/class-filikod-admin.php:264 1049 msgid "ALT text cleaned: %d." 1050 msgstr "" 1051 1052 #: includes/admin/class-filikod-admin.php:266 1053 msgid "Titles cleared: %d." 1054 msgstr "" 1055 1056 #: includes/admin/class-filikod-admin.php:267 1057 msgid "Write them in ALT Text" 1058 msgstr "" 1059 1060 #: includes/admin/class-filikod-admin.php:268 767 1061 msgid "Saved." 768 1062 msgstr "" 769 1063 770 #: includes/admin/class-filikod-admin.php: 1621064 #: includes/admin/class-filikod-admin.php:269 771 1065 msgid "Error saving ALT." 772 1066 msgstr "" 773 1067 774 #: includes/admin/class-filikod-admin.php: 1631068 #: includes/admin/class-filikod-admin.php:270 775 1069 msgid "Marked as decorative (excluded from the ALT score)." 776 1070 msgstr "" 777 1071 778 #: includes/admin/class-filikod-admin.php: 1641072 #: includes/admin/class-filikod-admin.php:271 779 1073 msgid "Image restored as a regular image, please add an ALT text." 780 1074 msgstr "" 781 1075 782 #: includes/admin/class-filikod-admin.php: 1661076 #: includes/admin/class-filikod-admin.php:273 783 1077 msgid "%1$d fingerprinted, %2$d skipped (%3$d%%)" 784 1078 msgstr "" 785 1079 786 #: includes/admin/class-filikod-admin.php: 1681080 #: includes/admin/class-filikod-admin.php:275 787 1081 msgid "Scan complete: %1$d images fingerprinted, %2$d duplicate groups found (%3$d redundant files). Reloading..." 788 1082 msgstr "" 789 1083 790 #: includes/admin/class-filikod-admin.php:46 1084 #: includes/admin/class-filikod-admin.php:283 1085 msgid "Did Filikod save you time? A review on WordPress.org helps other sites find it." 1086 msgstr "" 1087 1088 #: includes/admin/class-filikod-admin.php:50 791 1089 msgid "Filikod" 792 1090 msgstr "" 793 1091 794 #: includes/admin/class-filikod-admin.php: 58795 #: includes/admin/class-filikod-admin.php: 591092 #: includes/admin/class-filikod-admin.php:62 1093 #: includes/admin/class-filikod-admin.php:63 796 1094 msgid "Dashboard" 797 1095 msgstr "" 798 1096 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 805 1099 msgid "Settings" 806 1100 msgstr "" … … 812 1106 813 1107 #: includes/admin/class-filikod-media-alt-status.php:229 814 #: includes/dashboard/class-filikod-dashboard.php: 165815 #: includes/dashboard/class-filikod-dashboard.php:2 061108 #: includes/dashboard/class-filikod-dashboard.php:245 1109 #: includes/dashboard/class-filikod-dashboard.php:286 816 1110 msgid "Invalid attachment." 817 1111 msgstr "" … … 843 1137 844 1138 #: 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."1139 msgid "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." 846 1140 msgstr "" 847 1141 … … 860 1154 861 1155 #: 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."1156 msgid "Exact copy of an image already in the library (same file fingerprint). See Media > Duplicate files." 863 1157 msgstr "" 864 1158 … … 873 1167 msgstr "" 874 1168 875 #: includes/class-filikod-media-utils.php: 781169 #: includes/class-filikod-media-utils.php:165 876 1170 msgid "bytes" 877 1171 msgstr "" 878 1172 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 1182 msgid "Security check failed." 1183 msgstr "" 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 883 1190 msgid "You do not have sufficient permissions to access this page." 884 1191 msgstr "" 885 1192 886 #: includes/dashboard/class-filikod-dashboard.php:2 131193 #: includes/dashboard/class-filikod-dashboard.php:293 887 1194 msgid "Audit module unavailable." 888 1195 msgstr "" 889 1196 890 #: includes/dashboard/class-filikod-dashboard.php:2 171197 #: includes/dashboard/class-filikod-dashboard.php:297 891 1198 msgid "Unable to update decorative state." 892 msgstr ""893 894 #: includes/duplicates/class-filikod-duplicates.php:1094895 #: includes/duplicates/class-filikod-duplicates.php:1107896 #: includes/duplicates/class-filikod-visual-duplicates.php:745897 #: includes/settings/class-filikod-settings.php:258898 #: includes/settings/class-filikod-settings.php:280899 #: includes/settings/class-filikod-settings.php:326900 #: includes/settings/class-filikod-settings.php:348901 msgid "Security check failed."902 1199 msgstr "" 903 1200 … … 917 1214 918 1215 #: includes/duplicates/class-filikod-duplicates.php:264 919 msgid "Review and clean up in Filikod > Duplicates"1216 msgid "Review and clean up in Media > Duplicate files" 920 1217 msgstr "" 921 1218 … … 929 1226 930 1227 #: includes/duplicates/class-filikod-duplicates.php:310 931 msgid "Review in Filikod > Duplicates"1228 msgid "Review in Media > Duplicate files" 932 1229 msgstr "" 933 1230 … … 1014 1311 msgstr "" 1015 1312 1016 #: includes/settings/class-filikod-settings.php:141 1313 #: includes/settings/class-filikod-settings.php:106 1314 msgid "image in your Media Library" 1315 msgid_plural "images in your Media Library" 1316 msgstr[0] "" 1317 msgstr[1] "" 1318 1319 #: includes/settings/class-filikod-settings.php:110 1320 msgid "image wider than %s px" 1321 msgid_plural "images wider than %s px" 1322 msgstr[0] "" 1323 msgstr[1] "" 1324 1325 #: includes/settings/class-filikod-settings.php:116 1326 msgid "image without ALT text" 1327 msgid_plural "images without ALT text" 1328 msgstr[0] "" 1329 msgstr[1] "" 1330 1331 #: includes/settings/class-filikod-settings.php:117 1332 msgid "ALT text to clean" 1333 msgid_plural "ALT texts to clean" 1334 msgstr[0] "" 1335 msgstr[1] "" 1336 1337 #: includes/settings/class-filikod-settings.php:118 1338 msgid "image with a title" 1339 msgid_plural "images with a title" 1340 msgstr[0] "" 1341 msgstr[1] "" 1342 1343 #: includes/settings/class-filikod-settings.php:212 1017 1344 msgid "File types saved successfully!" 1018 1345 msgstr "" 1019 1346 1020 #: includes/settings/class-filikod-settings.php: 1871347 #: includes/settings/class-filikod-settings.php:258 1021 1348 msgid "Accessibility settings saved successfully!" 1022 1349 msgstr "" 1023 1350 1024 #: includes/settings/class-filikod-settings.php: 2321351 #: includes/settings/class-filikod-settings.php:303 1025 1352 msgid "Maximum image width must be between 100 and 10000 pixels. Value was not saved." 1026 1353 msgstr "" 1027 1354 1028 #: includes/settings/class-filikod-settings.php: 2421355 #: includes/settings/class-filikod-settings.php:313 1029 1356 msgid "Optimization settings saved successfully!" 1030 1357 msgstr "" 1358 1359 #: includes/settings/class-filikod-settings.php:366 1360 msgid "Unknown task." 1361 msgstr "" -
filikod/trunk/readme.txt
r3763820 r3833014 6 6 Tested up to: 7.1 7 7 Requires PHP: 7.4 8 Stable tag: 1. 3.08 Stable tag: 1.4.0 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html 11 11 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.12 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. 13 13 14 14 == Description == … … 88 88 * Save instantly without leaving the page 89 89 * 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**) 90 91 91 92 Built for real media libraries with thousands of images, not tidy demos with five. … … 105 106 The 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. 106 107 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**:108 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 **Media > Duplicate files** (a Filikod screen, also reachable from the Filikod Dashboard): 108 109 109 110 * One row per copy with thumbnail, file name, ID, dimensions, size, upload date, **Context** (where it is used) and ALT text … … 115 116 Multilingual 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. 116 117 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. 118 119 119 120 Once 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. 120 121 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.122 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. 122 123 123 124 --- … … 144 145 * Bulk process your entire existing media library in one click 145 146 146 Execution order is always enforced: generate ALT from filename, clean special characters, then remove title. Predictable. Consistent. Always yours to control.147 Execution 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. 147 148 148 149 --- … … 176 177 * Compatible with Elementor, Divi, Gutenberg, WPBakery and most major page builders 177 178 * 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, MultilingualPress179 * Multilingual: Polylang, WPML, Bogo (translation links respected by the duplicate detection, language column in Filikod > ALT Text), Weglot, GTranslate, TranslatePress, MultilingualPress 179 180 * 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 180 181 * No external services required, runs entirely inside WordPress … … 189 190 2. Activate Filikod 190 191 3. Go to **Filikod > Dashboard** to see your ALT Quality Score 191 4. Go to **Filikod > ALT Audit** to find and fix issues by type192 4. Go to **Filikod > ALT Text** to find and fix issues by type 192 193 5. Open **Media > Library** to see **ALT Status** in list or grid view, and in each image's attachment details 193 194 6. Configure optional automation in **Filikod > Settings** … … 199 200 = How do I check alt text in WordPress? = 200 201 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/).202 Install 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/). 202 203 203 204 = Is Filikod an alt text checker or an alt text generator? = 204 205 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.206 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 Filikod > ALT Text like any other ALT text. 206 207 207 208 = Does Filikod make my site WCAG, ADA or EAA compliant? = … … 223 224 = Does it work on images already in my media library? = 224 225 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.226 Yes. 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. 226 227 227 228 = Does Filikod modify my image files? = … … 237 238 = Can I bulk edit ALT text? = 238 239 239 Yes. The ALT Audit pagelets you filter images by issue type (missing, generic, short, duplicated) and edit ALT text inline. Changes save instantly without reloading the page.240 Yes. 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. 240 241 241 242 = Is it compatible with Elementor, Divi, WPBakery, and Gutenberg? = … … 245 246 = Does Filikod detect duplicate images? = 246 247 247 Yes. Filikod > Duplicateslists 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.248 Yes. 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. 248 249 249 250 = Does it work on multisite installations? = … … 264 265 265 266 1. **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**.267 2. **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. 268 3. **Settings: Accessibility / SEO**: Toggles for automatic ALT from filename, optional title-attribute removal and special-character cleanup on new uploads; **Save Changes**. 268 269 4. **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. 269 270 5. **Media Library (grid)**: Thumbnails with **ALT Status** badges (e.g. **Alt: OK** on qualifying images) for a quick scan of library-wide ALT health. … … 272 273 273 274 == 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). 274 288 275 289 = 1.3.0 = … … 421 435 == Upgrade Notice == 422 436 437 = 1.4.0 = 438 Security 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 423 440 = 1.3.0 = 424 441 New 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 28 28 // Groupes d'images semblables marqués « C'est voulu » (module Doublons) 29 29 'filikod_visual_ignored', 30 // Date d'installation (bloc « Laisser un avis » du tableau de bord) 31 'filikod_installed_at', 30 32 31 33 // Options de nettoyage des caractères spéciaux … … 90 92 delete_post_meta_by_key('_filikod_visual_hash'); 91 93 94 // Choix du bloc « Laisser un avis » (méta utilisateur, partagée par tout le réseau en multisite). 95 delete_metadata('user', 0, 'filikod_review_prompt', '', true); 96 92 97 // Supprimer les tâches cron 93 98 wp_clear_scheduled_hook('filikod_cron_hook');
Note:
See TracChangeset
for help on using the changeset viewer.