title: PHP get name for locale
body: <p>I want to get a localized name for a locale.
  For example:</p>
  
  <p>I have an array of locales (in real the array is much bigger):</p>
  
  <pre><code>$languageAndRegion = array (
      'de',
      'de_AT',
      'de_CH',
      'de_DE',
      'de_LI',
      'de_LU'
  );
  </code></pre>
  
  <p>And now i want to get something like that:</p>
  
  <pre><code>foreach ($languageAndRegion as &amp;$value) {
      $name = magicFunction($value, 'en');
      echo $name;
  }
  </code></pre>
  
  <p>The output should be like that:</p>
  
  <pre><code>German
  German (Austria)
  German (Germany)
  German (Swiss)
  ...
  </code></pre>