EBN Fixes: validity of i18n calls.

svn path=/trunk/KDE/kdepim/; revision=865867
wilder-work
Bertjan Broeksema 18 years ago
parent cc850e3f58
commit efe7e2f3dc
  1. 20
      distributionlistdialog.cpp
  2. 9
      favoritefolderview.cpp
  3. 4
      folderviewtooltip.h
  4. 4
      headeritem.cpp
  5. 8
      kmailicalifaceimpl.cpp
  6. 2
      kmcommands.cpp
  7. 20
      kmcomposewin.cpp
  8. 16
      kmfolderdialog.cpp
  9. 46
      kmmainwidget.cpp
  10. 3
      kmreadermainwin.cpp
  11. 4
      kmsearchpatternedit.cpp
  12. 3
      templatesconfiguration.cpp

@ -100,11 +100,11 @@ DistributionListDialog::DistributionListDialog( QWidget *parent )
{
QFrame *topFrame = new QFrame( this );
setMainWidget( topFrame );
setCaption( i18n("Save Distribution List") );
setCaption( i18nc("@title:window", "Save Distribution List") );
setButtons( User1 | Cancel );
setDefaultButton( User1 );
setModal( false );
setButtonText( User1, i18n("Save List") );
setButtonText( User1, i18nc("@action:button","Save List") );
QBoxLayout *topLayout = new QVBoxLayout( topFrame );
topLayout->setSpacing( spacingHint() );
@ -113,7 +113,8 @@ DistributionListDialog::DistributionListDialog( QWidget *parent )
titleLayout->setSpacing( spacingHint() );
topLayout->addItem( titleLayout );
QLabel *label = new QLabel( i18n("&Name:"), topFrame );
QLabel *label = new QLabel(
i18nc("@label:textbox Name of the distribution list.", "&Name:"), topFrame );
titleLayout->addWidget( label );
mTitleEdit = new KLineEdit( topFrame );
@ -124,7 +125,8 @@ DistributionListDialog::DistributionListDialog( QWidget *parent )
mRecipientsList = new QTreeWidget( topFrame );
mRecipientsList->setHeaderLabels(
QStringList() << i18n( "Name" ) << i18n( "Email" )
QStringList() << i18nc( "@title:column Name of the recipient","Name" )
<< i18nc( "@title:column Email of the recipient", "Email" )
);
mRecipientsList->setRootIsDecorated( false );
topLayout->addWidget( mRecipientsList );
@ -181,7 +183,7 @@ void DistributionListDialog::slotUser1()
if ( isEmpty ) {
KMessageBox::information( this,
i18n("There are no recipients in your list. "
i18nc("@info", "There are no recipients in your list. "
"First select some recipients, "
"then try again.") );
return;
@ -191,8 +193,8 @@ void DistributionListDialog::slotUser1()
if ( name.isEmpty() ) {
bool ok = false;
name = KInputDialog::getText( i18n("New Distribution List"),
i18n("Please enter name:"), QString(), &ok, this );
name = KInputDialog::getText( i18nc("@title:window","New Distribution List"),
i18nc("@label:textbox","Please enter name:"), QString(), &ok, this );
if ( !ok || name.isEmpty() )
return;
}
@ -203,8 +205,8 @@ void DistributionListDialog::slotUser1()
if ( ab->findDistributionListByName( name ) ) {
#endif
KMessageBox::information( this,
i18n( "<qt>Distribution list with the given name <b>%1</b> "
"already exists. Please select a different name.</qt>", name ) );
i18nc( "@info", "<para>Distribution list with the given name <placeholder>%1</placeholder> "
"already exists. Please select a different name.</para>", name ) );
return;
}

@ -386,7 +386,9 @@ void FavoriteFolderView::renameFolder()
if ( !mContextMenuItem )
return;
bool ok;
QString name = KInputDialog::getText( i18n("Rename Favorite"), i18n("Name:"), mContextMenuItem->text( 0 ), &ok, this );
QString name = KInputDialog::getText( i18n("Rename Favorite")
, i18nc( "@label:textbox New name of the folder.", "Name:")
, mContextMenuItem->text( 0 ), &ok, this );
if ( !ok )
return;
mContextMenuItem->setText( 0, name );
@ -409,9 +411,10 @@ QString FavoriteFolderView::prettyName(KMFolderTreeItem * fti)
}
} else {
if ( fti->protocol() != KFolderTreeItem::Local && fti->protocol() != KFolderTreeItem::NONE ) {
name = i18n( "%1 on %2", fti->text( 0 ), accountFti->text( 0 ) );
name = i18nc( "@item {FOLDER} on {MAIL ACCOUNT}", "%1 on %2", fti->text( 0 )
, accountFti->text( 0 ) );
} else {
name = i18n( "%1 (local)", fti->text( 0 ) );
name = i18nc( "@item Local folder.", "%1 (local)", fti->text( 0 ) );
}
}
return name;

@ -43,7 +43,7 @@ class FolderViewToolTip : public QObject
}
item->updateCount();
QString tipText = i18n( "<qt><b>%1</b><br>Total: %2<br>Unread: %3<br>Size: %4",
QString tipText = i18n( "<qt><b>%1</b><br/>Total: %2<br/>Unread: %3<br/>Size: %4</qt>",
item->folder()->prettyUrl().replace( " ", "&nbsp;" ),
item->totalCount() < 0 ? "-" : QString::number( item->totalCount() ),
item->unreadCount() < 0 ? "-" : QString::number( item->unreadCount() ),
@ -52,7 +52,7 @@ class FolderViewToolTip : public QObject
if ( KMFolderCachedImap* imap = dynamic_cast<KMFolderCachedImap*>( item->folder()->storage() ) ) {
QuotaInfo info = imap->quotaInfo();
if ( info.isValid() && !info.isEmpty() )
tipText += i18n("<br>Quota: %1", info.toString() );
tipText += i18n("<br/>Quota: %1", info.toString() );
}
QToolTip::showText( mListView->viewport()->mapToGlobal( point ), tipText, mListView );

@ -159,14 +159,14 @@ QString HeaderItem::text( int col) const
else
tmp = mMsgBase->fromStrip();
if (tmp.isEmpty())
tmp = i18n("Unknown");
tmp = i18nc("Unknown mail header.","Unknown");
else
tmp = tmp.simplified();
} else if ( col == headers->paintInfo()->receiverCol ) {
tmp = mMsgBase->toStrip();
if (tmp.isEmpty())
tmp = i18n("Unknown");
tmp = i18nc("Unknown mail header.","Unknown");
else
tmp = tmp.simplified();

@ -1750,9 +1750,11 @@ void KMailICalIfaceImpl::readConfig()
}
operations += "</ul>";
msg = i18n("<qt>KMail found the following groupware folders in %1 and needs to perform the following operations: %2"
"<br />If you do not want this, cancel"
" and the IMAP resource will be disabled", parentFolderName, operations);
msg = i18n( "<qt>KMail found the following groupware folders in %1 and"
"needs to perform the following operations: %2<nl/>"
"If you do not want this, cancel"
" and the IMAP resource will be disabled</qt>"
, parentFolderName, operations );
}

@ -2326,7 +2326,7 @@ KMCommand::Result KMUrlClickedCommand::execute()
mime->name() == "application/x-ms-dos-executable" ||
mime->name() == "application/x-shellscript" )
{
if (KMessageBox::warningYesNo( 0, i18nc( "@info", "Do you really want to execute <filename>%1</<filename>?",
if (KMessageBox::warningYesNo( 0, i18nc( "@info", "Do you really want to execute <filename>%1</filename>?",
mUrl.pathOrUrl() ), QString(), KGuiItem(i18n("Execute")), KStandardGuiItem::cancel() ) != KMessageBox::Yes)
return Canceled;
}

@ -214,8 +214,8 @@ KMComposeWin::KMComposeWin( KMMessage *aMsg, uint id )
mLblTransport = new QLabel( i18n("&Mail transport:"), mHeadersArea );
mLblFrom = new QLabel( i18nc("sender address field", "&From:"), mHeadersArea );
mLblReplyTo = new QLabel( i18n("&Reply to:"), mHeadersArea );
mLblSubject = new QLabel( i18n("S&ubject:"), mHeadersArea );
QString sticky = i18n("Sticky");
mLblSubject = new QLabel( i18nc("@label:textbox Subject of email.", "S&ubject:"), mHeadersArea );
QString sticky = i18nc("@option:check Sticky identity.", "Sticky");
mBtnIdentity = new QCheckBox( sticky, mHeadersArea );
mBtnFcc = new QCheckBox( sticky, mHeadersArea );
mBtnTransport = new QCheckBox( sticky, mHeadersArea );
@ -1149,7 +1149,8 @@ void KMComposeWin::setupActions( void )
mFixedFontAction->setChecked( GlobalSettings::self()->useFixedFont() );
//these are checkable!!!
mUrgentAction = new KToggleAction( i18n("&Urgent"), this );
mUrgentAction = new KToggleAction(
i18nc("@action:inmenu Mark the email as urgent.","&Urgent"), this );
actionCollection()->addAction( "urgent", mUrgentAction );
mRequestMDNAction = new KToggleAction( i18n("&Request Disposition Notification"), this );
actionCollection()->addAction("options_request_mdn", mRequestMDNAction );
@ -1218,7 +1219,8 @@ void KMComposeWin::setupActions( void )
mReplyToAction = new KToggleAction(i18n("&Reply To"), this);
actionCollection()->addAction("show_reply_to", mReplyToAction );
connect( mReplyToAction, SIGNAL(triggered(bool) ), SLOT(slotView()));
mSubjectAction = new KToggleAction(i18n("S&ubject"), this);
mSubjectAction = new KToggleAction(
i18nc("@action:inmenu Show the subject in the composer window.", "S&ubject"), this);
actionCollection()->addAction("show_subject", mSubjectAction );
connect(mSubjectAction, SIGNAL(triggered(bool) ), SLOT(slotView()));
//end of checkable
@ -1367,7 +1369,9 @@ void KMComposeWin::setupStatusBar( void )
statusBar()->insertPermanentItem( i18n(" Spellcheck: %1 ", QString( " " )), 3, 0) ;
statusBar()->insertPermanentItem( i18n(" Column: %1 ", QString( " " ) ), 2, 0 );
statusBar()->insertPermanentItem( i18n(" Line: %1 ", QString( " " ) ), 1, 0 );
statusBar()->insertPermanentItem(
i18nc("Shows the linenumber of the cursor position.", " Line: %1 "
, QString( " " ) ), 1, 0 );
}
//-----------------------------------------------------------------------------
@ -2024,7 +2028,9 @@ bool KMComposeWin::addAttach( const KUrl &aUrl )
const int maxAttachmentSize = GlobalSettings::maximumAttachmentSize();
if ( aUrl.isLocalFile() && maxAttachmentSize >= 0 && QFileInfo( aUrl.pathOrUrl() ).size() > (maxAttachmentSize*1024*1024 /*in bytes*/ ) ) {
KMessageBox::sorry( this, i18n( "<qt><p>Your administrator has disallowed attaching files bigger than %1 MB.</p>", maxAttachmentSize ) );
KMessageBox::sorry( this,
i18n( "<qt><p>Your administrator has disallowed attaching files bigger than %1 MB.</p></qt>"
, maxAttachmentSize ) );
return false;
}
@ -4105,7 +4111,7 @@ void KMComposeWin::slotCursorPositionChanged()
QString temp;
line = mEditor->linePosition();
col = mEditor->columnNumber();
temp = i18n( " Line: %1 ", line + 1 );
temp = i18nc("Shows the linenumber of the cursor position.", " Line: %1 ", line + 1 );
statusBar()->changeItem( temp, 1 );
temp = i18n( " Column: %1 ", col + 1 );
statusBar()->changeItem( temp, 2 );

@ -119,7 +119,7 @@ KMFolderDialog::KMFolderDialog( KMFolder *aFolder, KMFolderDir *aFolderDir,
QFrame *box;
box = new KVBox;
addPage( box, i18n("General") );
addPage( box, i18nc("@title:tab General settings for a folder.", "General") );
tab = new FolderDialogGeneralTab( this, aName, box );
addTab( tab );
@ -284,7 +284,7 @@ KMail::FolderDialogGeneralTab::FolderDialogGeneralTab( KMFolderDialog* dlg,
topLayout->addItem( hl );
hl->setSpacing( KDialog::spacingHint() );
label = new QLabel( i18n("&Name:"), this );
label = new QLabel( i18nc("@label:textbox Name of the folder.","&Name:"), this );
hl->addWidget( label );
mNameEdit = new KLineEdit( this );
@ -322,7 +322,8 @@ KMail::FolderDialogGeneralTab::FolderDialogGeneralTab( KMFolderDialog* dlg,
ihl->addWidget( mIconsCheckBox );
ihl->addStretch( 2 );
mNormalIconLabel = new QLabel( i18n("&Normal:"), this );
mNormalIconLabel = new QLabel(
i18nc("Icon used for folders with no unread messages.", "&Normal:"), this );
mNormalIconLabel->setEnabled( false );
ihl->addWidget( mNormalIconLabel );
@ -337,7 +338,8 @@ KMail::FolderDialogGeneralTab::FolderDialogGeneralTab( KMFolderDialog* dlg,
mNormalIconButton->setEnabled( false );
ihl->addWidget( mNormalIconButton );
mUnreadIconLabel = new QLabel( i18n("&Unread:"), this );
mUnreadIconLabel = new QLabel(
i18nc("Icon used for folders which do have unread messages.","&Unread:"), this );
mUnreadIconLabel->setEnabled( false );
ihl->addWidget( mUnreadIconLabel );
@ -455,9 +457,9 @@ KMail::FolderDialogGeneralTab::FolderDialogGeneralTab( KMFolderDialog* dlg,
mShowSenderReceiverComboBox->setToolTip( tip );
sender_label->setBuddy(mShowSenderReceiverComboBox);
gl->addWidget( mShowSenderReceiverComboBox, row, 1 );
mShowSenderReceiverComboBox->insertItem(0, i18n("Default"));
mShowSenderReceiverComboBox->insertItem(1, i18n("Sender"));
mShowSenderReceiverComboBox->insertItem(2, i18n("Receiver"));
mShowSenderReceiverComboBox->insertItem(0, i18nc("@item:inlistbox Show default value.", "Default"));
mShowSenderReceiverComboBox->insertItem(1, i18nc("@item:inlistbox Show sender.", "Sender"));
mShowSenderReceiverComboBox->insertItem(2, i18nc("@item:inlistbox Show receiver.", "Receiver"));
QString whoField;
if (mDlg->folder()) whoField = mDlg->folder()->userWhoField();

@ -576,25 +576,34 @@ void KMMainWidget::readConfig()
* but otherwise the restoreLayout from KMFolderTree
* doesn't know that to do */
if ( unreadColumn == 1 )
mFolderTree->addUnreadColumn( i18n("Unread"), 70 );
mFolderTree->addUnreadColumn(
i18nc("@title:column Number of unread messages.", "Unread"), 70 );
else if ( totalColumn == 1 )
mFolderTree->addTotalColumn( i18n("Total"), 70 );
mFolderTree->addTotalColumn(
i18nc("@title:column Total number of messages.", "Total"), 70 );
else if ( sizeColumn == 1 )
mFolderTree->addSizeColumn( i18n("Size"), 70 );
mFolderTree->addSizeColumn(
i18nc("@title:column Size of the messages.", "Size"), 70 );
if ( unreadColumn == 2 )
mFolderTree->addUnreadColumn( i18n("Unread"), 70 );
mFolderTree->addUnreadColumn(
i18nc("@title:column Number of unread messages.", "Unread"), 70 );
else if ( totalColumn == 2 )
mFolderTree->addTotalColumn( i18n("Total"), 70 );
mFolderTree->addTotalColumn(
i18nc("@title:column Total number of messages.", "Total"), 70 );
else if ( sizeColumn == 2 )
mFolderTree->addSizeColumn( i18n("Size"), 70 );
mFolderTree->addSizeColumn(
i18nc("@title:column Size of the messages.", "Size"), 70 );
if ( unreadColumn == 3 )
mFolderTree->addUnreadColumn( i18n("Unread"), 70 );
mFolderTree->addUnreadColumn(
i18nc("@title:column Number of unread messages.", "Unread"), 70 );
else if ( totalColumn == 3 )
mFolderTree->addTotalColumn( i18n("Total"), 70 );
mFolderTree->addTotalColumn(
i18nc("@title:column Total number of messages.", "Total"), 70 );
else if ( sizeColumn == 3 )
mFolderTree->addSizeColumn( i18n("Size"), 70 );
mFolderTree->addSizeColumn(
i18nc("@title:column Size of the messages.", "Size"), 70 );
slotFolderTreeColumnsChanged();
mFolderTree->updatePopup();
@ -1348,25 +1357,25 @@ void KMMainWidget::slotRemoveFolder()
}
else {
str = i18n("<qt>Are you sure you want to delete the empty folder "
"<b>%1</b> and all its subfolders? Those subfolders might "
"<filename>%1</filename> and all its subfolders? Those subfolders might "
"not be empty and their contents will be discarded as well. "
"<p><b>Beware</b> that discarded messages are not saved "
"into your Trash folder and are permanently deleted.</qt>",
"into your Trash folder and are permanently deleted.</p></qt>",
Qt::escape( mFolder->label() ) );
}
} else {
if ( !mFolder->child() || mFolder->child()->isEmpty() ) {
str = i18n("<qt>Are you sure you want to delete the folder "
"<b>%1</b>, discarding its contents? "
"<filename>%1</filename>, discarding its contents? "
"<p><b>Beware</b> that discarded messages are not saved "
"into your Trash folder and are permanently deleted.</qt>",
"into your Trash folder and are permanently deleted.</p></qt>",
Qt::escape( mFolder->label() ) );
}
else {
str = i18n("<qt>Are you sure you want to delete the folder <b>%1</b> "
str = i18n("<qt>Are you sure you want to delete the folder <filename>%1</filename> "
"and all its subfolders, discarding their contents? "
"<p><b>Beware</b> that discarded messages are not saved "
"into your Trash folder and are permanently deleted.</qt>",
"into your Trash folder and are permanently deleted.</p></qt>",
Qt::escape( mFolder->label() ) );
}
}
@ -2979,7 +2988,8 @@ void KMMainWidget::setupActions()
mForwardAttachedAction->setShortcut(QKeySequence(Qt::Key_F));
connect(mForwardAttachedAction, SIGNAL(triggered(bool) ), SLOT(slotForwardAttachedMsg()));
mForwardActionMenu->addAction( forwardAttachedAction() );
mForwardAction = new KAction(KIcon("mail-forward"), i18n("&Inline..."), this);
mForwardAction = new KAction(KIcon("mail-forward"),
i18nc("@action:inmenu Message->Forward->", "&Inline..."), this);
actionCollection()->addAction("message_forward_inline", mForwardAction );
connect(mForwardAction, SIGNAL(triggered(bool) ), SLOT(slotForwardMsg()));
mForwardAction->setShortcut(QKeySequence(Qt::SHIFT+Qt::Key_F));
@ -3189,7 +3199,7 @@ void KMMainWidget::setupActions()
} else {
action->setIcon( KIcon( "go-next" ) );
}
action->setIconText( i18n( "Next" ) );
action->setIconText( i18nc( "@action:inmenu Goto next unread message", "Next" ) );
action->setToolTip(i18n("Go to the next unread message"));
connect(action, SIGNAL(triggered(bool) ), SLOT(slotNextUnreadMessage()));
}
@ -3209,7 +3219,7 @@ void KMMainWidget::setupActions()
} else {
action->setIcon( KIcon( "go-previous" ) );
}
action->setIconText( i18n( "Previous" ) );
action->setIconText( i18nc( "@action:inmenu Goto previous unread message.","Previous" ) );
action->setToolTip(i18n("Go to the previous unread message"));
connect(action, SIGNAL(triggered(bool) ), SLOT(slotPrevUnreadMessage()));
}

@ -303,7 +303,8 @@ void KMReaderMainWin::setupAccel()
connect(mForwardAttachedAction, SIGNAL(triggered(bool) ), SLOT(slotForwardAttachedMsg()));
mForwardActionMenu->addAction( mForwardAttachedAction );
mForwardAction = new KAction(KIcon("mail-forward"), i18n("&Inline..."), this);
mForwardAction = new KAction(KIcon("mail-forward")
, i18nc("@action:inmenu Forward current message inline.", "&Inline..."), this);
actionCollection()->addAction("message_forward_inline", mForwardAction );
connect(mForwardAction, SIGNAL(triggered(bool) ), SLOT(slotForwardMsg()));
mForwardAction->setShortcut(QKeySequence(Qt::SHIFT+Qt::Key_F));

@ -52,9 +52,9 @@ static const struct {
{ "<size>", I18N_NOOP( "Size in Bytes" ) },
{ "<age in days>", I18N_NOOP( "Age in Days" ) },
{ "<status>", I18N_NOOP( "Message Status" ) },
{ "Subject", I18N_NOOP( "Subject" ) },
{ "Subject", I18N_NOOP2( "Subject of an email.", "Subject" ) },
{ "From", I18N_NOOP( "From" ) },
{ "To", I18N_NOOP( "To" ) },
{ "To", I18N_NOOP2( "Receiver of an email.", "To" ) },
{ "CC", I18N_NOOP( "CC" ) }
};
static const int SpecialRuleFieldsCount =

@ -64,8 +64,7 @@ TemplatesConfiguration::TemplatesConfiguration( QWidget *parent, const char *nam
this, SLOT( slotInsertCommand(const QString &, int) ) );
mHelpString =
i18n( "<qt>"
"<p>Here you can create and manage templates to use when "
i18n( "<p>Here you can create and manage templates to use when "
"composing new messages, replies or forwarded messages.</p>"
"<p>The message templates support substitution commands, "
"either simply type them or select them from "

Loading…
Cancel
Save