<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Nov 1, 2016, at 7:52 PM, Zhao Xin <<a href="mailto:owenzx@gmail.com" class="">owenzx@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="gmail_default" style="font-size: 15px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 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; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: georgia, serif;"><br class=""></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; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 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;" class="">let </span><span style="font-size: 12.800000190734863px;" class="">says</span><span style="font-family: arial, sans-serif; font-size: 12.800000190734863px;" class=""> = String.</span><span style="font-family: arial, sans-serif; font-size: 12.800000190734863px;" class="">localizedStringWithForm<wbr class="">at(</span><span style="font-family: arial, sans-serif; font-size: 12.800000190734863px;" class="">NSLocalizedString("<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>", comment: "<div class="gmail_default" style="font-family: georgia, serif; display: inline;">blabla</div>"),<span class="Apple-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 class=""><div class="">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 class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>String.localizedStringWithFormat(NSLocalizedString("blabla%dblabla", comment: "blabla"), count)</div><div class=""><br class=""></div><div class="">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><div class=""><br class=""></div><div class="">—Jens</div></body></html>