{"id":13370967,"date":"2020-09-07T10:18:04","date_gmt":"2020-09-07T10:18:04","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/strings-with-variables\/"},"modified":"2020-09-07T10:18:27","modified_gmt":"2020-09-07T10:18:27","slug":"strings-with-variables","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/strings-with-variables\/","title":{"rendered":"Strings with variables?"},"content":{"rendered":"<p>Hey,<\/p>\n<p>I am trying to translate some strings from woocommerce &#8211; but I can&#8217;t translate string with variable:<\/p>\n<p><code>%d left in stock<\/code><\/p>\n<p>I set translation like:<\/p>\n<p><code>Only %d pcs. available<\/code><\/p>\n<p>But it does not seem to translate the string at all. Other strings like (can be backordered) or Related products are translated fine.<\/p>\n","protected":false},"template":"","class_list":["post-13370967","topic","type-topic","status-publish","hentry","topic-tag-variable"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13370967","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":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13370967\/revisions"}],"predecessor-version":[{"id":13370968,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13370967\/revisions\/13370968"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=13370967"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}