title: How to format localised strings in Swift?
body: <p>I am learning to localise my app to Simplified Chinese. I am following <a href="http://www.raywenderlich.com/64401/internationalization-tutorial-for-ios-2014" rel="noreferrer">this tutorial</a> on how to do this.</p>
  
  <p>Because the tutorial is based on Obj-C, formatted strings can be written like this:</p>
  
  <pre><code>"Yesterday you sold %@ apps" = "Ayer le vendi&amp;oacute; %@ aplicaciones";
  </code></pre>
  
  <p>"You like?" = "~Es bueno?~";</p>
  
  <p>But I am using Swift. And in Swift I don't think you can use <code>%@</code> to indicate that there is something to be placed there. We have string interpolation right?</p>
  
  <p>My app is kind of related to maths. And I want to display which input(s) is used to compute the result in a detailed label of a table view cell. For example</p>
  
  <pre><code>--------------
  1234.5678
  From x, y &lt;---- Here is the detailed label
  --------------
  </code></pre>
  
  <p>Here, <code>From x, y</code> means "The result is computed from x and y". I want to translate this to Chinese:</p>
  
  <pre><code>从 x, y 得出
  </code></pre>
  
  <p>Before, I can just use this:</p>
  
  <pre><code>"From \(someVariable)"
  </code></pre>
  
  <p>with the strings file:</p>
  
  <pre><code>"From" = "从 得出";
  </code></pre>
  
  <p>And this is how I would use it in code</p>
  
  <pre><code>"\(NSLocalizedString("From", comment: "")) \(someVariable)"
  </code></pre>
  
  <p>But if this were used in the Chinese version, the final string will be like this:</p>
  
  <pre><code>"从 得出 x, y"
  </code></pre>
  
  <p>I mean I can put the <code>从</code> and <code>得出</code> in two different entries in the strings file. But is there a better way to do it?</p>