{"id":19024431,"date":"2026-09-20T07:36:55","date_gmt":"2026-09-20T07:36:55","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/localization-missing-load_plugin_textdomain-and-hardcoded-strings-in-admin-js\/"},"modified":"2026-09-20T07:36:55","modified_gmt":"2026-09-20T07:36:55","slug":"localization-missing-load_plugin_textdomain-and-hardcoded-strings-in-admin-js","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/localization-missing-load_plugin_textdomain-and-hardcoded-strings-in-admin-js\/","title":{"rendered":"Localization: missing load_plugin_textdomain() and hardcoded strings in admin.js"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hi, thanks for the plugin. I\u2019m the Persian (fa_IR) translation editor for it on <a href=\"http:\/\/WordPress.org\" target=\"_blank\" rel=\"noreferrer noopener\">WordPress.org<\/a>, and while testing the translation I noticed two things:<\/p>\n\n\n\n<ol>\n<li><code>load_plugin_textdomain()<\/code> is never called anywhere in the plugin. Since WP 6.7, relying on just-in-time loading can fail and leave strings untranslated. Adding it on the <code>init<\/code> hook would fix it.<\/li>\n\n\n\n<li>Some of the text in <code>assets\/js\/admin.js<\/code> is hardcoded in English, so it never reaches the POT file and stays untranslated. Passing those through <code>llmscuAdmin.strings<\/code> or <code>wp.i18n<\/code> would solve it.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Happy to test a patched build. Thanks.<\/p>\n","protected":false},"template":"","class_list":["post-19024431","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19024431","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19024431\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=19024431"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}