setAndReturn( i18n( "You need to select an OpenPGP signing certificate to perform this operation." ) );
if ( needAnySC && !haveAnySC )
setAndReturn( i18n( "You need to select at least one signing certificate to proceed." ) );
if ( isSignEncrypt && needPgpSC && havePgpSC )
setAndReturn( i18n( "Only OpenPGP certificates will be offered for selection because you specified a combined sign/encrypt operation, which is only available for OpenPGP." ) );
if ( isSignEncrypt && havePgpSC && !haveCmsSC )
setAndReturn( i18n( "Only OpenPGP certificates will be offered for selection because you specified an OpenPGP signing certificate only." ) );
if ( haveCmsSC && !havePgpSC )
setAndReturn( i18n( "Only S/MIME certificates will be offered for selection because you specified an S/MIME signing certificate only." ) );
- const QString second = i18n( " One for OpenPGP recipients, one for S/MIME recipients." );
-
switch ( m_page->operation() )
{
- case SignerResolvePage::SignAndEncrypt:
- expl = i18n( "If you select certificates of both type OpenPGP and S/MIME, two encrypted files will be created." ) + second;
- break;
case SignerResolvePage::SignOnly:
- expl = QString();
+ if ( havePgpSC && haveCmsSC )
+ expl = i18n( "You have selected signing certificates of both type OpenPGP and S/MIME, thus two signatures will be created." );
break;
+ case SignerResolvePage::SignAndEncrypt:
case SignerResolvePage::EncryptOnly:
- expl = i18n( "If you select certificates of both type OpenPGP and S/MIME, two encrypted files will be created." ) + second;
+ expl = i18n( "If you select recipient certificates of both type OpenPGP and S/MIME, two encrypted files will be created. One for OpenPGP recipients, one for S/MIME recipients." );