use Deb::Versions;
use Packages::Config qw( $DBDIR @SUITES @ARCHIVES @SECTIONS
- @ARCHITECTURES %FTP_SITES @DDTP_LANGUAGES);
+ @ARCHITECTURES %FTP_SITES
+ @LANGUAGES @DDTP_LANGUAGES);
use Packages::I18N::Locale;
use Packages::CGI qw( :DEFAULT make_url make_search_url );
use Packages::DB;
my $trans_desc = $desctrans{$desc_md5};
if ($trans_desc) {
my %trans_desc = split /\000|\001/, $trans_desc;
- $contents{used_langs} = ['en', sort keys %trans_desc];
+ my %all_langs = map { $_ => 1 } (@LANGUAGES, keys %trans_desc);
+ $contents{used_langs} = [ keys %all_langs ];
debug( "TRANSLATIONS: ".join(" ",keys %trans_desc), 2)
if DEBUG;
while (my ($l, $d) = each %trans_desc) {
use Benchmark ':hireswallclock';
use Packages::CGI;
+use Packages::Config qw( @LANGUAGES );
use Packages::I18N::Locale;
use Packages::I18N::Languages;
use Packages::I18N::LanguageNames;
#use Data::Dumper;
#die Dumper($self, $action, $page_content);
- $page_content->{used_langs} ||= [ 'en' ];
+ $page_content->{used_langs} ||= \@LANGUAGES;
$page_content->{langs} = languages( $page_content->{lang}
|| $self->{vars}{lang} || 'en',
@{$page_content->{used_langs}} );