|
@@ -75,7 +75,7 @@ string pkgIndexFile::SourceInfo(pkgSrcRecords::Parser const &Record,
|
|
|
/* */
|
|
/* */
|
|
|
bool pkgIndexFile::TranslationsAvailable()
|
|
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)
|
|
if (Translation.compare("none") != 0)
|
|
|
return CheckLanguageCode(LanguageCode().c_str());
|
|
return CheckLanguageCode(LanguageCode().c_str());
|
|
@@ -107,7 +107,7 @@ bool pkgIndexFile::CheckLanguageCode(const char *Lang)
|
|
|
/* return the language code */
|
|
/* return the language code */
|
|
|
string pkgIndexFile::LanguageCode()
|
|
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)
|
|
if (Translation.compare("environment") == 0)
|
|
|
{
|
|
{
|