PluginProbe
SureForms – Contact Form Builder, AI Forms, Payment Form, Survey & Quiz / 2.12.8
SureForms – Contact Form Builder, AI Forms, Payment Form, Survey & Quiz v2.12.8
2.12.8 2.12.7 2.12.6 2.12.5 2.12.4 2.12.3 2.12.2 2.12.1 2.12.0 2.11.1 2.11.0 2.10.1 2.10.0 2.9.1 2.9.0 2.8.2 2.8.1 2.7.0 2.7.1 2.8.0 trunk 0.0.10 0.0.11 0.0.12 0.0.13 All 98 releases
← All changes | inc/fields/dropdown-markup.php +6 -2 2.10.1 → 2.12.8 View file →
@@ -10,8 +10,9 @@
10 10
11 11 require SRFM_DIR . 'modules/gutenberg/classes/class-spec-gb-helper.php';
12 12
13 13 use Spec_Gb_Helper;
14 +use SRFM\Inc\Compatibility\Multilingual\String_Translator;
14 15 use SRFM\Inc\Helper;
15 16 use SRFM\Inc\Smart_Tags;
16 17
17 18 if ( ! defined( 'ABSPATH' ) ) {
@@ -102,11 +103,14 @@
102 103 } elseif ( ! empty( $original_placeholder ) ) {
103 104 $this->placeholder = $original_placeholder;
104 105 }
105 106
106 - // Translate the default placeholder text for frontend display.
107 + // Translate the default placeholder text for frontend display. Routed through
108 + // the multilingual provider (not just the textdomain) so it is translated on
109 + // WPML/Polylang sites too — the default placeholder is not serialized into
110 + // block markup, so it never reaches the per-form string package.
107 111 if ( 'Select an option' === $this->placeholder ) {
108 - $this->placeholder = __( 'Select an option', 'sureforms' );
112 + $this->placeholder = String_Translator::get_instance()->translate_validation_message( 'srfm_dropdown_placeholder', __( 'Select an option', 'sureforms' ) );
109 113 }
110 114
111 115 $this->show_values = apply_filters( 'srfm_show_options_values', false, $attributes['showValues'] ?? false );
112 116