• Resolved Senri Miura

    (@senribb)


    Currently, when you select the jQuery version as “WordPress default” in the jQuery Migrate settings, Transposh’s translation edit mode does not work.
    So, I tried to modify Transposh’s jQuery program from legacy 1.12.4 to jQuery 3.x as follows, but it doesn’t work. Maybe there’s a problem with the core of WordPress 5.6, but I’m not sure.
    I would like to receive a professor from someone who has any other hints.

    If there is no patch for Transposh as it is, “jQuery Migrate” will be abolished in the release of WordPress 5.7 (jQuery 3.5.1), and Transposh may not work completely, so I would like to ask the author for support.

    ◇ transposh.js

    c(“.”+r+”setdeflang”).click(function(){return c.ajax({url:t_jp.ajaxurl
     ↓
    c(“.”+r+”setdeflang”).on(“click”,function(){return c.ajax({url:t_jp.ajaxurl

    ◇ jquery.ui.menu.js

    .bind → .on
    .unbind → .off

    removeAttr → ???

    ◇ admin/contexthelp.js

    !function(l){l(“.tp_help”).live(“click”,function(e){e.preventDefault(),window.scrollTo(0,0),l(“#tab-link-“+jQuery(this).attr(“rel”)+” a”).trigger(“click”),l(“#contextual-help-link”).hasClass(“screen-meta-active”)||l(“#contextual-help-link”).trigger(“click”)})}(jQuery);
    //# sourceMappingURL=contexthelp.js.map
     ↓
    !function(l){l(document).on(‘click’,’.tp_help’,function(e){e.preventDefault(),window.scrollTo(0,0),l(“#tab-link-“+jQuery(this).attr(“rel”)+” a”).trigger(“click”),l(“#contextual-help-link”).hasClass(“screen-meta-active”)||l(“#contextual-help-link”).trigger(“click”)})}(jQuery);
    //# sourceMappingURL=contexthelp.js.map

    ◇ admin/languages.js

    i(this).click(clickfunction)})}}),
     ↓
    i(this).on(“click”,clickfunction)})}}),
    etc.,

    ◇ admin/contexthelp.js.map

    $(‘.tp_help’).live(‘click’, function (event) {\n
     ↓
    $(document).on(‘click’, ‘.tp_help’, function (event) {\n

    • This topic was modified 3 years, 11 months ago by Senri Miura.

    The page I need help with: [log in to see the link]

Viewing 10 replies - 16 through 25 (of 25 total)
  • Thread Starter Senri Miura

    (@senribb)

    Dear Ofer Wald,

    Thank you for your wonderful support!
    I hope Transposh will be a better plugin.

    Regards,

    • This reply was modified 3 years, 9 months ago by Senri Miura.
    Thread Starter Senri Miura

    (@senribb)

    Dear Ofer Wald,

    With the release of WordPress 5.6.1 on the Chrome version of Edge, the problem that the translation edit dialog of Transposh is corrupted has been resolved. Therefore, this topic will be closed once.
    However, at least from jQuery Migrate, I expect you’ll correct the following deprecated warnings in jQuery 3.x.

    jQuery.fn.click () event shorthand is deprecated-/plugins/transposh-translation-filter-for-wordpress/js/transposh.js

    jQuery.fn.live () is deprecated-/plugins/transposh-translation-filter-for-wordpress/js/admin/contexthelp.js

    Best regards,
    Senri Miura

    Plugin Author oferwald

    (@oferwald)

    @senribb thanks for notifying, will fix the deprecations soon

    Thread Starter Senri Miura

    (@senribb)

    Dear Ofer Wald,

    Your support is excellent and very nice.
    Thank you very much!

    Sincerely yours,
    Senri Miura

    I use WordPress version 5.7 and Transposh version 1.0.7.1
    But, Editor Tanslate is not work.
    Any idea about the reason.
    Thank you,

    Plugin Author oferwald

    (@oferwald)

    @cansirt I think that your own topic would have been more appropriate, however, what does your browser’s javescript console shows when you try to translate?

    Thank you for your interest.
    I see the following when I look at the console:
    font-awesome.min.css:1 Failed to load resource: the server responded with a status of 404
    c88aa613fbdf12eed8d7d7e343a5729a.js:1 JQMIGRATE: Migrate is installed, version 3.3.2
    font-awesome.min.css:1 Failed to load resource: the server responded with a status of 404

    Plugin Author oferwald

    (@oferwald)

    This is not very useful, and does not seem related to starting the editor when clicking the yellow icons.

    How do you think I should take a step?

    Plugin Author oferwald

    (@oferwald)

    ?

Viewing 10 replies - 16 through 25 (of 25 total)
  • The topic ‘jQuery 3.x patch’ is closed to new replies.