• Resolved Alex Lion (阿力獅)

    (@alexclassroom)


    There are two UI strings that should be translatable.

    inc\admin-options.php, Line 397
    Correction: echo '<p style="font-weight: 600; font-size: 19px; margin-top: 0; margin-bottom: 0;">' . esc_html__( 'Almost done...', 'simple-cloudflare-turnstile' ) . '</p>';

    inc\admin-options.php, Line 424 to 426
    Correction: echo '<button type="submit" style="margin-top: 10px; padding: 5px 10px; background: #1c781c; color: #fff; font-size: 15px; font-weight: bold; border-radius: 4px; cursor: pointer;">TEST API RESPONSE<span class="dashicons dashicons-arrow-right-alt"></span></button>'

    Remove dot or make the dot translatable
    inc\admin-options.php, Line 375
    Correction: <p style="font-size: 15px;"><?php echo __( 'Need help? Have a suggestion?', 'simple-cloudflare-turnstile' ); ?> <a href="https://www.ads-software.com/support/plugin/simple-cloudflare-turnstile" target="_blank"><?php echo __( 'Create a new support topic.', 'simple-cloudflare-turnstile' ); ?></a></p>

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Elliot Sowersby

    (@elliotvs)

    Hi Alex!

    Thanks for this. This should now be sorted in 1.6.2 ??

    Thread Starter Alex Lion (阿力獅)

    (@alexclassroom)

    Confirm the above issues are fixed. Thanks. I also upload the new zh_TW translations for the new strings.

    Thread Starter Alex Lion (阿力獅)

    (@alexclassroom)

    Sorry about that, I found a new string that should be translated. I didn’t find it before because it is an error message.

    simple-cloudflare-turnstile.php, line 100
    Correct: echo '<p style="font-weight: bold;">' . esc_html__( 'Error message: ', 'simple-cloudflare-turnstile' ) . cfturnstile_error_message($error) . '</p>';

    If there is a GitHub repository for this plugin, please let me know so I can submit PR.

    Plugin Author Elliot Sowersby

    (@elliotvs)

    Thanks Alex, just released an update which fixes this.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Make UI strings translatable’ is closed to new replies.