\n";
}
# only print the arch name on the first row
if ( $first == 1 ) {
print " " . $arches{$arch} . " | \n";
$first = 0;
} else {
print " | \n";
}
print " " . $formats{$ext} . " | \n";
# permute over languages
print " ";
foreach $l10nlang (sort langcmp keys %sorted_langs) {
$lang = $sorted_langs{$l10nlang};
next if exists $missing{"$lang:$ext"};
$file_version = &$namingscheme( $targetfile,
$langs{$lang}, $ext );
# convert languages with sublangs (zh_TW -> zh-tw)
(my $lang_alt = $langs{$lang}) =~ s/(\w\w)_(\w\w)/"$1-".lc($2)/e;
my $file_version_alt = &$namingscheme( $targetfile,
$lang_alt, $ext );
if( $check_if_file_exists &&
! -f "$targetdir/$file_version" &&
-f "$targetdir/$file_version_alt" ) {
$file_version = $file_version_alt;
}
if (! $check_if_file_exists ||
-f "$targetdir/$file_version") {
# all languages should be defined in %trans. Add missing entries
# in English if this is not the case
print "" if $lang eq lc($CUR_LANG);
print "" . $trans{$CUR_ISO_LANG}{$lang} . "";
print "" if $lang eq lc($CUR_LANG);
print " \n";
}
}
print " | ";
print "
\n";
}
}
}