'Brasil', 'CH' => 'Switzerland', 'CN' => 'China', 'CZ' => 'Czechia', 'DE' => 'Deutschland', 'FR' => 'France', 'GR' => 'Greece', 'NC' => 'Nouvelle-Calédonie', 'NL' => 'Nederlands', 'TW' => 'Taiwan', 'UK' => 'the UK', 'US' => 'the USA', ); $tmpl = << %s %s %s %s %s %s T; $s = ''; $glob = array_shift($prods); $popularity = array_shift($prods); $i = 0; foreach ($prods as $k => $p) { if (isset($p['hidden'])) { continue; } $iso = sprintf('%s-%s', $glob['prefix'], $k); $dl_link = sprintf('/%s/downloads/dl.php?product=%s', $locale, $iso); $bt_link = isset($p['torrent']) ? sprintf('/%s/downloads/dl.php?product=%s&torrent=1', $locale, $iso) : null; $pop = array_key_exists($k, $popularity) ? $popularity[$k] : 0; $s .= sprintf($tmpl, '', //($i == 0) ? ' class="reco"' : '', $p['name'], $_t[$p['lang']], $p['size'], $pop, $pop, $dl_link, $_t['download'], $bt_link, !is_null($bt_link) ? $_t['download'] : '' ); $i++; } $dl_table = << {$_t['flavour']} {$_t['language']} {$_t['size']} Popularity {$_t['link']} BitTorrent {$s}

{$_t['all_languages']}

{$_t['limited_languages']}

{$_t['euro_languages']}

Not sure of what ISO to download? This may still be a bit verbose, but you may want to read this article detailing our different install media.

T;