{"id":19012267,"date":"2026-09-05T09:34:55","date_gmt":"2026-09-05T09:34:55","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/three-problems-with-translatable-strings\/"},"modified":"2026-09-05T09:34:55","modified_gmt":"2026-09-05T09:34:55","slug":"three-problems-with-translatable-strings","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/three-problems-with-translatable-strings\/","title":{"rendered":"Three problems with translatable strings"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hello.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I&#8217;m reporting three string issues and my proposed solution on GitHub.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This string has no echo:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/plugins.trac.wordpress.org\/browser\/dokan-lite\/tags\/5.0.19\/includes\/Product\/functions.php#L333\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/plugins.trac.wordpress.org\/browser\/dokan-lite\/tags\/5.0.19\/includes\/Product\/functions.php#L333<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">PR on GitHub: <a href=\"https:\/\/github.com\/getdokan\/dokan\/pull\/3229\" target=\"_blank\" rel=\"noreferrer noopener\">Fixed echo string in functions.php &#8211; #3229<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This string does not have the text domain:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u2026leInput,{label:(0,o.__)(<strong>\"Last Name\"<\/strong>),value:null!==(C=e?.las\u2026<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Source file: <a href=\"https:\/\/plugins.trac.wordpress.org\/browser\/dokan-lite\/tags\/5.0.19\/assets\/js\/dokan-admin-dashboard.js\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/plugins.trac.wordpress.org\/browser\/dokan-lite\/tags\/5.0.19\/assets\/js\/dokan-admin-dashboard.js<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This string is hard-coded:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u2026trs:{type:\"button\",value:<strong>\"Choose File\"<\/strong>},on:{click:function(e){r\u2026<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Source file: <a href=\"https:\/\/plugins.trac.wordpress.org\/browser\/dokan-lite\/tags\/5.0.19\/assets\/js\/vue-admin.js\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/plugins.trac.wordpress.org\/browser\/dokan-lite\/tags\/5.0.19\/assets\/js\/vue-admin.js<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">PR on GitHub for these two strings: <a href=\"https:\/\/github.com\/getdokan\/dokan\/pull\/3405\" target=\"_blank\" rel=\"noreferrer noopener\">Fixed String Translation in two files &#8211; #3405<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thanks.<\/p>\n","protected":false},"template":"","class_list":["post-19012267","topic","type-topic","status-publish","hentry","topic-tag-localization","topic-tag-strings"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19012267","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\/19012267\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=19012267"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}