done
fi
done
-
-echo
-# Update mo
-#
-test -d ${localedir} || mkdir -p ${localedir}
-for lang in ${polangs}
-do
- test -d ${localedir}/${lang}/LC_MESSAGES \
- || mkdir -p ${localedir}/${lang}/LC_MESSAGES
- for domain in ${podomains}
- do
- echo domain=$domain language=$lang
- msgfmt --statistics -o ${localedir}/${lang}/LC_MESSAGES/${domain}.mo ${domain}.${lang}.po
- done
-done
our @ISA = qw( Exporter );
our ( $TOPDIR, $DBDIR, $TEMPLATEDIR, $CACHEDIR, $ROOT,
- @LANGUAGES, @DDTP_LANGUAGES, $LOCALES,
+ @LANGUAGES, @DDTP_LANGUAGES,
@SUITES, @SECTIONS, @ARCHIVES, @ARCHITECTURES,
@PRIORITIES, %FTP_SITES );
our @EXPORT_OK = qw( $TOPDIR $DBDIR $TEMPLATEDIR $CACHEDIR $ROOT
- @LANGUAGES @DDTP_LANGUAGES $LOCALES
+ @LANGUAGES @DDTP_LANGUAGES
@SUITES @SECTIONS @ARCHIVES @ARCHITECTURES
@PRIORITIES %FTP_SITES );
our %EXPORT_TAGS = ( all => [ @EXPORT_OK ] );
$TEMPLATEDIR = $1 if /^\s*templatedir="?([^\"]*)"?\s*$/o;
$CACHEDIR = $1 if /^\s*cachedir="?([^\"]*)"?\s*$/o;
$ROOT = $1 if /^\s*root="?([^\"]*)"?\s*$/o;
- $LOCALES = $1 if /^\s*localedir="?([^\"]*)"?\s*$/o;
$FTP_SITES{us} = $1 if /^\s*ftpsite="?([^\"]*)"?\s*$/o;
$FTP_SITES{$1} = $2 if /^\s*(\w+)_ftpsite="?([^\"]*)"?\s*$/o;
@LANGUAGES = split(/\s+/, $1) if /^\s*polangs="?([^\"]*)"?\s*$/o;
@ARCHITECTURES = split(/\s+/, $1) if /^\s*architectures="?([^\"]*)"?\s*$/o;
@PRIORITIES = split(/\s+/, $1) if /^\s*priorities="?([^\"]*)"?\s*$/o;
}
- foreach (($TEMPLATEDIR, $CACHEDIR, $LOCALES)) {
+ foreach (($TEMPLATEDIR, $CACHEDIR)) {
s/\$\{?topdir\}?/$TOPDIR/g;
}
close (C);
use Deb::Versions;
use Packages::Config qw( $DBDIR $ROOT $TEMPLATEDIR $CACHEDIR
@SUITES @SECTIONS @ARCHIVES @ARCHITECTURES @PRIORITIES
- @LANGUAGES @DDTP_LANGUAGES $LOCALES );
+ @LANGUAGES @DDTP_LANGUAGES );
use Packages::CGI qw( :DEFAULT error get_all_messages );
use Packages::DB;
use Packages::Search qw( :all );