• The “Clear Text” cannot accept non-alphanumeric characters. If I changed “Clear” to “Espa?ola” or “繁體中文” (the actual words I filled in for testing), the Signature field becomes a shortcode.

    The following modified code can improve this plugin’s I18N issues.

    \inc\tag.php, Line 90

    <label for="<?php echo esc_attr( $args['content'] . '-clear_text' ); ?>"><?php echo esc_html( __( 'Clear Text', 'signature-field-with-contact-form-7' ) ); ?></label>

    signature-field-with-contact-form-7.php, Line 57

    echo '<div class="error"><p>' . sprintf(esc_html__('This plugin is deactivated because it require %1$sContact Form 7%2$s plugin installed and activated.', 'signature-field-with-contact-form-7'),'<a href="plugin-install.php?tab=search&s=contact+form+7">', '</a>') . '</p></div>';

    If the “Clear Text” issue can be fixed, please also accept the following code.

    \inc\tag.php, Line 102

    <input type="text" name="clear_text" value="<?php esc_attr_e( 'Clear', 'signature-field-with-contact-form-7' ); ?>" class="clear_text oneline option" id="<?php echo esc_attr( $args['content'] . '-clear_text' ); ?>" />
  • The topic ‘Improve I18N Issues (Based on 1.0)’ is closed to new replies.