title: How to handle parameters in shortcode function
body: <p>I'm doing my first shortcode for WordPress. The function that I'm doing will return different translation of a string depending on the parameter <code>se</code> for swedish or <code>en</code> for english. So I'm going to use a simple <code>if statement</code> or a <code>switch statement</code>, but which of the two option below are the best and what's the difference between them? Should I use <code>$a</code> or <code>language</code> to check the in parameter? The default value is <code>se</code> for swedish.</p>
  
  <pre><code>$a = shortcode_atts( array(
  'language' =&gt; 'se',
  ), $atts );
  </code></pre>
  
  <p>or</p>
  
  <pre><code>extract(shortcode_atts(array("language"=&gt;"se"),$atts));
  </code></pre>