-
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/'toWP_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
The ticket ‘Problems in translation files and calling translation files’ is closed to new replies.