* apt-pkg/indexfile.cc:
authorMichael Vogt <michael.vogt@ubuntu.com>
Tue, 13 Mar 2007 13:04:55 +0000 (14:04 +0100)
committerMichael Vogt <michael.vogt@ubuntu.com>
Tue, 13 Mar 2007 13:04:55 +0000 (14:04 +0100)
  - fix problem overwriting APT::Acquire::Translation
* doc/examples/configure-index:
  - document APT::Acquire::Translation

apt-pkg/indexfile.cc
apt-pkg/init.cc
debian/changelog
doc/examples/configure-index
po/apt-all.pot

index bb2210b..fad3877 100644 (file)
@@ -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) 
   {
index 0be0aee..f588557 100644 (file)
@@ -106,9 +106,6 @@ bool pkgInitConfig(Configuration &Cnf)
    }
 #endif
 
-   // Translation
-   Cnf.Set("APT::Acquire::Translation", "environment");
-   
    return true;
 }
                                                                        /*}}}*/
index cbcee29..aa6a016 100644 (file)
@@ -11,6 +11,10 @@ apt (0.6.46.4ubuntu9) feisty; urgency=low
     - fix version output in autoremove list (LP#68941)
   * apt-pkg/packagemanager.cc:
     - do not spin 100% cpu in FixMissing() (LP#84476)
+  * apt-pkg/indexfile.cc:
+    - fix problem overwriting APT::Acquire::Translation
+  * doc/examples/configure-index:
+    - document APT::Acquire::Translation
   
  -- 
 
index 4262b47..e5d1f2a 100644 (file)
@@ -191,6 +191,9 @@ Acquire
    // mirror failure reporting url
    ReportFailures "http://example.com/mirror-failure"; 
   };
+
+  // translations can be set here to "none", "environment" or "$locale"
+  Translation "none";
 };
 
 // Directory layout
index 794b346..82dfae5 100644 (file)
@@ -2294,12 +2294,12 @@ msgstr ""
 msgid "Please insert the disc labeled: '%s' in the drive '%s' and press enter."
 msgstr ""
 
-#: apt-pkg/init.cc:126
+#: apt-pkg/init.cc:123
 #, c-format
 msgid "Packaging system '%s' is not supported"
 msgstr ""
 
-#: apt-pkg/init.cc:142
+#: apt-pkg/init.cc:139
 msgid "Unable to determine a suitable packaging system type"
 msgstr ""