title: Apply localization on output format
body: <p>I am doing localisation for my little app but translating strings is not enough. My code is:</p>
  
  <p><code>result.setText(hsDist + " " + interval);</code></p>
  
  <p>The output in english will be :-</p>
  
  <p>"Major Third"</p>
  
  <p>The spanish(and others) output should be:</p>
  
  <p>"Tercera Mayor"</p>
  
  <p>So the "spanish" version of the code should be:</p>
  
  <p><code>result.setText(interval + " " + hsDist);</code></p>
  
  <p>Is there a way to choose each line of code depending on localisation? Any other approach to solve this?</p>