summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2007-03-13 14:04:55 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2007-03-13 14:04:55 +0100
commit90ff41f8a6fdd304ac645f8279464462ca36fccd (patch)
tree1913efb4115e5bd248393230d77c3dfb2647c1f4 /apt-pkg
parentad08bf610f0849ddd877abab0f2020dd1ae52dd1 (diff)
* apt-pkg/indexfile.cc:
- fix problem overwriting APT::Acquire::Translation * doc/examples/configure-index: - document APT::Acquire::Translation
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/indexfile.cc4
-rw-r--r--apt-pkg/init.cc3
2 files changed, 2 insertions, 5 deletions
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)
{
diff --git a/apt-pkg/init.cc b/apt-pkg/init.cc
index 0be0aee98..f58855792 100644
--- a/apt-pkg/init.cc
+++ b/apt-pkg/init.cc
@@ -106,9 +106,6 @@ bool pkgInitConfig(Configuration &Cnf)
}
#endif
- // Translation
- Cnf.Set("APT::Acquire::Translation", "environment");
-
return true;
}
/*}}}*/