datepicker not being translated when using mb_frontend_form

Support MB Frontend Submission datepicker not being translated when using mb_frontend_formResolved

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #43971
    pluginovenpluginoven
    Participant

    Two pages on the frontend that use a date picker.
    Both date pickers are exactly the same.

    On the first page, the mb_user_profile_info shortcode is used, and the datepicker is localized.
    On the second page, the mb_frontend_form shortcode is used, but the datepicker is not being localized.

    The wp_localize_jquery_ui_datepicker() function is being called, however, this is not having an effect. A workaround was found by manually loading in the jQuery.datepicker.setDefaults on the CPT's that use mb_frontend_form, but this is something that might need to be looked into further.

    It could be something else causing the datepicker settings not to load--it's a complex setup. Since 2 hours have been spent in troubleshooting, this ticket was opened in case others are having the same issue.

    #43981
    PeterPeter
    Moderator

    Hello,

    Thanks for your feedback. I don't see it working in both cases. I've escalated this issue to the development team to fix it.

    #44331
    pluginovenpluginoven
    Participant

    Have not heard back, but I am fighting a similar translation issue with the [mb_frontend_dashboard] shortcode. In this case, it's very clear that the language files are not being found for the mb-frontend-submission text domain in src/Form.php

    'confirm_delete' => __( 'Are you sure to delete this post?', 'mb-frontend-submission' ),
    is not being translated. As there is not longer time to continue to debug your plugins, we are reverting to hard-coding the language until these issues are resolved. Please let me know when there is something to test.

    #44341
    PeterPeter
    Moderator

    Hello,

    What is the translation plugin you use to translate the text? I use WPML to translate it and it works as well on my demo site.

    #44342
    pluginovenpluginoven
    Participant

    No plugin, as there are not multiple languages. Just set WordPress to use a language other than EN, for example, DE_Formal. And yes the .po and .mo files are in wp-content/languages/plugins folder.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.