Problems in translation files and calling translation files

#510981
  • Resolved Tala Vision
    Rank Math free

    Hi and thank you for your efforts…

    It seems there is some issues in translation files and links for calling them.

    1- gettex string can not to be grabbed from some js files in po file:
    assets/admin/js/analyzer.js
    assets/admin/js/rank-math-app.js
    We know JSON files in root/languages/plugins is making by localized po file, so SEO box in edit page/post/product/others can’t be translated.

    2- We need to replace links from rank_math()->plugin_dir() . 'languages/' to WP_LANG_DIR . '/plugins/' :
    So replace lines 156 & 157 in seo-by-rank-math\includes\admin\metabox\class-metabox.php with following lines:

    wp_set_script_translations( 'rank-math-analyzer', 'rank-math', WP_LANG_DIR . '/plugins/' );
    wp_set_script_translations( 'rank-math-app', 'rank-math', WP_LANG_DIR . '/plugins/' );

    and replace line 182 in seo-by-rank-math\includes\modules\schema\class-admin.php with following line:
    wp_set_script_translations( 'rank-math-schema', 'rank-math', WP_LANG_DIR . '/plugins/' );

    Regard

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math support, and sorry for any inconvenience that might have been caused due to that.

    We deeply apologize for the delay in response.

    We have already shared this ticket with our development team and we should get back to you shortly with advice or an update.

    We appreciate your time and patience on this one.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘Problems in translation files and calling translation files’ is closed to new replies.