From 90ff41f8a6fdd304ac645f8279464462ca36fccd Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Tue, 13 Mar 2007 14:04:55 +0100 Subject: * apt-pkg/indexfile.cc: - fix problem overwriting APT::Acquire::Translation * doc/examples/configure-index: - document APT::Acquire::Translation --- apt-pkg/indexfile.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apt-pkg/indexfile.cc') diff --git a/apt-pkg/indexfile.cc b/apt-pkg/indexfile.cc index bb2210bf6..fad38772b 100644 --- a/apt-pkg/indexfile.cc +++ b/apt-pkg/indexfile.cc @@ -75,7 +75,7 @@ string pkgIndexFile::SourceInfo(pkgSrcRecords::Parser const &Record, /* */ bool pkgIndexFile::TranslationsAvailable() { - const string Translation = _config->Find("APT::Acquire::Translation"); + const string Translation = _config->Find("APT::Acquire::Translation", "environment"); if (Translation.compare("none") != 0) return CheckLanguageCode(LanguageCode().c_str()); @@ -107,7 +107,7 @@ bool pkgIndexFile::CheckLanguageCode(const char *Lang) /* return the language code */ string pkgIndexFile::LanguageCode() { - const string Translation = _config->Find("APT::Acquire::Translation"); + const string Translation = _config->Find("APT::Acquire::Translation", "environment"); if (Translation.compare("environment") == 0) { -- cgit v1.2.3