{"id":11262005,"date":"2019-03-01T07:50:08","date_gmt":"2019-03-01T07:50:08","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/localization-issue-13\/"},"modified":"2019-03-01T07:50:08","modified_gmt":"2019-03-01T07:50:08","slug":"localization-issue-13","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/localization-issue-13\/","title":{"rendered":"Localization issue"},"content":{"rendered":"<p>It seems that the plugin makes the language file inside the plugin directory (<code>plugins\/wc-frontend-manager\/lang<\/code>) a priority rather than the one on <code>wp-content\/languages\/plugins<\/code>. <\/p>\n<p>This is a problem when we want to use our own translation file outside the plugin directory.<\/p>\n<p>In your plugin there&#8217;s a call to the function <code>load_textdomain<\/code> twice so the first translation will override the second one. Not sure why you didn&#8217;t use a single <code>load_plugin_textdomain()<\/code> instead? <\/p>\n","protected":false},"template":"","class_list":["post-11262005","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11262005","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\/11262005\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=11262005"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}