Commit 91d50d14 authored by Jyri-Petteri Paloposki's avatar Jyri-Petteri Paloposki Committed by Marco Villegas
Browse files

Issue #978154 by ZeiP: Fixed Language is not mapped correctly.

parent e0876b6d
Loading
Loading
Loading
Loading
+5 −0
Changes for issuu.api.inc: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -123,6 +123,11 @@ function issuu_document_categories() {
function issuu_get_languages() {
  $predefined = _locale_get_predefined_list();
  foreach ($predefined as $key => $value) {
    // Issuu doesn't support variants (for example pt-br), so skip those.
    if (strlen($key) != 2) {
      unset($predefined[$key]);
      continue;
    }
    // Include native name in output, if possible
    if (count($value) > 1) {
      $tname = t($value[0]);