[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Missing i18n in apt-pkg/contrib/error.cc?



Hi,

I found an older German error message somewhere in the BTS in which the
error indicator "E: " isn't translated. I don't know whether the German
translation was in the past outdated or not so I searched the current
apt code for it and found in apt-pkg/contrib/error.cc:

// GlobalError::DumpErrors - Dump all of the errors/warns to cerr /*{{{*/
// ---------------------------------------------------------------------
/* */
void GlobalError::DumpErrors()
{  
   // Print any errors or warnings found
   string Err;
   while (empty() == false)
   {  
      bool Type = PopMessage(Err);
      if (Type == true)
   cerr << "E: " << Err << endl;
      else
   cerr << "W: " << Err << endl;
   }
}

I would expect to see _("E: "), _("W: ") to allow to translate it. Are there
reasons against it? Please note that translations of both indicators are already
used in FTWScanner::ScannerFile in ftparchive/writer.cc.

PS: The two messages
    _("E: Errors apply to file ")
    _("E: Argument list from Acquire::gpgv::Options too long. Exiting.")
should be splitted to
    _("E: ") << _("Errors apply to file ")
(similar for the other message, both are used in streams). This avoids inconsistent
translations.

Jens


Reply to: