<div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif">I has known that, and it is the developer&#39;s choice,  which means, the developer has already known that. There are many circumstances that there are no needs to translate at all. For example, if I want show the user that I have to ask him to give me permission of a folder, the `url.path` has no need to translate.</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">And of course, ` String.localizedStringWithFormat(NSLocalizedString(&quot;​blabla%​@​blabla&quot;, comment: &quot;​blabla&quot;), ​` has already allows to do that. I just think it should be in a more Swift way by using `\(foo)`.</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">Zhaoxin</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 2, 2016 at 11:45 AM, Jens Alfke <span dir="ltr">&lt;<a href="mailto:jens@mooseyard.com" target="_blank">jens@mooseyard.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><span class=""><br><div><blockquote type="cite"><div>On Nov 1, 2016, at 7:52 PM, Zhao Xin &lt;<a href="mailto:owenzx@gmail.com" target="_blank">owenzx@gmail.com</a>&gt; wrote:</div><br class="m_2746626318681548156Apple-interchange-newline"><div><div class="gmail_default" style="font-size:15px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-family:georgia,serif">The second should be</div><div class="gmail_default" style="font-size:15px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-family:georgia,serif"><br></div><blockquote class="gmail_quote" style="font-family:Alegreya-Regular;font-size:15px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="font-family:arial,sans-serif;font-size:12.800000190734863px">let </span><span style="font-size:12.800000190734863px">says</span><span style="font-family:arial,sans-serif;font-size:12.800000190734863px"> = String.</span><span style="font-family:arial,sans-serif;font-size:12.800000190734863px">localizedStringWithForm<wbr>at(</span><span style="font-family:arial,sans-serif;font-size:12.800000190734863px">NSLocalizedString(&quot;<div class="gmail_default" style="font-family:georgia,serif;display:inline">​blabla</div>%<div class="gmail_default" style="font-family:georgia,serif;display:inline">​@</div><div class="gmail_default" style="font-family:georgia,serif;display:inline">​blabla</div>&quot;, comment: &quot;<div class="gmail_default" style="font-family:georgia,serif;display:inline">​blabla</div>&quot;),<span class="m_2746626318681548156Apple-converted-space"> </span><div class="gmail_default" style="font-family:georgia,serif;display:inline">​String(​</div>count<div class="gmail_default" style="font-family:georgia,serif;display:inline">​)​</div>)</span></blockquote></div></blockquote></div><br></span><div>That’s not quite right, because the conversion of `count` to a string won’t be localized. Some languages use non-ASCII digits, use characters other than “.” for decimal points, etc. Depending on the exact type of `count`, it would need to be something like:</div><div><br></div><div><span class="m_2746626318681548156Apple-tab-span" style="white-space:pre-wrap">        </span>String.<wbr>localizedStringWithFormat(<wbr>NSLocalizedString(&quot;​blabla%​d​<wbr>blabla&quot;, comment: &quot;​blabla&quot;), ​count​)​</div><div><br></div><div>Hardcoding this specific kind of transformation into the parser seems like a bad idea, since NSLocalizedString isn’t part of the language. Why don’t you just use localizedStringWithFormat instead of string interpolation in your code?</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>—Jens</div></font></span></div></blockquote></div><br></div>