Changeset 3847713
- Timestamp:
- 12/06/2026 11:33:05 AM (4 hours ago)
- Location:
- pay4all-age-verification/trunk
- Files:
-
- 2 added
- 15 edited
-
languages/pay4all-age-verification-de_DE.mo (modified) ( previous)
-
languages/pay4all-age-verification-de_DE.po (modified) (1 diff)
-
languages/pay4all-age-verification-en_US.mo (modified) ( previous)
-
languages/pay4all-age-verification-en_US.po (modified) (1 diff)
-
languages/pay4all-age-verification-es_ES.mo (added)
-
languages/pay4all-age-verification-es_ES.po (added)
-
languages/pay4all-age-verification-fr_FR.mo (modified) ( previous)
-
languages/pay4all-age-verification-fr_FR.po (modified) (1 diff)
-
languages/pay4all-age-verification-it_IT.mo (modified) ( previous)
-
languages/pay4all-age-verification-it_IT.po (modified) (1 diff)
-
languages/pay4all-age-verification.pot (modified) (1 diff)
-
pay4all-age-verification.php (modified) (2 diffs)
-
readme.txt (modified) (4 diffs)
-
src/Admin/AddOnsPage.php (modified) (1 diff)
-
src/Admin/Settings.php (modified) (3 diffs)
-
src/Admin/WooTeaser.php (modified) (1 diff)
-
src/Services/Config.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pay4all-age-verification/trunk/languages/pay4all-age-verification-de_DE.po
r3807828 r3847713 275 275 msgstr "Englisch" 276 276 277 msgid "Spanish" 278 msgstr "Spanisch" 279 277 280 msgid "Envoi en cours…" 278 281 msgstr "Wird hochgeladen…" -
pay4all-age-verification/trunk/languages/pay4all-age-verification-en_US.po
r3807828 r3847713 181 181 msgstr "English" 182 182 183 msgid "Spanish" 184 msgstr "Spanish" 185 183 186 msgid "Envoi en cours…" 184 187 msgstr "Envoi en cours…" -
pay4all-age-verification/trunk/languages/pay4all-age-verification-fr_FR.po
r3807828 r3847713 278 278 msgstr "Anglais" 279 279 280 msgid "Spanish" 281 msgstr "Espagnol" 282 280 283 msgid "Envoi en cours…" 281 284 msgstr "Envoi en cours…" -
pay4all-age-verification/trunk/languages/pay4all-age-verification-it_IT.po
r3807828 r3847713 272 272 msgstr "Inglese" 273 273 274 msgid "Spanish" 275 msgstr "Spagnolo" 276 274 277 msgid "Envoi en cours…" 275 278 msgstr "Invio in corso…" -
pay4all-age-verification/trunk/languages/pay4all-age-verification.pot
r3807828 r3847713 177 177 178 178 msgid "English" 179 msgstr "" 180 181 msgid "Spanish" 179 182 msgstr "" 180 183 -
pay4all-age-verification/trunk/pay4all-age-verification.php
r3834585 r3847713 3 3 * Plugin Name: Pay4All Age Verification 4 4 * Description: Age verification and legal-age gate for WooCommerce and Pay4All Shop. ID + selfie capture, cross-device QR flow, AES-256-GCM encryption at rest. Ideal for alcohol, tobacco, or any adult-only product. Drag-drop reorder of the ID / selfies steps shared between both storefronts. 5 * Version: 1. 7.25 * Version: 1.8.0 6 6 * Author: Pay4All 7 7 * Author URI: https://pay4all.net/ … … 18 18 if ( ! defined( 'ABSPATH' ) ) { exit; } 19 19 20 define( 'P4ALL_AGE_VERSION', '1. 7.2' );20 define( 'P4ALL_AGE_VERSION', '1.8.0' ); 21 21 define( 'P4ALL_AGE_FILE', __FILE__ ); 22 22 define( 'P4ALL_AGE_PATH', plugin_dir_path( __FILE__ ) ); -
pay4all-age-verification/trunk/readme.txt
r3834585 r3847713 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 1. 7.27 Stable tag: 1.8.0 8 8 License: GPL-2.0-or-later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 50 50 = Available languages = 51 51 52 Français (fr_FR), Deutsch (de_DE), Italiano (it_IT), English (en_US) .52 Français (fr_FR), Deutsch (de_DE), Italiano (it_IT), English (en_US), Español (es_ES). 53 53 54 54 == External services == … … 99 99 = Which languages ship out of the box? = 100 100 101 French (fr_FR), German (de_DE), Italian (it_IT) and English (en_US). Every customer-facing string is also overridable per-language from the settings page — merchants can rewrite the KYC panel copy without touching a `.po` file.101 French (fr_FR), German (de_DE), Italian (it_IT), English (en_US) and Spanish (es_ES). Every customer-facing string is also overridable per-language from the settings page — merchants can rewrite the KYC panel copy without touching a `.po` file. 102 102 103 103 = Does the plugin contact any external service? = … … 114 114 115 115 == Changelog == 116 117 = 1.8.0 = 118 * Interface et panneau de vérification traduits en espagnol. 119 * Textes du panneau personnalisables aussi en espagnol. 120 * Liens vers pay4all.net en espagnol pour les administrateurs hispanophones. 116 121 117 122 = 1.7.2 = -
pay4all-age-verification/trunk/src/Admin/AddOnsPage.php
r3661055 r3847713 101 101 public static function current_lang() : string { 102 102 $lang = strtolower( substr( (string) determine_locale(), 0, 2 ) ); 103 return in_array( $lang, [ 'fr', 'de', 'it', 'en' ], true ) ? $lang : 'fr';103 return in_array( $lang, [ 'fr', 'de', 'it', 'en', 'es' ], true ) ? $lang : 'fr'; 104 104 } 105 105 } -
pay4all-age-verification/trunk/src/Admin/Settings.php
r3801955 r3847713 349 349 $sec_texts_langs = self::active_languages(); 350 350 $sec_texts_lang = $sec_texts_langs[0] ?? Config::current_locale(); 351 $wp_lang_map = [ 'fr' => 'fr_FR', 'de' => 'de_DE', 'it' => 'it_IT', 'en' => 'en_US' ];351 $wp_lang_map = [ 'fr' => 'fr_FR', 'de' => 'de_DE', 'it' => 'it_IT', 'en' => 'en_US', 'es' => 'es_ES' ]; 352 352 $sec_texts_wp = $wp_lang_map[ $sec_texts_lang ] ?? ''; 353 353 $switched = $sec_texts_wp !== '' && function_exists( 'switch_to_locale' ) … … 438 438 // Shop is active, we honour its "Settings > Language" 439 439 // selection; when it isn't, we fall back to every 440 // language pay4all-age supports (fr / de / it / en ).440 // language pay4all-age supports (fr / de / it / en / es). 441 441 $active_langs = self::active_languages(); 442 442 $lang_full_labels = [ … … 445 445 'it' => __( 'Italian', 'pay4all-age-verification' ), 446 446 'en' => __( 'English', 'pay4all-age-verification' ), 447 'es' => __( 'Spanish', 'pay4all-age-verification' ), 447 448 ]; 448 449 foreach ( $active_langs as $i => $lang ) : ?> -
pay4all-age-verification/trunk/src/Admin/WooTeaser.php
r3661055 r3847713 30 30 // Deep-link the SaaS landing page to the admin's locale so a 31 31 // German admin lands on the DE version of the Pay4All Pro page. 32 // `Config::current_locale()` returns one of fr / de / it / en. 33 $saas_url = add_query_arg( 'lang', Config::current_locale(), 'https://pay4all.net/p/pay4all-shop-pro' ); 32 // `Config::current_locale()` returns one of fr / de / it / en / es, 33 // all published on pay4all.net. 34 $saas_lang = Config::current_locale(); 35 $saas_url = add_query_arg( 'lang', $saas_lang, 'https://pay4all.net/p/pay4all-shop-pro' ); 34 36 ?> 35 37 <div class="wrap"> -
pay4all-age-verification/trunk/src/Services/Config.php
r3807828 r3847713 13 13 public const OPTION = 'pay4all_age_settings'; 14 14 15 public const SUPPORTED_LANGUAGES = [ 'fr', 'de', 'it', 'en' ];15 public const SUPPORTED_LANGUAGES = [ 'fr', 'de', 'it', 'en', 'es' ]; 16 16 17 17 /** @return array<string,mixed> */ … … 201 201 $source = (string) ( self::TEXT_DEFAULTS['en'][ $key ] ?? '' ); 202 202 if ( $source === '' ) { return ''; } 203 $wp_map = [ 'fr' => 'fr_FR', 'de' => 'de_DE', 'it' => 'it_IT', 'en' => 'en_US' ];203 $wp_map = [ 'fr' => 'fr_FR', 'de' => 'de_DE', 'it' => 'it_IT', 'en' => 'en_US', 'es' => 'es_ES' ]; 204 204 $wp = $wp_map[ $lang ] ?? ''; 205 205 $switched = $wp !== '' && function_exists( 'switch_to_locale' ) && switch_to_locale( $wp );
Note:
See TracChangeset
for help on using the changeset viewer.