-// VerIterator::TranslatedDescription - Return the a DescIter for locale/*{{{*/
-// ---------------------------------------------------------------------
-/* return a DescIter for the current locale or the default if none is
- * found
- */
-pkgCache::DescIterator pkgCache::VerIterator::TranslatedDescription() const
-{
- pkgCache::DescIterator DescDefault = DescriptionList();
- pkgCache::DescIterator Desc = DescDefault;
- for (; Desc.end() == false; Desc++)
- if (pkgIndexFile::LanguageCode() == Desc.LanguageCode())
- break;
- if (Desc.end() == true) Desc = DescDefault;
- return Desc;
-};
-
- /*}}}*/