ifstream repo_st(remote_repomd.asString().c_str());
callback::SendReport<SourceReport> report;
- report->start( selfSourceRef(), "Parsing index files" );
+ report->start( selfSourceRef(), _("Reading index files") );
YUMRepomdParser repomd(repo_st, "");
} // end of single patch parsing
}// end of patches file parsing
} // end of copying
- report->finish( selfSourceRef(), "Parsing index files", source::SourceReport::NO_ERROR, "" );
+ report->finish( selfSourceRef(), _("Reading index files"), source::SourceReport::NO_ERROR, "" );
// check signature
YUMSourceEventHandler npp(report);
progress.reset( new parser::ParserProgress( npp ) );
+ // TranslatorExplanation %s = product file
+ report->start( selfSourceRef(), str::form(_("Reading product from %s"), filename.asString().c_str()) );
+
YUMProductParser product(st, "", progress);
for (; !product.atEnd(); ++product)
{
if (product.errorStatus())
{
- report->finish( selfSourceRef(), "Parsing product from " + filename.asString(), source::SourceReport::INVALID, product.errorStatus()->msg() );
- ZYPP_THROW(SourceMetadataException( "Error parsing product from " + filename.asString()+ " : " + product.errorStatus()->msg()));
+ // TranslatorExplanation %s = product file
+ report->finish( selfSourceRef(), str::form(_("Reading product from %s"), filename.asString().c_str()), source::SourceReport::INVALID, product.errorStatus()->msg() );
+ ZYPP_THROW(SourceMetadataException( "Error reading product from " + filename.asString()+ " : " + product.errorStatus()->msg()));
}
else
{
- report->finish( selfSourceRef(), "Parsing product from " + filename.asString(), source::SourceReport::NO_ERROR, "" );
+ // TranslatorExplanation %s = product file
+ report->finish( selfSourceRef(), str::form(_("Reading product from %s"), filename.asString().c_str()), source::SourceReport::NO_ERROR, "" );
}
}
}
catch ( const Exception &e )
{
ZYPP_CAUGHT(e);
- report->finish( selfSourceRef(), "Parsing product from " + filename.asString(), source::SourceReport::INVALID, e.msg() );
+ // TranslatorExplanation %s = product file
+ report->finish( selfSourceRef(), str::form(_("Reading product from %s"), filename.asString().c_str()), source::SourceReport::INVALID, e.msg() );
ZYPP_THROW(SourceMetadataException(e.msg()));
}
parser::ParserProgress::Ptr progress;
YUMSourceEventHandler npp(report);
progress.reset( new parser::ParserProgress( npp, get_stream_size(filename) ) );
- report->start( selfSourceRef(), "Parsing filelist from " + filename.asString() );
+ // TranslatorExplanation %s = package file list
+ report->start( selfSourceRef(), str::form(_("Reading filelist from %s"), filename.asString().c_str()) );
YUMFileListParser filelist ( st, "", progress );
for (; ! filelist.atEnd(); ++filelist)
if (filelist.errorStatus())
{
- report->finish( selfSourceRef(), "Parsing filelist from " + filename.asString(), source::SourceReport::INVALID, filelist.errorStatus()->msg() );
- ZYPP_THROW(SourceMetadataException( "Error filelists from " + filename.asString()+ " : " + filelist.errorStatus()->msg()));
+ // TranslatorExplanation %s = package file list
+ report->finish( selfSourceRef(), str::form(_("Reading filelist from %s"), filename.asString().c_str()), source::SourceReport::INVALID, filelist.errorStatus()->msg() );
+ ZYPP_THROW(SourceMetadataException( "Error reading filelists from " + filename.asString()+ " : " + filelist.errorStatus()->msg()));
}
else
{
- report->finish( selfSourceRef(), "Parsing packages from " + filename.asString(), source::SourceReport::NO_ERROR, "" );
+ // TranslatorExplanation %s = package file list
+ report->finish( selfSourceRef(), str::form(_("Reading filelist from %s"), filename.asString().c_str()), source::SourceReport::NO_ERROR, "" );
}
}
}
catch ( const Exception &e )
{
ZYPP_CAUGHT(e);
- report->finish( selfSourceRef(), "Parsing filelist from " + filename.asString(), source::SourceReport::INVALID, e.msg() );
+ // TranslatorExplanation %s = package file list
+ report->finish( selfSourceRef(),str::form(_("Reading filelist from %s"), filename.asString().c_str()), source::SourceReport::INVALID, e.msg() );
ZYPP_THROW(SourceMetadataException(e.msg()));
}
parser::ParserProgress::Ptr progress;
YUMSourceEventHandler npp(report);
progress.reset( new parser::ParserProgress( npp ) );
- report->start( selfSourceRef(), "Parsing packages from " + filename.asString() );
+ // TranslatorExplanation %s = packages file
+ report->start( selfSourceRef(), str::form(_("Reading packages from %s"), filename.asString().c_str()) );
ifgzstream st ( filename.asString().c_str() );
if (prim.errorStatus())
{
- report->finish( selfSourceRef(), "Parsing packages from " + filename.asString(), source::SourceReport::INVALID, prim.errorStatus()->msg() );
+ // TranslatorExplanation %s = packages file
+ report->finish( selfSourceRef(), str::form(_("Reading packages from %s"), filename.asString().c_str()), source::SourceReport::INVALID, prim.errorStatus()->msg() );
ZYPP_THROW(SourceMetadataException( "Error packages from " + filename.asString()+ " : " + prim.errorStatus()->msg()));
}
else
{
- report->finish( selfSourceRef(), "Parsing packages from " + filename.asString(), source::SourceReport::NO_ERROR, "" );
+ // TranslatorExplanation %s = packages file
+ report->finish( selfSourceRef(), str::form(_("Reading packages from %s"), filename.asString().c_str()), source::SourceReport::NO_ERROR, "" );
}
}
}
catch ( const Exception &e )
{
ZYPP_CAUGHT(e);
- report->finish( selfSourceRef(), "Parsing packages from " + filename.asString(), source::SourceReport::INVALID, e.msg() );
+ // TranslatorExplanation %s = packages file
+ report->finish( selfSourceRef(), str::form(_("Reading packages from %s"), filename.asString().c_str()), source::SourceReport::INVALID, e.msg() );
ZYPP_THROW(SourceMetadataException(e.msg()));
}
parser::ParserProgress::Ptr progress;
YUMSourceEventHandler npp(report);
progress.reset( new parser::ParserProgress( npp ) );
- report->start( selfSourceRef(), "Parsing selection " + filename.asString() );
+ // TranslatorExplanation %s = selection metadata file
+ report->start( selfSourceRef(), str::form(_("Reading selection from %s"), filename.asString().c_str()) );
YUMGroupParser group(st, "", progress);
for (; !group.atEnd(); ++group)
if (group.errorStatus())
{
- report->finish( selfSourceRef(), "Parsing selection " + filename.asString(), source::SourceReport::INVALID, group.errorStatus()->msg() );
+ // TranslatorExplanation %s = selection metadata file
+ report->finish( selfSourceRef(), str::form(_("Reading selection from %s"), filename.asString().c_str()), source::SourceReport::INVALID, group.errorStatus()->msg() );
ZYPP_THROW(SourceMetadataException( "Error Parsing selection " + filename.asString()+ " : " + group.errorStatus()->msg()));
}
else
{
- report->finish( selfSourceRef(), "Parsing selection " + filename.asString(), source::SourceReport::NO_ERROR, "" );
+ // TranslatorExplanation %s = selection metadata file
+ report->finish( selfSourceRef(), str::form(_("Reading selection from %s"), filename.asString().c_str()), source::SourceReport::NO_ERROR, "" );
}
}
}
catch ( const Exception &e )
{
ZYPP_CAUGHT(e);
- report->finish( selfSourceRef(), "Parsing selecton " + filename.asString(), source::SourceReport::INVALID, e.msg() );
+ // TranslatorExplanation %s = selection metadata file
+ report->finish( selfSourceRef(), str::form(_("Reading selection from %s"), filename.asString().c_str()), source::SourceReport::INVALID, e.msg() );
ZYPP_THROW(SourceMetadataException(e.msg()));
}
parser::ParserProgress::Ptr progress;
YUMSourceEventHandler npp(report);
progress.reset( new parser::ParserProgress( npp ) );
- report->start( selfSourceRef(), "Parsing pattern " + filename.asString() );
+ // TranslatorExplanation %s = pattern metadata file
+ report->start( selfSourceRef(), str::form(_("Reading pattern from %s"), filename.asString().c_str()) );
YUMPatternParser pattern(st, "", progress);
for (; !pattern.atEnd(); ++pattern)
if (pattern.errorStatus())
{
- report->finish( selfSourceRef(), "Parsing pattern " + filename.asString(), source::SourceReport::INVALID, pattern.errorStatus()->msg() );
+ // TranslatorExplanation %s = pattern metadata file
+ report->finish( selfSourceRef(), str::form(_("Reading pattern from %s"), filename.asString().c_str()), source::SourceReport::INVALID, pattern.errorStatus()->msg() );
ZYPP_THROW(SourceMetadataException( "Error parsing pattern" + filename.asString()+ " : " + pattern.errorStatus()->msg()));
}
else
{
- report->finish( selfSourceRef(), "Parsing pattern " + filename.asString(), source::SourceReport::NO_ERROR, "" );
+ // TranslatorExplanation %s = pattern metadata file
+ report->finish( selfSourceRef(), str::form(_("Reading pattern from %s"), filename.asString().c_str()), source::SourceReport::NO_ERROR, "" );
}
}
}
catch ( const Exception &e )
{
ZYPP_CAUGHT(e);
- report->finish( selfSourceRef(), "Parsing pattern " + filename.asString(), source::SourceReport::INVALID, e.msg() );
+ // TranslatorExplanation %s = pattern metadata file
+ report->finish( selfSourceRef(), str::form(_("Reading pattern from %s"), filename.asString().c_str()), source::SourceReport::INVALID, e.msg() );
ZYPP_THROW(SourceMetadataException(e.msg()));
}
parser::ParserProgress::Ptr progress;
YUMSourceEventHandler npp(report);
progress.reset( new parser::ParserProgress( npp ) );
- report->start( selfSourceRef(), "Parsing patches index " + filename.asString() );
+ // TranslatorExplanation %s = patches index file
+ report->start( selfSourceRef(), str::form(_("Reading patches index %s"), filename.asString().c_str()) );
YUMPatchesParser patch(st, "", progress);
for (; !patch.atEnd(); ++patch)
if (patch.errorStatus())
{
- report->finish( selfSourceRef(), "Parsing patch " + filename.asString(), source::SourceReport::INVALID, patch.errorStatus()->msg() );
+ // TranslatorExplanation %s = patches index file
+ report->finish( selfSourceRef(), str::form(_("Reading patches index %s"), filename.asString().c_str()), source::SourceReport::INVALID, patch.errorStatus()->msg() );
ZYPP_THROW(SourceMetadataException( "Error Parsing patch " + filename.asString()+ " : " + patch.errorStatus()->msg()));
}
else
{
- report->finish( selfSourceRef(), "Parsing patch " + filename.asString(), source::SourceReport::NO_ERROR, "" );
+ // TranslatorExplanation %s = patches index file
+ report->finish( selfSourceRef(), str::form(_("Reading patches index %s"), filename.asString().c_str()), source::SourceReport::NO_ERROR, "" );
}
}
}
catch ( const Exception &e )
{
ZYPP_CAUGHT(e);
- report->finish( selfSourceRef(), "Parsing patch index" + filename.asString(), source::SourceReport::INVALID, e.msg() );
+ // TranslatorExplanation %s = patches index file
+ report->finish( selfSourceRef(), str::form(_("Reading patches index %s"), filename.asString().c_str()), source::SourceReport::INVALID, e.msg() );
ZYPP_THROW(SourceMetadataException(e.msg()));
}
YUMSourceEventHandler npp(report);
progress.reset( new parser::ParserProgress( npp ) );
- report->start( selfSourceRef(), "Parsing patch " + filename.asString() );
+ // TranslatorExplanation %s = patch metadata file
+ report->start( selfSourceRef(), str::form(_("Reading patch %s"), filename.asString().c_str()) );
YUMPatchParser ptch(st, "", progress);
for (; !ptch.atEnd(); ++ptch)
if (ptch.errorStatus())
{
- report->finish( selfSourceRef(), "Parsing patch " + filename.asString(), source::SourceReport::INVALID, ptch.errorStatus()->msg() );
+ // TranslatorExplanation %s = patch metadata file
+ report->finish( selfSourceRef(), str::form(_("Reading patch %s"), filename.asString().c_str()), source::SourceReport::INVALID, ptch.errorStatus()->msg() );
ZYPP_THROW(SourceMetadataException( "Error Parsing patch " + filename.asString()+ " : " + ptch.errorStatus()->msg()));
}
else
{
- report->finish( selfSourceRef(), "Parsing patch " + filename.asString(), source::SourceReport::NO_ERROR, "" );
+ // TranslatorExplanation %s = patch metadata file
+ report->finish( selfSourceRef(), str::form(_("Reading patch %s"), filename.asString().c_str()), source::SourceReport::NO_ERROR, "" );
}
}
}
{
ERR << "Cannot read patch metadata" << endl;
ZYPP_CAUGHT(e);
- report->finish( selfSourceRef(), "Parsing patch " + filename.asString(), source::SourceReport::INVALID, e.msg() );
+ // TranslatorExplanation %s = patch metadata file
+ report->finish( selfSourceRef(), str::form(_("Reading patch %s"), filename.asString().c_str()), source::SourceReport::INVALID, e.msg() );
ZYPP_THROW(SourceMetadataException(e.msg()));
}
}