{"id":708,"date":"2023-02-26T15:13:44","date_gmt":"2023-02-26T07:13:44","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=708"},"modified":"2023-04-29T17:17:12","modified_gmt":"2023-04-29T09:17:12","slug":"resolve-string-xml-formatting-placeholder-error-multiple-substitutions-specified-in-non-positional-format","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/02\/26\/resolve-string-xml-formatting-placeholder-error-multiple-substitutions-specified-in-non-positional-format\/","title":{"rendered":"\u89e3\u51b3strings.xml\u683c\u5f0f\u5316\u5360\u4f4d\u7b26\u9519\u8bef\uff1aMultiple substitutions specified in non-positional format"},"content":{"rendered":"<p>\u4f7f\u7528strings.xml\u8fdb\u884c\u683c\u5f0f\u5316\u5360\u4f4d\u7b26\u65f6\u62a5\u9519\uff1a<\/p>\n<pre><code>Multiple substitutions specified in non-positional format; did you mean to add the formatted=&quot;false&quot; attribute?<\/code><\/pre>\n<p><!-- more --><\/p>\n<p>\u68c0\u67e5\u540e\u53d1\u73b0\u662f\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u4e2d\u5305\u542b\u591a\u4e2a\u5360\u4f4d\u7b26\u5bfc\u81f4<\/p>\n<p>\u89e3\u51b3\u6848\u4f8b\uff1a<\/p>\n<pre><code class=\"language-xml\">&lt;string name=&quot;test&quot;&gt;HomePage: %1$s, Author: %2$s&lt;\/string&gt;\n\n&lt;string name=&quot;order_total_hint&quot;&gt;Total %1$d products(including shipping %2$s%3$.2f)&lt;\/string&gt;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528strings.xml\u8fdb\u884c\u683c\u5f0f\u5316\u5360\u4f4d\u7b26\u65f6\u62a5\u9519\uff1a Multiple substitutions specif [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[61],"tags":[],"class_list":["post-708","post","type-post","status-publish","format-standard","hentry","category-android-basic"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/708","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=708"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/708\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=708"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=708"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=708"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}