• Resolved Bonaldi

    (@bonaldi)


    Hi Marc,

    Error reported by Query Monitor:

    Notification Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the captcha-for-contact-form-7 domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.)

    1. wp-includes/functions.php:6131
    2. wp_trigger_error()
      wp-includes/functions.php:6071
    3. _load_textdomain_just_in_time()
      wp-includes/l10n.php:1419
    4. get_translations_for_domain()
      wp-includes/l10n.php:195
    5. translate()
      wp-includes/l10n.php:307
    6. __()
      wp-content/plugins/captcha-for-contact-form-7/ui/controller/UI_Upgrade.php:19
    7. f12_cf7_captcha\UI_Upgrade->__construct()
      wp-content/plugins/captcha-for-contact-form-7/ui/core/UI_Page_Plugin_Loader.php:90
    8. f12_cf7_captcha\ui\UI_Page_Plugin_Loader->register_plugin_ui_pages()
      wp-includes/class-wp-hook.php:341
    9. do_action('f12-cf7-captcha_ui_after_load_pages')
      wp-content/plugins/captcha-for-contact-form-7/ui/UI_Manager.php:167
    10. f12_cf7_captcha\ui\UI_Manager->__construct()
      wp-content/plugins/captcha-for-contact-form-7/ui/UI_Manager.php:138
    11. f12_cf7_captcha\ui\UI_Manager::register_instance()
      wp-content/plugins/captcha-for-contact-form-7/f12-cf7-captcha.php:351
    12. f12_cf7_captcha\CF7Captcha->__construct()
      wp-content/plugins/captcha-for-contact-form-7/f12-cf7-captcha.php:92
    13. f12_cf7_captcha\CF7Captcha::get_instance()

    Regards.

Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Support forge12marc

    (@forge12marc)

    Hello @bonaldi ,

    thank you for reporting this issue. I’ve prepared a quickfix (2.6.6) solving the issue.

    Best Regards
    Marc

    Thread Starter Bonaldi

    (@bonaldi)

    Danke Marc ! Nice version by the way.

    I’ve noticed some minor translation errors in the interface.

    Unfortunately, it’s not possible to correct them on wp.org because they’re in JSON files.

    For instance, "in":["dans"] should be replaced with "in":["en"], if you want to do this in the source code of captcha-for-contact-form-7-fr_FR-silentshield-admin.json.

    Regards.

    Plugin Support forge12marc

    (@forge12marc)

    Hello @bonaldi ,

    thanks for your feedback. I’ve updated the translation files. Hopefully i understand you correct. Let me know if you have additional feedback.

    Best Regards
    Marc

    Thread Starter Bonaldi

    (@bonaldi)

    Hi Marc,

    One important point: as the PTE for your plugin, I’d like to point out that using translatable strings embedded in .json files is a problem.

    They cannot be translated with the tools currently available on wp.org.
    The consequence could be an incomplete translation with only the .po files translated, and therefore a lower perceived quality of the plugin for users.
    The major risk for a freemium model is also losing out on voluntary contributions from the community.

    P.S.: Current translations in .json files must follow the locale guidelines: this isn’t always the case for French translations (e.g., “Settings” = “Réglages”, not “Paramètres”). 😉

    Regards.

    Plugin Support forge12marc

    (@forge12marc)

    Hello @bonaldi

    thanks for pointing this out — you’re absolutely right.

    We’re aware that using translatable strings inside .json files creates limitations with the current wp.org tooling, and we take this seriously. An incomplete or inconsistent translation experience is not acceptable for us.

    We’re currently working on a solution that aligns better with the existing translation ecosystem, so the community — and especially contributors like you — can reliably add and maintain translations again.

    Appreciate your note on the French translations as well. We’ll review and correct those to properly follow the locale guidelines.

    Thanks again for your input — this is exactly the kind of feedback that helps us improve the product in the right direction.

    Best,
    Marc

    Thread Starter Bonaldi

    (@bonaldi)

    Hi @forge12marc ,

    I can email you my hacked version with language files that conform to the locale’s French glossary (.json, .po…).

    To do this, you’ll need to remind me which email address to send it to.

    By running a diff, you’ll also find various modifications I consider useful, particularly making the templates more universal and compatible with different theme styles (for example, removing certain colors and font sizes that restrict the style to a format that isn’t always suitable).

    I also note that it would be desirable to standardize the code (e.g., systematically replacing echo esc_html() with esc_html_e(); currently, both are used).

    Regards.

    Moderator Support Moderator

    (@moderator)

    @bonaldi Please, never post an email address on this site again. Your reply has been removed.

    Thread Starter Bonaldi

    (@bonaldi)

    Thread Starter Bonaldi

    (@bonaldi)

    Please forget this, it’s a mistake:

    I also note that it would be desirable to standardize the code (e.g., systematically replacing echo esc_html() with esc_html_e(); currently, both are used).

    Thread Starter Bonaldi

    (@bonaldi)

    Hi Marc,

    You didn’t answer about language files that conform to the locale’s French glossary: does that interest you?

    Regards.

    Plugin Support forge12marc

    (@forge12marc)

    Hi @bonaldi,

    yes that sounds very interesting. I didn’t reply because we try to figure out what’s the best way to allow the community to translate items.

    Best Regards
    Marc

    Thread Starter Bonaldi

    (@bonaldi)

    OK, I’ll send you my .zip file by email.

    Thread Starter Bonaldi

    (@bonaldi)

    Marc, did you receive the file?

    Plugin Support forge12marc

    (@forge12marc)

    Hello @bonaldi ,

    unfortunatelly we did not receive any mail. Can you send us the data using wetransfer to info@forge12.com ?

    Best Regards
    Marc

    Thread Starter Bonaldi

    (@bonaldi)

    Hi @forge12marc,

    I sent it using SwissTransfer, but I received a security message in German: I think your system might have blocked the transfer.

    I just resent it using WeTransfer.

    Regards.

Viewing 15 replies - 1 through 15 (of 18 total)

You must be logged in to reply to this topic.