title: How to get iso2 language code for locale?
body: <p>I'm getting the iso2 language code this way:</p>
  
  <pre><code>public String getLang(Locale language)
      return language.toString().substring(0,2).toLowerCase()
  }
  </code></pre>
  
  <p>Is there better way to do this?</p>
  
  <p><strong>edit</strong>: when i use getLanguage, i get an empty string.</p>