Plugin Directory

Changeset 3308379


Ignore:
Timestamp:
06/09/2025 09:45:33 AM (9 months ago)
Author:
ndevfr
Message:

Update plugin to version 3.0.5

Location:
lockee
Files:
2 added
10 edited

Legend:

Unmodified
Added
Removed
  • lockee/trunk/inc/class-lockee-post-types.php

    r3308343 r3308379  
    7171  public function register_post_types()
    7272  {
     73    $menu_icon = file_get_contents(dirname(plugin_dir_path(__FILE__)) . '/images/icon.svg');
    7374    register_post_type(
    7475      'lockee_lock',
     
    106107        ),
    107108        'menu_position' => 20,
    108         'menu_icon' => 'dashicons-lock',
     109        'menu_icon' => 'data:image/svg+xml;base64,' . base64_encode($menu_icon),
    109110      )
    110111    );
  • lockee/trunk/inc/class-lockee-settings.php

    r3308343 r3308379  
    7373          'theme' => 'system',
    7474          'transparent_bg' => 0,
    75           'colors' => $this->default_colors
    76 
     75          'colors' => $this->default_colors,
     76          'confetti' => 'per-lock',
     77          'play_sound' => 'per-lock',
     78          'backspace_button' => 'per-lock',
    7779        )
    7880      )
     
    116118      'lockee-settings',
    117119      'lockee_general_section'
     120    );
     121
     122    add_settings_field(
     123      'confetti',
     124      __('Confetti animation', 'lockee'),
     125      array($this, 'render_confetti_field'),
     126      'lockee-settings',
     127      'lockee_general_section',
     128      array(
     129        'label_for' => 'confetti',
     130        'class' => 'lockee-row'
     131      )
     132    );
     133    add_settings_field(
     134      'play_sound',
     135      __('Playing sounds', 'lockee'),
     136      array($this, 'render_play_sound_field'),
     137      'lockee-settings',
     138      'lockee_general_section',
     139      array(
     140        'label_for' => 'play_sound',
     141        'class' => 'lockee-row'
     142      )
     143    );
     144    add_settings_field(
     145      'backspace_button',
     146      __('Backspace button', 'lockee'),
     147      array($this, 'render_backspace_button_field'),
     148      'lockee-settings',
     149      'lockee_general_section',
     150      array(
     151        'label_for' => 'backspace_button',
     152        'class' => 'lockee-row'
     153      )
    118154    );
    119155  }
     
    132168
    133169    $sanitized['transparent_bg'] = !empty($input['transparent_bg']) ? 1 : 0;
     170
     171    $allowed_global = array('per-lock', 'off', 'on');
     172    $sanitized['confetti'] = isset($input['confetti']) && in_array($input['confetti'], $allowed_global) ? $input['confetti'] : 'per-lock';
     173    $sanitized['play_sound'] = isset($input['play_sound']) && in_array($input['play_sound'], $allowed_global) ? $input['play_sound'] : 'per-lock';
     174    $sanitized['backspace_button'] = isset($input['backspace_button']) && in_array($input['backspace_button'], $allowed_global) ? $input['backspace_button'] : 'per-lock';
    134175
    135176    if (isset($_POST['lockee_reset_colors'])) {
     
    242283        <tr>
    243284          <th><label><?php echo esc_html($label); ?></label></th>
    244           <td style="text-align:center;">
    245             <input
    246               class="lockee-color-field"
    247               type="text"
    248               data-default-color="<?php echo esc_attr($this->default_colors['light'][$key]); ?>"
    249               name="<?php echo esc_attr($this->option_name); ?>[colors][light][<?php echo esc_attr($key); ?>]"
    250               value="<?php echo esc_attr(isset($colors['light'][$key]) ? $colors['light'][$key] : $this->default_colors['light'][$key]); ?>" />
    251           </td>
    252           <td style="text-align:center;">
    253             <input
    254               class="lockee-color-field"
    255               type="text"
    256               data-default-color="<?php echo esc_attr($this->default_colors['dark'][$key]); ?>"
    257               name="<?php echo esc_attr($this->option_name); ?>[colors][dark][<?php echo esc_attr($key); ?>]"
    258               value="<?php echo esc_attr(isset($colors['dark'][$key]) ? $colors['dark'][$key] : $this->default_colors['dark'][$key]); ?>" />
    259 
    260           </td>
     285          <?php foreach (['light', 'dark'] as $theme) : ?>
     286            <td style="text-align:center;">
     287              <input
     288                class="lockee-color-field"
     289                type="text"
     290                data-default-color="<?php echo esc_attr($this->default_colors[$theme][$key]); ?>"
     291                name="<?php echo esc_attr($this->option_name); ?>[colors][<?php echo $theme; ?>][<?php echo esc_attr($key); ?>]"
     292                value="<?php echo esc_attr(isset($colors[$theme][$key]) ? $colors[$theme][$key] : $this->default_colors[$theme][$key]); ?>" />
     293            </td>
     294          <?php endforeach; ?>
    261295        </tr>
    262296      <?php endforeach; ?>
     
    293327      <?php $this->add_force_flush_rewrite_rules(); ?>
    294328    </div>
     329  <?php
     330  }
     331
     332  // Render select for confetti
     333  public function render_confetti_field($args)
     334  {
     335    $this->render_global_select_field(array(
     336      'option_key' => 'confetti',
     337      'label_for' => $args['label_for'],
     338      'description' => __('Show confetti animation when user open the lock.', 'lockee')
     339    ));
     340  }
     341
     342  // Render select for error sound
     343  public function render_play_sound_field($args)
     344  {
     345    $this->render_global_select_field(array(
     346      'option_key' => 'play_sound',
     347      'label_for' => $args['label_for'],
     348      'description' => __('Play sound when user test a combinaison.', 'lockee')
     349    ));
     350  }
     351
     352  // Render select for backspace button
     353  public function render_backspace_button_field($args)
     354  {
     355    $this->render_global_select_field(array(
     356      'option_key' => 'backspace_button',
     357      'label_for' => $args['label_for'],
     358      'description' => __('Show a button to erase the last entered character.', 'lockee')
     359    ));
     360  }
     361
     362  private function render_global_select_field($args)
     363  {
     364    $option_key = $args['option_key'];
     365    $label_for = $args['label_for'];
     366    $description = $args['description'];
     367    $options = get_option($this->option_name, array($option_key => 'per-lock'));
     368    $current = isset($options[$option_key]) ? $options[$option_key] : 'per-lock';
     369  ?>
     370    <select id="<?php echo esc_attr($label_for); ?>"
     371      name="<?php echo esc_attr($this->option_name); ?>[<?php echo esc_attr($option_key); ?>]">
     372      <option value="per-lock" <?php selected($current, 'per-lock'); ?>>
     373        <?php esc_html_e('Use per lock setting', 'lockee'); ?>
     374      </option>
     375      <option value="off" <?php selected($current, 'off'); ?>>
     376        <?php esc_html_e('Disable for all locks', 'lockee'); ?>
     377      </option>
     378      <option value="on" <?php selected($current, 'on'); ?>>
     379        <?php esc_html_e('Enable for all locks', 'lockee'); ?>
     380      </option>
     381    </select>
     382    <p class="description"><?php echo esc_html($description); ?></p>
    295383    <?php
    296384  }
     
    361449    return $this->default_colors;
    362450  }
     451
     452  /**
     453   * Get the locks settings
     454   */
     455  public function get_lock_settings()
     456  {
     457    $options = get_option($this->option_name, array(
     458      'confetti' => 'per-lock',
     459      'play_sound' => 'per-lock',
     460      'backspace_button' => 'per-lock'
     461    ));
     462    return array(
     463      'confetti' => isset($options['confetti']) ? $options['confetti'] : 'per-lock',
     464      'play_sound' => isset($options['play_sound']) ? $options['play_sound'] : 'per-lock',
     465      'backspace_button' => isset($options['backspace_button']) ? $options['backspace_button'] : 'per-lock'
     466    );
     467  }
    363468}
  • lockee/trunk/inc/class-lockee-utils.php

    r3308343 r3308379  
    1818    $lang = self::get_language();
    1919    $theme = Lockee_Settings::get_instance()->get_theme();
     20
     21    if ($mode !== 'edit') {
     22      $options = self::apply_global_options($options);
     23    }
    2024
    2125    $system_theme = '';
     
    99103    ];
    100104  }
     105
     106  public static function apply_global_options($options)
     107  {
     108    $options_array = explode(',', $options);
     109
     110    $global_options = Lockee_Settings::get_instance()->get_lock_settings();
     111
     112    $mapOptions = array(
     113      "confetti" => "CFT",
     114      "play_sound" => "SND",
     115      "backspace_button" => "DEL",
     116    );
     117
     118    foreach ($mapOptions as $option => $option_code) {
     119      if ($global_options[$option] == 'on' && !in_array($option_code, $options_array)) {
     120        $options_array[] = $option_code;
     121      } else if ($global_options[$option] == 'off' && in_array($option_code, $options_array)) {
     122        $options_array = array_diff($options_array, [$option_code]);
     123      }
     124    }
     125
     126    return implode(',', $options_array);
     127  }
    101128}
  • lockee/trunk/languages/lockee-es.po

    r3308202 r3308379  
    55"Project-Id-Version: Lockee 2.2.3\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/lockee\n"
    7 "POT-Creation-Date: 2025-06-08T23:32:40+00:00\n"
    8 "PO-Revision-Date: 2025-06-09 01:36+0200\n"
     7"POT-Creation-Date: 2025-06-09T09:36:14+00:00\n"
     8"PO-Revision-Date: 2025-06-09 11:41+0200\n"
    99"Last-Translator: \n"
    1010"Language-Team: \n"
     
    1717
    1818#. Plugin Name of the plugin
    19 #: lockee.php inc/class-lockee-post-types.php:81
     19#: lockee.php inc/class-lockee-post-types.php:78
    2020msgid "Lockee"
    2121msgstr "Lockee"
     
    4545msgstr "https://ndev.fr/"
    4646
    47 #: inc/class-lockee-block.php:42 inc/class-lockee-block.php:47
    48 #: inc/class-lockee-block.php:55
     47#: inc/class-lockee-block.php:39 inc/class-lockee-block.php:44
     48#: inc/class-lockee-block.php:52
    4949msgid "Lock not found. Please check the block settings."
    5050msgstr ""
    5151"Candado no encontrado. Por favor, compruebe la configuración del bloque."
    5252
    53 #: inc/class-lockee-iframe.php:34
     53#: inc/class-lockee-iframe.php:30
    5454msgid "Lock not found"
    5555msgstr "Candado no encontrado"
    5656
    57 #: inc/class-lockee-metabox.php:32 inc/class-lockee-post-types.php:83
     57#: inc/class-lockee-metabox.php:28 inc/class-lockee-post-types.php:80
    5858msgid "Lock"
    5959msgstr "Candado"
    6060
    61 #: inc/class-lockee-metabox.php:41
     61#: inc/class-lockee-metabox.php:37
    6262msgid "Lock stats"
    6363msgstr "Candado stats"
    6464
    65 #: inc/class-lockee-metabox.php:64
     65#: inc/class-lockee-metabox.php:60
    6666msgid "Content to display when opening the padlock:"
    6767msgstr "Contenido a mostrar al abrir el candado:"
    6868
    69 #: inc/class-lockee-metabox.php:67
     69#: inc/class-lockee-metabox.php:63
    7070msgid "Shortcode to integrate this lock into an article or page:"
    7171msgstr "Shortcode para integrar este candado en un artículo o página:"
    7272
    73 #: inc/class-lockee-metabox.php:70
     73#: inc/class-lockee-metabox.php:66
    7474msgid "Iframe code to integrate this lock into an external page:"
    7575msgstr "Código Iframe para integrar este candado en una página externa:"
    7676
    77 #: inc/class-lockee-metabox.php:133
     77#: inc/class-lockee-metabox.php:129
    7878msgid "Attempts:"
    7979msgstr "Intentos:"
    8080
    81 #: inc/class-lockee-metabox.php:134
     81#: inc/class-lockee-metabox.php:130
    8282msgid "Openings:"
    8383msgstr "Aperturas:"
    8484
    85 #: inc/class-lockee-metabox.php:135
     85#: inc/class-lockee-metabox.php:131
    8686msgid "Success:"
    8787msgstr "Éxito:"
    8888
    89 #: inc/class-lockee-metabox.php:137
     89#: inc/class-lockee-metabox.php:133
    9090msgid "Reset statistics"
    9191msgstr "Restablecer estadísticas"
    9292
    93 #: inc/class-lockee-metabox.php:145
     93#: inc/class-lockee-metabox.php:141
    9494msgid "Do you really want to reset the statistics?"
    9595msgstr "¿De verdad quieres restablecer las estadísticas?"
    9696
    97 #: inc/class-lockee-migration.php:97
     97#: inc/class-lockee-migration.php:88
    9898msgid "Migrating locks..."
    9999msgstr "Migrando candados…"
    100100
    101 #: inc/class-lockee-migration.php:98
     101#: inc/class-lockee-migration.php:89
    102102msgid "An error occurred during migration."
    103103msgstr "Se ha producido un error durante la migración."
    104104
    105 #: inc/class-lockee-migration.php:99
     105#: inc/class-lockee-migration.php:90
    106106msgid "Migration completed successfully!"
    107107msgstr "¡Migración completada con éxito!"
    108108
    109 #: inc/class-lockee-migration.php:134 inc/class-lockee-migration.php:252
     109#: inc/class-lockee-migration.php:125 inc/class-lockee-migration.php:243
    110110msgid "Permission denied."
    111111msgstr "Permiso denegado."
    112112
    113 #: inc/class-lockee-migration.php:150 inc/class-lockee-migration.php:189
     113#: inc/class-lockee-migration.php:141 inc/class-lockee-migration.php:180
    114114msgid "Migration completed successfully."
    115115msgstr "Migración completada con éxito."
    116116
    117 #: inc/class-lockee-migration.php:158
     117#: inc/class-lockee-migration.php:149
    118118msgid "Migration not started yet."
    119119msgstr "La migración aún no ha comenzado."
    120120
    121 #: inc/class-lockee-migration.php:165 inc/class-lockee-migration.php:193
     121#: inc/class-lockee-migration.php:156 inc/class-lockee-migration.php:184
    122122msgid "Migration in progress..."
    123123msgstr "Migración en curso…"
    124124
    125 #: inc/class-lockee-migration.php:184
     125#: inc/class-lockee-migration.php:175
    126126msgid "Starting migration..."
    127127msgstr "Iniciando la migración…"
    128128
    129 #: inc/class-lockee-migration.php:185
     129#: inc/class-lockee-migration.php:176
    130130#, php-format
    131131msgid "Step 1 - Converting old locks (%d/%d)"
    132132msgstr "Paso 1 - Conversión de candados antiguos (%d/%d)"
    133133
    134 #: inc/class-lockee-migration.php:186
     134#: inc/class-lockee-migration.php:177
    135135msgid "Migration of old lock completed successfully."
    136136msgstr "Migración de candados antiguos se completó con éxito."
    137137
    138 #: inc/class-lockee-migration.php:187
     138#: inc/class-lockee-migration.php:178
    139139#, php-format
    140140msgid "Step 2 - Updating old shortcodes (%d/%d)"
    141141msgstr "Paso 2 - Actualización de shortcodes antiguos (%d/%d)"
    142142
    143 #: inc/class-lockee-migration.php:188
     143#: inc/class-lockee-migration.php:179
    144144msgid "Migration of old shortcodes completed successfully."
    145145msgstr "La migración de shortcodes antiguos se completó con éxito."
    146146
    147 #: inc/class-lockee-migration.php:247
     147#: inc/class-lockee-migration.php:238
    148148msgid "Unauthorized action."
    149149msgstr "Acción no autorizada."
    150150
    151 #: inc/class-lockee-migration.php:257
     151#: inc/class-lockee-migration.php:248
    152152msgid "A migration is already in progress. Please wait."
    153153msgstr "Una migración ya está en curso. Por favor, espere."
    154154
    155 #: inc/class-lockee-migration.php:265
     155#: inc/class-lockee-migration.php:256
    156156msgid "No migration needed."
    157157msgstr "No se necesita migración."
    158158
    159 #: inc/class-lockee-migration.php:300
     159#: inc/class-lockee-migration.php:295
    160160msgid "Lockee plugin: Migration of old locks required."
    161161msgstr "Extensión Lockee: Se requiere migración de candados antiguos."
    162162
    163 #: inc/class-lockee-migration.php:301
     163#: inc/class-lockee-migration.php:296
    164164msgid ""
    165165"You must migrate your old locks to ensure compatibility with the new version "
     
    169169"nueva versión de la extensión Lockee."
    170170
    171 #: inc/class-lockee-migration.php:306
     171#: inc/class-lockee-migration.php:301
    172172msgid "Migrate now"
    173173msgstr "Migrar ahora"
    174174
    175 #: inc/class-lockee-post-types.php:82 inc/class-lockee-post-types.php:84
     175#: inc/class-lockee-post-types.php:79 inc/class-lockee-post-types.php:81
    176176msgid "Locks"
    177177msgstr "Candados"
    178178
    179 #: inc/class-lockee-post-types.php:85
     179#: inc/class-lockee-post-types.php:82
    180180msgid "Create new"
    181181msgstr "Crear nuevo"
    182182
    183 #: inc/class-lockee-post-types.php:86
     183#: inc/class-lockee-post-types.php:83
    184184msgid "Create a new lock"
    185185msgstr "Crear una nuevo candado"
    186186
    187 #: inc/class-lockee-post-types.php:87
     187#: inc/class-lockee-post-types.php:84
    188188msgid "Edit"
    189189msgstr "Editar"
    190190
    191 #: inc/class-lockee-post-types.php:88
     191#: inc/class-lockee-post-types.php:85
    192192msgid "Edit the lock"
    193193msgstr "Editar el candado"
    194194
    195 #: inc/class-lockee-post-types.php:89
     195#: inc/class-lockee-post-types.php:86
    196196msgid "New lock"
    197197msgstr "Nuevo candado"
    198198
    199 #: inc/class-lockee-post-types.php:90 inc/class-lockee-post-types.php:91
     199#: inc/class-lockee-post-types.php:87 inc/class-lockee-post-types.php:88
    200200msgid "View lock"
    201201msgstr "Ver candado"
    202202
    203 #: inc/class-lockee-post-types.php:92
     203#: inc/class-lockee-post-types.php:89
    204204msgid "Search a lock"
    205205msgstr "Buscar un candado"
    206206
    207 #: inc/class-lockee-post-types.php:93
     207#: inc/class-lockee-post-types.php:90
    208208msgid "No lock found"
    209209msgstr "No se encontró candado"
    210210
    211 #: inc/class-lockee-post-types.php:94
     211#: inc/class-lockee-post-types.php:91
    212212msgid "No lock found in trash"
    213213msgstr "No se encontró candado en la basura"
    214214
    215 #: inc/class-lockee-post-types.php:95
     215#: inc/class-lockee-post-types.php:92
    216216msgid "Parent of lock"
    217217msgstr "Padre del candado"
    218218
    219 #: inc/class-lockee-post-types.php:271
     219#: inc/class-lockee-post-types.php:268
    220220msgid "Id"
    221221msgstr "Id"
    222222
    223 #: inc/class-lockee-post-types.php:273
     223#: inc/class-lockee-post-types.php:270
    224224msgid "Attempts"
    225225msgstr "Intentos"
    226226
    227 #: inc/class-lockee-post-types.php:275
     227#: inc/class-lockee-post-types.php:272
    228228msgid "Openings"
    229229msgstr "Aberturas"
    230230
    231 #: inc/class-lockee-post-types.php:277 inc/class-lockee-settings.php:237
     231#: inc/class-lockee-post-types.php:274 inc/class-lockee-settings.php:277
    232232msgid "Success"
    233233msgstr "Éxito"
    234234
    235 #: inc/class-lockee-post-types.php:296
     235#: inc/class-lockee-post-types.php:293
    236236msgid "Sorry, you are not allowed to access this endpoint."
    237237msgstr "Lo sentimos, no se le permite acceder a este punto final."
    238238
    239 #: inc/class-lockee-settings.php:53
     239#: inc/class-lockee-settings.php:52
    240240msgid "Lockee Configuration"
    241241msgstr "Configuración de Lockee"
    242242
    243 #: inc/class-lockee-settings.php:54
     243#: inc/class-lockee-settings.php:53
    244244msgid "Settings"
    245245msgstr "Configuración"
    246246
    247 #: inc/class-lockee-settings.php:84
     247#: inc/class-lockee-settings.php:85
    248248msgid "Global settings"
    249249msgstr "Configuración global"
    250250
    251 #: inc/class-lockee-settings.php:91
     251#: inc/class-lockee-settings.php:92
    252252msgid "Theme"
    253253msgstr "Tema"
    254254
    255 #: inc/class-lockee-settings.php:103
     255#: inc/class-lockee-settings.php:104
    256256msgid "Transparent background"
    257257msgstr "Fondo transparente"
    258258
    259 #: inc/class-lockee-settings.php:115
     259#: inc/class-lockee-settings.php:116
    260260msgid "Theme colors"
    261261msgstr "Colores del tema"
    262262
    263 #: inc/class-lockee-settings.php:167
     263#: inc/class-lockee-settings.php:124
     264msgid "Confetti animation"
     265msgstr "Animación de confeti"
     266
     267#: inc/class-lockee-settings.php:135
     268msgid "Playing sounds"
     269msgstr "Reproduciendo sonidos"
     270
     271#: inc/class-lockee-settings.php:146
     272msgid "Backspace button"
     273msgstr "Botón de retroceso"
     274
     275#: inc/class-lockee-settings.php:207
    264276msgid "Make the background transparent behind the locks."
    265277msgstr "Haz que el fondo sea transparente detrás de los candados."
    266278
    267 #: inc/class-lockee-settings.php:178
     279#: inc/class-lockee-settings.php:218
    268280msgid "Configure the general settings of the Lockee extension."
    269281msgstr "Configure la configuración general de la extensión Lockee."
    270282
    271 #: inc/class-lockee-settings.php:193
     283#: inc/class-lockee-settings.php:233
    272284msgid "System"
    273285msgstr "Sistema"
    274286
    275 #: inc/class-lockee-settings.php:196
     287#: inc/class-lockee-settings.php:236
    276288msgid "Light"
    277289msgstr "Claro"
    278290
    279 #: inc/class-lockee-settings.php:199
     291#: inc/class-lockee-settings.php:239
    280292msgid "Dark"
    281293msgstr "Oscuro"
    282294
    283 #: inc/class-lockee-settings.php:203
     295#: inc/class-lockee-settings.php:243
    284296msgid "Choose the Lockee lock display theme."
    285297msgstr "Elija el tema de visualización de candado Lockee."
    286298
    287 #: inc/class-lockee-settings.php:214
     299#: inc/class-lockee-settings.php:254
    288300msgid ""
    289301"Customize the colors of the Lockee theme for light and dark modes. Leave "
     
    293305"este campo en blanco para usar los colores predeterminados."
    294306
    295 #: inc/class-lockee-settings.php:228
     307#: inc/class-lockee-settings.php:268
    296308msgid "Light theme"
    297309msgstr "Tema claro"
    298310
    299 #: inc/class-lockee-settings.php:229
     311#: inc/class-lockee-settings.php:269
    300312msgid "Dark theme"
    301313msgstr "Tema oscuro"
    302314
    303 #: inc/class-lockee-settings.php:233
     315#: inc/class-lockee-settings.php:273
    304316msgid "Primary"
    305317msgstr "Primario"
    306318
    307 #: inc/class-lockee-settings.php:234
     319#: inc/class-lockee-settings.php:274
    308320msgid "Accent"
    309321msgstr "Acento"
    310322
    311 #: inc/class-lockee-settings.php:235
     323#: inc/class-lockee-settings.php:275
    312324msgid "Error"
    313325msgstr "Error"
    314326
    315 #: inc/class-lockee-settings.php:236
     327#: inc/class-lockee-settings.php:276
    316328msgid "Warning"
    317329msgstr "Advertencia"
    318330
    319 #: inc/class-lockee-settings.php:238
     331#: inc/class-lockee-settings.php:278
    320332msgid "Background"
    321333msgstr "Fondo"
    322334
    323 #: inc/class-lockee-settings.php:239
     335#: inc/class-lockee-settings.php:279
    324336msgid "Border"
    325337msgstr "Borde"
    326338
    327 #: inc/class-lockee-settings.php:266
     339#: inc/class-lockee-settings.php:299
    328340msgid "Reset to default colors"
    329341msgstr "Restablecer a los colores predeterminados"
    330342
    331 #: inc/class-lockee-settings.php:281
     343#: inc/class-lockee-settings.php:314
    332344msgid "Settings saved."
    333345msgstr "Ajustes guardados."
    334346
    335 #: inc/class-lockee-settings.php:291
     347#: inc/class-lockee-settings.php:324
    336348msgid "Save changes"
    337349msgstr "Guardar cambios"
    338350
    339 #: inc/class-lockee-settings.php:307
     351#: inc/class-lockee-settings.php:338
     352msgid "Show confetti animation when user open the lock."
     353msgstr "Muestra la animación de confeti cuando el usuario abra el candado."
     354
     355#: inc/class-lockee-settings.php:348
     356msgid "Play sound when user test a combinaison."
     357msgstr "Reproduce sonido cuando el usuario prueba una combinación."
     358
     359#: inc/class-lockee-settings.php:358
     360msgid "Show a button to erase the last entered character."
     361msgstr "Muestra un botón para borrar el último carácter introducido."
     362
     363#: inc/class-lockee-settings.php:373
     364msgid "Use per lock setting"
     365msgstr "Utilizar la configuración por candado"
     366
     367#: inc/class-lockee-settings.php:376
     368msgid "Disable for all locks"
     369msgstr "Deshabilitar todos los candados"
     370
     371#: inc/class-lockee-settings.php:379
     372msgid "Enable for all locks"
     373msgstr "Habilitar para todos los candados"
     374
     375#: inc/class-lockee-settings.php:394
    340376msgid "Lockee rewrite rules have been regenerated."
    341377msgstr "Las reglas de reescritura de Lockee se han regenerado."
    342378
    343 #: inc/class-lockee-settings.php:316
     379#: inc/class-lockee-settings.php:403
    344380msgid "Other settings"
    345381msgstr "Otras opciones"
    346382
    347 #: inc/class-lockee-settings.php:321
     383#: inc/class-lockee-settings.php:408
    348384msgid "Regenerate Lockee URLs"
    349385msgstr "Régénérer les URL de Lockee"
    350386
    351 #: inc/class-lockee-settings.php:324
     387#: inc/class-lockee-settings.php:411
    352388msgid "Use this only if the lock URLs are not working."
    353389msgstr "Úselo solo si las URL de candado no funcionan."
    354390
    355 #: inc/class-lockee-shortcode.php:25 inc/class-lockee-shortcode.php:33
     391#: inc/class-lockee-shortcode.php:22 inc/class-lockee-shortcode.php:30
    356392msgid "Lock not found. Please check the shortcode used."
    357393msgstr "No se encontró el candado. Por favor, revise el shortcode utilizado."
    358394
    359 #: build/lockee-block/index.js:19726 build/lockee-block/index.js:19357
     395#: build/lockee-block/index.js:1
    360396msgid "No result"
    361397msgstr "Sin resultados"
    362398
    363 #: build/lockee-block/index.js:19733 build/lockee-block/index.js:19749
    364 #: build/lockee-block/index.js:19362 build/lockee-block/index.js:19376
     399#: build/lockee-block/index.js:1
    365400msgid "Select a lock"
    366401msgstr "Seleccione un candado"
    367402
    368 #: build/lockee-block/index.js:19745 build/lockee-block/index.js:19808
    369 #: build/lockee-block/index.js:19371 build/lockee-block/index.js:19431
     403#: build/lockee-block/index.js:1
    370404msgid "Loading..."
    371405msgstr "Cargando..."
    372406
    373 #: build/lockee-block/index.js:19792 build/lockee-block/index.js:19411
     407#: build/lockee-block/index.js:1
    374408msgid "Select a lock in the block settings."
    375409msgstr "Seleccione un candado en la configuración del bloque."
    376410
    377 #: build/lockee-block/index.js:19840 build/lockee-block/index.js:19460
     411#: build/lockee-block/index.js:1
    378412msgid "Valid codes"
    379413msgstr "Códigos válidos"
    380414
    381 #: build/lockee-block/index.js:19898 build/lockee-block/index.js:19525
     415#: build/lockee-block/index.js:1
    382416msgid "Lock selection"
    383417msgstr "Selección de candado"
    384418
    385 #: build/lockee-block/index.js:19902 build/lockee-block/index.js:19526
     419#: build/lockee-block/index.js:1
    386420msgid "Filter by ID or title"
    387421msgstr "Filtrar por ID o título"
     
    399433#~ msgid "Add Lockee locks to Wordpress."
    400434#~ msgstr "Agregue los candados Lockee a Wordpress."
    401 
    402 #~ msgid "Migrate old locks"
    403 #~ msgstr "Migrar candados antiguos"
  • lockee/trunk/languages/lockee-fr_FR.po

    r3308202 r3308379  
    55"Project-Id-Version: Lockee 2.2.3\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/lockee\n"
    7 "POT-Creation-Date: 2025-06-08T23:32:40+00:00\n"
    8 "PO-Revision-Date: 2025-06-09 01:34+0200\n"
     7"POT-Creation-Date: 2025-06-09T09:36:14+00:00\n"
     8"PO-Revision-Date: 2025-06-09 11:38+0200\n"
    99"Last-Translator: \n"
    1010"Language-Team: \n"
     
    1717
    1818#. Plugin Name of the plugin
    19 #: lockee.php inc/class-lockee-post-types.php:81
     19#: lockee.php inc/class-lockee-post-types.php:78
    2020msgid "Lockee"
    2121msgstr "Lockee"
     
    4545msgstr "https://ndev.fr/"
    4646
    47 #: inc/class-lockee-block.php:42 inc/class-lockee-block.php:47
    48 #: inc/class-lockee-block.php:55
     47#: inc/class-lockee-block.php:39 inc/class-lockee-block.php:44
     48#: inc/class-lockee-block.php:52
    4949msgid "Lock not found. Please check the block settings."
    5050msgstr "Cadenas non trouvé. Veuillez vérifier les paramètres du bloc."
    5151
    52 #: inc/class-lockee-iframe.php:34
     52#: inc/class-lockee-iframe.php:30
    5353msgid "Lock not found"
    5454msgstr "Cadenas non trouvé"
    5555
    56 #: inc/class-lockee-metabox.php:32 inc/class-lockee-post-types.php:83
     56#: inc/class-lockee-metabox.php:28 inc/class-lockee-post-types.php:80
    5757msgid "Lock"
    5858msgstr "Cadenas"
    5959
    60 #: inc/class-lockee-metabox.php:41
     60#: inc/class-lockee-metabox.php:37
    6161msgid "Lock stats"
    6262msgstr "Stats du cadenas"
    6363
    64 #: inc/class-lockee-metabox.php:64
     64#: inc/class-lockee-metabox.php:60
    6565msgid "Content to display when opening the padlock:"
    6666msgstr "Contenu à afficher à l’ouverture du cadenas :"
    6767
    68 #: inc/class-lockee-metabox.php:67
     68#: inc/class-lockee-metabox.php:63
    6969msgid "Shortcode to integrate this lock into an article or page:"
    7070msgstr "Shortcode pour intégrer ce cadenas dans un article ou une page :"
    7171
    72 #: inc/class-lockee-metabox.php:70
     72#: inc/class-lockee-metabox.php:66
    7373msgid "Iframe code to integrate this lock into an external page:"
    7474msgstr "Code iframe pour intégrer ce cadenas dans une page externe :"
    7575
    76 #: inc/class-lockee-metabox.php:133
     76#: inc/class-lockee-metabox.php:129
    7777msgid "Attempts:"
    7878msgstr "Tentatives :"
    7979
    80 #: inc/class-lockee-metabox.php:134
     80#: inc/class-lockee-metabox.php:130
    8181msgid "Openings:"
    8282msgstr "Ouvertures :"
    8383
    84 #: inc/class-lockee-metabox.php:135
     84#: inc/class-lockee-metabox.php:131
    8585msgid "Success:"
    8686msgstr "Succès :"
    8787
    88 #: inc/class-lockee-metabox.php:137
     88#: inc/class-lockee-metabox.php:133
    8989msgid "Reset statistics"
    9090msgstr "Réinitialiser les statistiques"
    9191
    92 #: inc/class-lockee-metabox.php:145
     92#: inc/class-lockee-metabox.php:141
    9393msgid "Do you really want to reset the statistics?"
    9494msgstr "Voulez-vous vraiment réinitialiser les statistiques ?"
    9595
    96 #: inc/class-lockee-migration.php:97
     96#: inc/class-lockee-migration.php:88
    9797msgid "Migrating locks..."
    9898msgstr "Migration des anciens cadenas…"
    9999
    100 #: inc/class-lockee-migration.php:98
     100#: inc/class-lockee-migration.php:89
    101101msgid "An error occurred during migration."
    102102msgstr "Une erreur s’est produite durant la migration."
    103103
    104 #: inc/class-lockee-migration.php:99
     104#: inc/class-lockee-migration.php:90
    105105msgid "Migration completed successfully!"
    106106msgstr "Migration terminée avec succès !"
    107107
    108 #: inc/class-lockee-migration.php:134 inc/class-lockee-migration.php:252
     108#: inc/class-lockee-migration.php:125 inc/class-lockee-migration.php:243
    109109msgid "Permission denied."
    110110msgstr "Permission interdite."
    111111
    112 #: inc/class-lockee-migration.php:150 inc/class-lockee-migration.php:189
     112#: inc/class-lockee-migration.php:141 inc/class-lockee-migration.php:180
    113113msgid "Migration completed successfully."
    114114msgstr "Migration terminée."
    115115
    116 #: inc/class-lockee-migration.php:158
     116#: inc/class-lockee-migration.php:149
    117117msgid "Migration not started yet."
    118118msgstr "La migration n’a pas encore débutée."
    119119
    120 #: inc/class-lockee-migration.php:165 inc/class-lockee-migration.php:193
     120#: inc/class-lockee-migration.php:156 inc/class-lockee-migration.php:184
    121121msgid "Migration in progress..."
    122122msgstr "Migration en cours…"
    123123
    124 #: inc/class-lockee-migration.php:184
     124#: inc/class-lockee-migration.php:175
    125125msgid "Starting migration..."
    126126msgstr "Début de la migration…"
    127127
    128 #: inc/class-lockee-migration.php:185
     128#: inc/class-lockee-migration.php:176
    129129#, php-format
    130130msgid "Step 1 - Converting old locks (%d/%d)"
    131131msgstr "Étape 1 - Conversion des anciens cadenas (%d/%d)"
    132132
    133 #: inc/class-lockee-migration.php:186
     133#: inc/class-lockee-migration.php:177
    134134msgid "Migration of old lock completed successfully."
    135135msgstr "Migration des anciens cadenas terminée."
    136136
    137 #: inc/class-lockee-migration.php:187
     137#: inc/class-lockee-migration.php:178
    138138#, php-format
    139139msgid "Step 2 - Updating old shortcodes (%d/%d)"
    140140msgstr "Étape 2 - Mise à jour des anciens shortcodes (%d/%d)"
    141141
    142 #: inc/class-lockee-migration.php:188
     142#: inc/class-lockee-migration.php:179
    143143msgid "Migration of old shortcodes completed successfully."
    144144msgstr "Migration des anciens shortcodes terminée."
    145145
    146 #: inc/class-lockee-migration.php:247
     146#: inc/class-lockee-migration.php:238
    147147msgid "Unauthorized action."
    148148msgstr "Action non autorisée."
    149149
    150 #: inc/class-lockee-migration.php:257
     150#: inc/class-lockee-migration.php:248
    151151msgid "A migration is already in progress. Please wait."
    152152msgstr "Une migration est déjà en cours. Merci de patienter."
    153153
    154 #: inc/class-lockee-migration.php:265
     154#: inc/class-lockee-migration.php:256
    155155msgid "No migration needed."
    156156msgstr "Aucune migration nécessaire."
    157157
    158 #: inc/class-lockee-migration.php:300
     158#: inc/class-lockee-migration.php:295
    159159msgid "Lockee plugin: Migration of old locks required."
    160160msgstr "Extension Lockee : Migration des anciens cadenas requise."
    161161
    162 #: inc/class-lockee-migration.php:301
     162#: inc/class-lockee-migration.php:296
    163163msgid ""
    164164"You must migrate your old locks to ensure compatibility with the new version "
     
    168168"nouvelle version de Lockee."
    169169
    170 #: inc/class-lockee-migration.php:306
     170#: inc/class-lockee-migration.php:301
    171171msgid "Migrate now"
    172172msgstr "Migrer maintenant"
    173173
    174 #: inc/class-lockee-post-types.php:82 inc/class-lockee-post-types.php:84
     174#: inc/class-lockee-post-types.php:79 inc/class-lockee-post-types.php:81
    175175msgid "Locks"
    176176msgstr "Cadenas"
    177177
    178 #: inc/class-lockee-post-types.php:85
     178#: inc/class-lockee-post-types.php:82
    179179msgid "Create new"
    180180msgstr "Créer un nouveau"
    181181
    182 #: inc/class-lockee-post-types.php:86
     182#: inc/class-lockee-post-types.php:83
    183183msgid "Create a new lock"
    184184msgstr "Créer un nouveau cadenas"
    185185
    186 #: inc/class-lockee-post-types.php:87
     186#: inc/class-lockee-post-types.php:84
    187187msgid "Edit"
    188188msgstr "Modifier"
    189189
    190 #: inc/class-lockee-post-types.php:88
     190#: inc/class-lockee-post-types.php:85
    191191msgid "Edit the lock"
    192192msgstr "Modifier le cadenas"
    193193
    194 #: inc/class-lockee-post-types.php:89
     194#: inc/class-lockee-post-types.php:86
    195195msgid "New lock"
    196196msgstr "Nouveau cadenas"
    197197
    198 #: inc/class-lockee-post-types.php:90 inc/class-lockee-post-types.php:91
     198#: inc/class-lockee-post-types.php:87 inc/class-lockee-post-types.php:88
    199199msgid "View lock"
    200200msgstr "Voir le cadenas"
    201201
    202 #: inc/class-lockee-post-types.php:92
     202#: inc/class-lockee-post-types.php:89
    203203msgid "Search a lock"
    204204msgstr "Rechercher un cadenas"
    205205
    206 #: inc/class-lockee-post-types.php:93
     206#: inc/class-lockee-post-types.php:90
    207207msgid "No lock found"
    208208msgstr "Aucun cadenas trouvé"
    209209
    210 #: inc/class-lockee-post-types.php:94
     210#: inc/class-lockee-post-types.php:91
    211211msgid "No lock found in trash"
    212212msgstr "Aucun cadenas trouvé dans la corbeille"
    213213
    214 #: inc/class-lockee-post-types.php:95
     214#: inc/class-lockee-post-types.php:92
    215215msgid "Parent of lock"
    216216msgstr "Parent du cadenas"
    217217
    218 #: inc/class-lockee-post-types.php:271
     218#: inc/class-lockee-post-types.php:268
    219219msgid "Id"
    220220msgstr "Id"
    221221
    222 #: inc/class-lockee-post-types.php:273
     222#: inc/class-lockee-post-types.php:270
    223223msgid "Attempts"
    224224msgstr "Tentatives"
    225225
    226 #: inc/class-lockee-post-types.php:275
     226#: inc/class-lockee-post-types.php:272
    227227msgid "Openings"
    228228msgstr "Ouvertures"
    229229
    230 #: inc/class-lockee-post-types.php:277 inc/class-lockee-settings.php:237
     230#: inc/class-lockee-post-types.php:274 inc/class-lockee-settings.php:277
    231231msgid "Success"
    232232msgstr "Succès"
    233233
    234 #: inc/class-lockee-post-types.php:296
     234#: inc/class-lockee-post-types.php:293
    235235msgid "Sorry, you are not allowed to access this endpoint."
    236236msgstr "Désolé, vous n’êtes pas autorisé à accéder à cet endpoint."
    237237
    238 #: inc/class-lockee-settings.php:53
     238#: inc/class-lockee-settings.php:52
    239239msgid "Lockee Configuration"
    240240msgstr "Configuration de Lockee"
    241241
    242 #: inc/class-lockee-settings.php:54
     242#: inc/class-lockee-settings.php:53
    243243msgid "Settings"
    244244msgstr "Réglages"
    245245
    246 #: inc/class-lockee-settings.php:84
     246#: inc/class-lockee-settings.php:85
    247247msgid "Global settings"
    248248msgstr "Paramètres généraux"
    249249
    250 #: inc/class-lockee-settings.php:91
     250#: inc/class-lockee-settings.php:92
    251251msgid "Theme"
    252252msgstr "Thème"
    253253
    254 #: inc/class-lockee-settings.php:103
     254#: inc/class-lockee-settings.php:104
    255255msgid "Transparent background"
    256256msgstr "Arrière-plan transparent"
    257257
    258 #: inc/class-lockee-settings.php:115
     258#: inc/class-lockee-settings.php:116
    259259msgid "Theme colors"
    260260msgstr "Couleurs du thème"
    261261
    262 #: inc/class-lockee-settings.php:167
     262#: inc/class-lockee-settings.php:124
     263msgid "Confetti animation"
     264msgstr "Animation de confettis"
     265
     266#: inc/class-lockee-settings.php:135
     267msgid "Playing sounds"
     268msgstr "Jouer des sons"
     269
     270#: inc/class-lockee-settings.php:146
     271msgid "Backspace button"
     272msgstr "Bouton pour effacer"
     273
     274#: inc/class-lockee-settings.php:207
    263275msgid "Make the background transparent behind the locks."
    264276msgstr "Rendre l’arrière-plan transparent derrière les cadenas."
    265277
    266 #: inc/class-lockee-settings.php:178
     278#: inc/class-lockee-settings.php:218
    267279msgid "Configure the general settings of the Lockee extension."
    268280msgstr "Configurez les paramètres généraux de l’extension Lockee."
    269281
    270 #: inc/class-lockee-settings.php:193
     282#: inc/class-lockee-settings.php:233
    271283msgid "System"
    272284msgstr "Système"
    273285
    274 #: inc/class-lockee-settings.php:196
     286#: inc/class-lockee-settings.php:236
    275287msgid "Light"
    276288msgstr "Clair"
    277289
    278 #: inc/class-lockee-settings.php:199
     290#: inc/class-lockee-settings.php:239
    279291msgid "Dark"
    280292msgstr "Sombre"
    281293
    282 #: inc/class-lockee-settings.php:203
     294#: inc/class-lockee-settings.php:243
    283295msgid "Choose the Lockee lock display theme."
    284296msgstr "Choisissez le thème d’affichage des cadenas Lockee."
    285297
    286 #: inc/class-lockee-settings.php:214
     298#: inc/class-lockee-settings.php:254
    287299msgid ""
    288300"Customize the colors of the Lockee theme for light and dark modes. Leave "
     
    292304"Laissez vide pour utiliser les couleurs par défaut."
    293305
    294 #: inc/class-lockee-settings.php:228
     306#: inc/class-lockee-settings.php:268
    295307msgid "Light theme"
    296308msgstr "Thème clair"
    297309
    298 #: inc/class-lockee-settings.php:229
     310#: inc/class-lockee-settings.php:269
    299311msgid "Dark theme"
    300312msgstr "Thème sombre"
    301313
    302 #: inc/class-lockee-settings.php:233
     314#: inc/class-lockee-settings.php:273
    303315msgid "Primary"
    304316msgstr "Primaire"
    305317
    306 #: inc/class-lockee-settings.php:234
     318#: inc/class-lockee-settings.php:274
    307319msgid "Accent"
    308320msgstr "Accent"
    309321
    310 #: inc/class-lockee-settings.php:235
     322#: inc/class-lockee-settings.php:275
    311323msgid "Error"
    312324msgstr "Erreur"
    313325
    314 #: inc/class-lockee-settings.php:236
     326#: inc/class-lockee-settings.php:276
    315327msgid "Warning"
    316328msgstr "Avertissement"
    317329
    318 #: inc/class-lockee-settings.php:238
     330#: inc/class-lockee-settings.php:278
    319331msgid "Background"
    320332msgstr "Arrière-plan"
    321333
    322 #: inc/class-lockee-settings.php:239
     334#: inc/class-lockee-settings.php:279
    323335msgid "Border"
    324336msgstr "Bordure"
    325337
    326 #: inc/class-lockee-settings.php:266
     338#: inc/class-lockee-settings.php:299
    327339msgid "Reset to default colors"
    328340msgstr "Restaurer les couleurs par défaut"
    329341
    330 #: inc/class-lockee-settings.php:281
     342#: inc/class-lockee-settings.php:314
    331343msgid "Settings saved."
    332344msgstr "Paramètres sauvegardés."
    333345
    334 #: inc/class-lockee-settings.php:291
     346#: inc/class-lockee-settings.php:324
    335347msgid "Save changes"
    336348msgstr "Sauvegarder les changements"
    337349
    338 #: inc/class-lockee-settings.php:307
     350#: inc/class-lockee-settings.php:338
     351msgid "Show confetti animation when user open the lock."
     352msgstr ""
     353"Afficher une animation de confettis lorsque l’utilisateur ouvre le cadenas."
     354
     355#: inc/class-lockee-settings.php:348
     356msgid "Play sound when user test a combinaison."
     357msgstr "Jouer des sons lorsque l’utilisateur teste une combinaison."
     358
     359#: inc/class-lockee-settings.php:358
     360msgid "Show a button to erase the last entered character."
     361msgstr "Afficher un bouton pour effacer le dernier caractère saisi."
     362
     363#: inc/class-lockee-settings.php:373
     364msgid "Use per lock setting"
     365msgstr "Utiliser la configuration par cadenas"
     366
     367#: inc/class-lockee-settings.php:376
     368msgid "Disable for all locks"
     369msgstr "Désactiver pour tous les cadenas"
     370
     371#: inc/class-lockee-settings.php:379
     372msgid "Enable for all locks"
     373msgstr "Activer pour tous les cadenas"
     374
     375#: inc/class-lockee-settings.php:394
    339376msgid "Lockee rewrite rules have been regenerated."
    340377msgstr "Les règles de réécriture de Lockee ont été régénérées."
    341378
    342 #: inc/class-lockee-settings.php:316
     379#: inc/class-lockee-settings.php:403
    343380msgid "Other settings"
    344381msgstr "Autres paramètres"
    345382
    346 #: inc/class-lockee-settings.php:321
     383#: inc/class-lockee-settings.php:408
    347384msgid "Regenerate Lockee URLs"
    348385msgstr "Régénérer les URL de Lockee"
    349386
    350 #: inc/class-lockee-settings.php:324
     387#: inc/class-lockee-settings.php:411
    351388msgid "Use this only if the lock URLs are not working."
    352389msgstr "Utilisez-ceci uniquement si les URL des cadenas ne fonctionnent pas."
    353390
    354 #: inc/class-lockee-shortcode.php:25 inc/class-lockee-shortcode.php:33
     391#: inc/class-lockee-shortcode.php:22 inc/class-lockee-shortcode.php:30
    355392msgid "Lock not found. Please check the shortcode used."
    356393msgstr "Cadenas non trouvé. Veuillez vérifier le shortcode utilisé."
    357394
    358 #: build/lockee-block/index.js:19726 build/lockee-block/index.js:19357
     395#: build/lockee-block/index.js:1
    359396msgid "No result"
    360397msgstr "Aucun résultat"
    361398
    362 #: build/lockee-block/index.js:19733 build/lockee-block/index.js:19749
    363 #: build/lockee-block/index.js:19362 build/lockee-block/index.js:19376
     399#: build/lockee-block/index.js:1
    364400msgid "Select a lock"
    365401msgstr "Sélectionner un cadenas"
    366402
    367 #: build/lockee-block/index.js:19745 build/lockee-block/index.js:19808
    368 #: build/lockee-block/index.js:19371 build/lockee-block/index.js:19431
     403#: build/lockee-block/index.js:1
    369404msgid "Loading..."
    370405msgstr "Chargement…"
    371406
    372 #: build/lockee-block/index.js:19792 build/lockee-block/index.js:19411
     407#: build/lockee-block/index.js:1
    373408msgid "Select a lock in the block settings."
    374409msgstr "Sélectionner un cadenas dans les paramètres du bloc."
    375410
    376 #: build/lockee-block/index.js:19840 build/lockee-block/index.js:19460
     411#: build/lockee-block/index.js:1
    377412msgid "Valid codes"
    378413msgstr "Codes valides"
    379414
    380 #: build/lockee-block/index.js:19898 build/lockee-block/index.js:19525
     415#: build/lockee-block/index.js:1
    381416msgid "Lock selection"
    382417msgstr "Sélection du cadenas"
    383418
    384 #: build/lockee-block/index.js:19902 build/lockee-block/index.js:19526
     419#: build/lockee-block/index.js:1
    385420msgid "Filter by ID or title"
    386421msgstr "Filtrer par ID ou titre"
     
    396431msgstr "Bloc pour afficher un cadenas Lockee"
    397432
     433#~ msgid ""
     434#~ "Set default behaviors for all locks. These can be overridden per lock."
     435#~ msgstr ""
     436#~ "Définissez les comportements par défaut pour tous les cadenas. Ceux-ci "
     437#~ "peuvent être remplacés par serrure."
     438
    398439#~ msgid "Add Lockee locks to Wordpress."
    399440#~ msgstr "Ajoute les cadenas Lockee à Wordpress."
    400441
    401 #~ msgid "Migrate old locks"
    402 #~ msgstr "Migrer les anciens cadenas"
    403 
    404442#~ msgid "lockid"
    405443#~ msgstr "ID"
  • lockee/trunk/languages/lockee.pot

    r3308202 r3308379  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Lockee 3.0.2\n"
     5"Project-Id-Version: Lockee 3.0.5\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/lockee\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2025-06-08T23:32:40+00:00\n"
     12"POT-Creation-Date: 2025-06-09T09:36:14+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
     
    1717#. Plugin Name of the plugin
    1818#: lockee.php
    19 #: inc/class-lockee-post-types.php:81
     19#: inc/class-lockee-post-types.php:78
    2020msgid "Lockee"
    2121msgstr ""
     
    4141msgstr ""
    4242
    43 #: inc/class-lockee-block.php:42
    44 #: inc/class-lockee-block.php:47
    45 #: inc/class-lockee-block.php:55
     43#: inc/class-lockee-block.php:39
     44#: inc/class-lockee-block.php:44
     45#: inc/class-lockee-block.php:52
    4646msgid "Lock not found. Please check the block settings."
    4747msgstr ""
    4848
    49 #: inc/class-lockee-iframe.php:34
     49#: inc/class-lockee-iframe.php:30
    5050msgid "Lock not found"
    5151msgstr ""
    5252
    53 #: inc/class-lockee-metabox.php:32
    54 #: inc/class-lockee-post-types.php:83
     53#: inc/class-lockee-metabox.php:28
     54#: inc/class-lockee-post-types.php:80
    5555msgid "Lock"
    5656msgstr ""
    5757
    58 #: inc/class-lockee-metabox.php:41
     58#: inc/class-lockee-metabox.php:37
    5959msgid "Lock stats"
    6060msgstr ""
    6161
    62 #: inc/class-lockee-metabox.php:64
     62#: inc/class-lockee-metabox.php:60
    6363msgid "Content to display when opening the padlock:"
    6464msgstr ""
    6565
    66 #: inc/class-lockee-metabox.php:67
     66#: inc/class-lockee-metabox.php:63
    6767msgid "Shortcode to integrate this lock into an article or page:"
    6868msgstr ""
    6969
    70 #: inc/class-lockee-metabox.php:70
     70#: inc/class-lockee-metabox.php:66
    7171msgid "Iframe code to integrate this lock into an external page:"
    7272msgstr ""
    7373
     74#: inc/class-lockee-metabox.php:129
     75msgid "Attempts:"
     76msgstr ""
     77
     78#: inc/class-lockee-metabox.php:130
     79msgid "Openings:"
     80msgstr ""
     81
     82#: inc/class-lockee-metabox.php:131
     83msgid "Success:"
     84msgstr ""
     85
    7486#: inc/class-lockee-metabox.php:133
    75 msgid "Attempts:"
    76 msgstr ""
    77 
    78 #: inc/class-lockee-metabox.php:134
    79 msgid "Openings:"
    80 msgstr ""
    81 
    82 #: inc/class-lockee-metabox.php:135
    83 msgid "Success:"
    84 msgstr ""
    85 
    86 #: inc/class-lockee-metabox.php:137
    8787msgid "Reset statistics"
    8888msgstr ""
    8989
    90 #: inc/class-lockee-metabox.php:145
     90#: inc/class-lockee-metabox.php:141
    9191msgid "Do you really want to reset the statistics?"
    9292msgstr ""
    9393
    94 #: inc/class-lockee-migration.php:97
     94#: inc/class-lockee-migration.php:88
    9595msgid "Migrating locks..."
    9696msgstr ""
    9797
    98 #: inc/class-lockee-migration.php:98
     98#: inc/class-lockee-migration.php:89
    9999msgid "An error occurred during migration."
    100100msgstr ""
    101101
    102 #: inc/class-lockee-migration.php:99
     102#: inc/class-lockee-migration.php:90
    103103msgid "Migration completed successfully!"
    104104msgstr ""
    105105
    106 #: inc/class-lockee-migration.php:134
    107 #: inc/class-lockee-migration.php:252
     106#: inc/class-lockee-migration.php:125
     107#: inc/class-lockee-migration.php:243
    108108msgid "Permission denied."
    109109msgstr ""
    110110
    111 #: inc/class-lockee-migration.php:150
    112 #: inc/class-lockee-migration.php:189
     111#: inc/class-lockee-migration.php:141
     112#: inc/class-lockee-migration.php:180
    113113msgid "Migration completed successfully."
    114114msgstr ""
    115115
    116 #: inc/class-lockee-migration.php:158
     116#: inc/class-lockee-migration.php:149
    117117msgid "Migration not started yet."
    118118msgstr ""
    119119
    120 #: inc/class-lockee-migration.php:165
    121 #: inc/class-lockee-migration.php:193
     120#: inc/class-lockee-migration.php:156
     121#: inc/class-lockee-migration.php:184
    122122msgid "Migration in progress..."
    123123msgstr ""
    124124
    125 #: inc/class-lockee-migration.php:184
     125#: inc/class-lockee-migration.php:175
    126126msgid "Starting migration..."
    127127msgstr ""
    128128
    129 #: inc/class-lockee-migration.php:185
     129#: inc/class-lockee-migration.php:176
    130130#, php-format
    131131msgid "Step 1 - Converting old locks (%d/%d)"
    132132msgstr ""
    133133
    134 #: inc/class-lockee-migration.php:186
     134#: inc/class-lockee-migration.php:177
    135135msgid "Migration of old lock completed successfully."
    136136msgstr ""
    137137
    138 #: inc/class-lockee-migration.php:187
     138#: inc/class-lockee-migration.php:178
    139139#, php-format
    140140msgid "Step 2 - Updating old shortcodes (%d/%d)"
    141141msgstr ""
    142142
    143 #: inc/class-lockee-migration.php:188
     143#: inc/class-lockee-migration.php:179
    144144msgid "Migration of old shortcodes completed successfully."
    145145msgstr ""
    146146
    147 #: inc/class-lockee-migration.php:247
     147#: inc/class-lockee-migration.php:238
    148148msgid "Unauthorized action."
    149149msgstr ""
    150150
    151 #: inc/class-lockee-migration.php:257
     151#: inc/class-lockee-migration.php:248
    152152msgid "A migration is already in progress. Please wait."
    153153msgstr ""
    154154
    155 #: inc/class-lockee-migration.php:265
     155#: inc/class-lockee-migration.php:256
    156156msgid "No migration needed."
    157157msgstr ""
    158158
    159 #: inc/class-lockee-migration.php:300
     159#: inc/class-lockee-migration.php:295
    160160msgid "Lockee plugin: Migration of old locks required."
    161161msgstr ""
    162162
     163#: inc/class-lockee-migration.php:296
     164msgid "You must migrate your old locks to ensure compatibility with the new version of Lockee plugin."
     165msgstr ""
     166
    163167#: inc/class-lockee-migration.php:301
    164 msgid "You must migrate your old locks to ensure compatibility with the new version of Lockee plugin."
    165 msgstr ""
    166 
    167 #: inc/class-lockee-migration.php:306
    168168msgid "Migrate now"
    169169msgstr ""
    170170
     171#: inc/class-lockee-post-types.php:79
     172#: inc/class-lockee-post-types.php:81
     173msgid "Locks"
     174msgstr ""
     175
    171176#: inc/class-lockee-post-types.php:82
     177msgid "Create new"
     178msgstr ""
     179
     180#: inc/class-lockee-post-types.php:83
     181msgid "Create a new lock"
     182msgstr ""
     183
    172184#: inc/class-lockee-post-types.php:84
    173 msgid "Locks"
     185msgid "Edit"
    174186msgstr ""
    175187
    176188#: inc/class-lockee-post-types.php:85
    177 msgid "Create new"
     189msgid "Edit the lock"
    178190msgstr ""
    179191
    180192#: inc/class-lockee-post-types.php:86
    181 msgid "Create a new lock"
     193msgid "New lock"
    182194msgstr ""
    183195
    184196#: inc/class-lockee-post-types.php:87
    185 msgid "Edit"
    186 msgstr ""
    187 
    188197#: inc/class-lockee-post-types.php:88
    189 msgid "Edit the lock"
     198msgid "View lock"
    190199msgstr ""
    191200
    192201#: inc/class-lockee-post-types.php:89
    193 msgid "New lock"
     202msgid "Search a lock"
    194203msgstr ""
    195204
    196205#: inc/class-lockee-post-types.php:90
     206msgid "No lock found"
     207msgstr ""
     208
    197209#: inc/class-lockee-post-types.php:91
    198 msgid "View lock"
     210msgid "No lock found in trash"
    199211msgstr ""
    200212
    201213#: inc/class-lockee-post-types.php:92
    202 msgid "Search a lock"
    203 msgstr ""
    204 
    205 #: inc/class-lockee-post-types.php:93
    206 msgid "No lock found"
    207 msgstr ""
    208 
    209 #: inc/class-lockee-post-types.php:94
    210 msgid "No lock found in trash"
    211 msgstr ""
    212 
    213 #: inc/class-lockee-post-types.php:95
    214214msgid "Parent of lock"
    215215msgstr ""
    216216
    217 #: inc/class-lockee-post-types.php:271
     217#: inc/class-lockee-post-types.php:268
    218218msgid "Id"
    219219msgstr ""
    220220
    221 #: inc/class-lockee-post-types.php:273
     221#: inc/class-lockee-post-types.php:270
    222222msgid "Attempts"
    223223msgstr ""
    224224
    225 #: inc/class-lockee-post-types.php:275
     225#: inc/class-lockee-post-types.php:272
    226226msgid "Openings"
    227227msgstr ""
    228228
    229 #: inc/class-lockee-post-types.php:277
    230 #: inc/class-lockee-settings.php:237
     229#: inc/class-lockee-post-types.php:274
     230#: inc/class-lockee-settings.php:277
    231231msgid "Success"
    232232msgstr ""
    233233
    234 #: inc/class-lockee-post-types.php:296
     234#: inc/class-lockee-post-types.php:293
    235235msgid "Sorry, you are not allowed to access this endpoint."
    236236msgstr ""
    237237
     238#: inc/class-lockee-settings.php:52
     239msgid "Lockee Configuration"
     240msgstr ""
     241
    238242#: inc/class-lockee-settings.php:53
    239 msgid "Lockee Configuration"
    240 msgstr ""
    241 
    242 #: inc/class-lockee-settings.php:54
    243243msgid "Settings"
    244244msgstr ""
    245245
    246 #: inc/class-lockee-settings.php:84
     246#: inc/class-lockee-settings.php:85
    247247msgid "Global settings"
    248248msgstr ""
    249249
    250 #: inc/class-lockee-settings.php:91
     250#: inc/class-lockee-settings.php:92
    251251msgid "Theme"
    252252msgstr ""
    253253
    254 #: inc/class-lockee-settings.php:103
     254#: inc/class-lockee-settings.php:104
    255255msgid "Transparent background"
    256256msgstr ""
    257257
    258 #: inc/class-lockee-settings.php:115
     258#: inc/class-lockee-settings.php:116
    259259msgid "Theme colors"
    260260msgstr ""
    261261
    262 #: inc/class-lockee-settings.php:167
     262#: inc/class-lockee-settings.php:124
     263msgid "Confetti animation"
     264msgstr ""
     265
     266#: inc/class-lockee-settings.php:135
     267msgid "Playing sounds"
     268msgstr ""
     269
     270#: inc/class-lockee-settings.php:146
     271msgid "Backspace button"
     272msgstr ""
     273
     274#: inc/class-lockee-settings.php:207
    263275msgid "Make the background transparent behind the locks."
    264276msgstr ""
    265277
    266 #: inc/class-lockee-settings.php:178
     278#: inc/class-lockee-settings.php:218
    267279msgid "Configure the general settings of the Lockee extension."
    268280msgstr ""
    269281
    270 #: inc/class-lockee-settings.php:193
     282#: inc/class-lockee-settings.php:233
    271283msgid "System"
    272284msgstr ""
    273285
    274 #: inc/class-lockee-settings.php:196
     286#: inc/class-lockee-settings.php:236
    275287msgid "Light"
    276288msgstr ""
    277289
    278 #: inc/class-lockee-settings.php:199
     290#: inc/class-lockee-settings.php:239
    279291msgid "Dark"
    280292msgstr ""
    281293
    282 #: inc/class-lockee-settings.php:203
     294#: inc/class-lockee-settings.php:243
    283295msgid "Choose the Lockee lock display theme."
    284296msgstr ""
    285297
    286 #: inc/class-lockee-settings.php:214
     298#: inc/class-lockee-settings.php:254
    287299msgid "Customize the colors of the Lockee theme for light and dark modes. Leave blank to use the default colors."
    288300msgstr ""
    289301
    290 #: inc/class-lockee-settings.php:228
     302#: inc/class-lockee-settings.php:268
    291303msgid "Light theme"
    292304msgstr ""
    293305
    294 #: inc/class-lockee-settings.php:229
     306#: inc/class-lockee-settings.php:269
    295307msgid "Dark theme"
    296308msgstr ""
    297309
    298 #: inc/class-lockee-settings.php:233
     310#: inc/class-lockee-settings.php:273
    299311msgid "Primary"
    300312msgstr ""
    301313
    302 #: inc/class-lockee-settings.php:234
     314#: inc/class-lockee-settings.php:274
    303315msgid "Accent"
    304316msgstr ""
    305317
    306 #: inc/class-lockee-settings.php:235
     318#: inc/class-lockee-settings.php:275
    307319msgid "Error"
    308320msgstr ""
    309321
    310 #: inc/class-lockee-settings.php:236
     322#: inc/class-lockee-settings.php:276
    311323msgid "Warning"
    312324msgstr ""
    313325
    314 #: inc/class-lockee-settings.php:238
     326#: inc/class-lockee-settings.php:278
    315327msgid "Background"
    316328msgstr ""
    317329
    318 #: inc/class-lockee-settings.php:239
     330#: inc/class-lockee-settings.php:279
    319331msgid "Border"
    320332msgstr ""
    321333
    322 #: inc/class-lockee-settings.php:266
     334#: inc/class-lockee-settings.php:299
    323335msgid "Reset to default colors"
    324336msgstr ""
    325337
    326 #: inc/class-lockee-settings.php:281
     338#: inc/class-lockee-settings.php:314
    327339msgid "Settings saved."
    328340msgstr ""
    329341
    330 #: inc/class-lockee-settings.php:291
     342#: inc/class-lockee-settings.php:324
    331343msgid "Save changes"
    332344msgstr ""
    333345
    334 #: inc/class-lockee-settings.php:307
     346#: inc/class-lockee-settings.php:338
     347msgid "Show confetti animation when user open the lock."
     348msgstr ""
     349
     350#: inc/class-lockee-settings.php:348
     351msgid "Play sound when user test a combinaison."
     352msgstr ""
     353
     354#: inc/class-lockee-settings.php:358
     355msgid "Show a button to erase the last entered character."
     356msgstr ""
     357
     358#: inc/class-lockee-settings.php:373
     359msgid "Use per lock setting"
     360msgstr ""
     361
     362#: inc/class-lockee-settings.php:376
     363msgid "Disable for all locks"
     364msgstr ""
     365
     366#: inc/class-lockee-settings.php:379
     367msgid "Enable for all locks"
     368msgstr ""
     369
     370#: inc/class-lockee-settings.php:394
    335371msgid "Lockee rewrite rules have been regenerated."
    336372msgstr ""
    337373
    338 #: inc/class-lockee-settings.php:316
     374#: inc/class-lockee-settings.php:403
    339375msgid "Other settings"
    340376msgstr ""
    341377
    342 #: inc/class-lockee-settings.php:321
     378#: inc/class-lockee-settings.php:408
    343379msgid "Regenerate Lockee URLs"
    344380msgstr ""
    345381
    346 #: inc/class-lockee-settings.php:324
     382#: inc/class-lockee-settings.php:411
    347383msgid "Use this only if the lock URLs are not working."
    348384msgstr ""
    349385
    350 #: inc/class-lockee-shortcode.php:25
    351 #: inc/class-lockee-shortcode.php:33
     386#: inc/class-lockee-shortcode.php:22
     387#: inc/class-lockee-shortcode.php:30
    352388msgid "Lock not found. Please check the shortcode used."
    353389msgstr ""
    354390
    355 #: build/lockee-block/index.js:19726
    356 #: build/lockee-block/index.js:19357
     391#: build/lockee-block/index.js:1
    357392msgid "No result"
    358393msgstr ""
    359394
    360 #: build/lockee-block/index.js:19733
    361 #: build/lockee-block/index.js:19749
    362 #: build/lockee-block/index.js:19362
    363 #: build/lockee-block/index.js:19376
     395#: build/lockee-block/index.js:1
    364396msgid "Select a lock"
    365397msgstr ""
    366398
    367 #: build/lockee-block/index.js:19745
    368 #: build/lockee-block/index.js:19808
    369 #: build/lockee-block/index.js:19371
    370 #: build/lockee-block/index.js:19431
     399#: build/lockee-block/index.js:1
    371400msgid "Loading..."
    372401msgstr ""
    373402
    374 #: build/lockee-block/index.js:19792
    375 #: build/lockee-block/index.js:19411
     403#: build/lockee-block/index.js:1
    376404msgid "Select a lock in the block settings."
    377405msgstr ""
    378406
    379 #: build/lockee-block/index.js:19840
    380 #: build/lockee-block/index.js:19460
     407#: build/lockee-block/index.js:1
    381408msgid "Valid codes"
    382409msgstr ""
    383410
    384 #: build/lockee-block/index.js:19898
    385 #: build/lockee-block/index.js:19525
     411#: build/lockee-block/index.js:1
    386412msgid "Lock selection"
    387413msgstr ""
    388414
    389 #: build/lockee-block/index.js:19902
    390 #: build/lockee-block/index.js:19526
     415#: build/lockee-block/index.js:1
    391416msgid "Filter by ID or title"
    392417msgstr ""
  • lockee/trunk/lockee.php

    r3308343 r3308379  
    55 * Plugin URI:        https://wordpress.lockee.fr/
    66 * Description:       Add Lockee locks to Wordpress. A self-hosted, standalone solution without external dependencies.
    7  * Version:           3.0.4
     7 * Version:           3.0.5
    88 * Author:            Nicolas Desmarets
    99 * Author URI:        https://ndev.fr/
     
    1818}
    1919
    20 define('LOCKEE_VERSION', '3.0.4');
     20define('LOCKEE_VERSION', '3.0.5');
    2121
    2222require_once plugin_dir_path(__FILE__) . 'inc/class-lockee-singleton.php';
  • lockee/trunk/readme.txt

    r3308347 r3308379  
    55Requires at least: 5.3
    66Tested up to: 6.8.1
    7 Stable tag: 3.0.4
     7Stable tag: 3.0.5
    88Requires PHP: 7.0
    99License: GPLv2 or later
     
    1313
    1414== Changelog ==
     15
     16= 3.0.5 =
     17- Change the icon in the admin panel to the Lockee logo.
     18- Add new global settings for locks : confetti, sound and backspace button.
    1519
    1620= 3.0.4 =
Note: See TracChangeset for help on using the changeset viewer.