~ubuntu-branches/ubuntu/lucid/konversation/lucid-updates

« back to all changes in this revision

Viewing changes to src/linkaddressbook/addressbook_base.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Modestas Vainius
  • Date: 2009-05-19 09:44:08 UTC
  • mfrom: (1.16.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 47.
  • Revision ID: james.westby@ubuntu.com-20090519094408-yi3yv1v4zzbsu2nx
Tags: 1.1.75+svn969816-1
* New upstream development snapshot:
  - Last Changed Author: tjmchenry
  - Last Changed Rev: 969816
  - Last Changed Date: 2009-05-19 04:45:54 +0300
  - Translations as of Tue, 19 May 2009 09:21:13 are included.
* Update download URL in debian/copyright.
* Update Debian menu icons.
* Update konversation.install: install translations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
391
391
        kDebug() << "running kaddressbook --editor-only --uid " << uid;
392
392
        if(!proc->startDetached())
393
393
        {
394
 
            KMessageBox::error(0, i18n("Could not run your addressbook program (kaddressbook).  This is most likely because it is not installed.  Please install the 'kdepim' packages."));
 
394
            KMessageBox::error(0, i18n("Could not run the address book program (kaddressbook) - this is most likely because it is not installed.  Please install the 'kdepim' packages."));
395
395
            return false;
396
396
        }
397
397
        return true;
457
457
                if(nicksWithEmails.isEmpty())
458
458
                {
459
459
                    if(nicksWithoutAddressee.count() > 1)
460
 
                        message = i18n("None of the contacts that you have selected were associated with an addressbook contacts. ");
 
460
                        message = i18n("None of the selected contacts are associated with address book entries. ");
461
461
                    else
462
 
                        message = i18n("The contact that you have selected is not associated with an addressbook contact. ");
 
462
                        message = i18n("The selected contact is not associated with an address book entry. ");
463
463
                }
464
464
                else
465
465
                {
466
466
                    if(nicksWithoutAddressee.count() > 1)
467
 
                        message = i18n("Some of the contacts (%1) that you have selected are not associated with addressbook contacts. ",nicksWithoutAddressee.join(", "));
 
467
                        message = i18n("Some of the contacts (%1) that you have selected are not associated with address book entries. ",nicksWithoutAddressee.join(", "));
468
468
                    else
469
 
                        message = i18n("One of the contacts (%1) that you have selected is not associated with an addressbook contact. ",nicksWithoutAddressee.join(", "));
 
469
                        message = i18n("One of the contacts (%1) that you have selected is not associated with an address book entry. ",nicksWithoutAddressee.join(", "));
470
470
                }
471
 
                message += i18n("You can right click on a contact, and choose to edit the Addressbook Associations to link them to a contact in your addressbook.");
 
471
                message += i18n("You can right click on a contact and choose to edit the Address Book Associations to link them to a contact in your address book.");
472
472
            }
473
473
            else if(nicksWithoutAddressee.isEmpty())
474
474
            {
475
475
                if(nicksWithEmails.isEmpty())
476
476
                {
477
477
                    if(nicksWithoutEmails.count() > 1)
478
 
                        message = i18n("None of the contacts that you have selected have an email address associated with them. ");
 
478
                        message = i18n("None of the selected contacts have an email address associated with them. ");
479
479
                    else
480
 
                        message = i18n("The contact that you have selected does not have an email address associated with them. ");
 
480
                        message = i18n("The selected contact does not have an associated email address. ");
481
481
                }
482
482
                else
483
483
                {
484
484
                    if(nicksWithoutEmails.count() > 1)
485
 
                        message = i18n("Some of the contacts (%1) that you have selected do not have an email address associated with them. ",nicksWithoutEmails.join(", "));
 
485
                        message = i18n("Some of the contacts (%1) that you have selected do not have email addresses associated with them. ",nicksWithoutEmails.join(", "));
486
486
                    else
487
487
                        message = i18n("One of the contacts (%1) that you have selected does not have an email address associated with them. ",nicksWithoutEmails.join(", "));
488
488
                }
489
 
                message += i18n("You can right click on a contact, and choose to edit the addressbook contact, adding an email for them.");
 
489
                message += i18n("You can right click on a contact and edit the corresponding address book entry to add an email address for them.");
490
490
            }
491
491
            else
492
492
            {
493
 
                message = i18n("Some of the contacts (%1) that you have selected are not associated with addressbook contacts, and some of the contacts (%2) do not have an email address associated with them.  ",nicksWithoutAddressee.join(", "),nicksWithoutEmails.join(", "));
494
 
                message += i18n("You can right click on a contact, and choose to edit the Addressbook Associations to link them to a contact in your addressbook, and choose to edit the addressbook contact, adding an email for them.");
 
493
                message = i18n("Some of the contacts (%1) that you have selected are not associated with address book entries, and some of the contacts (%2) do not have email addresses associated with them.  ",nicksWithoutAddressee.join(", "),nicksWithoutEmails.join(", "));
 
494
                message += i18n("For the former contacts, this can be resolved by right clicking on a contact and choosing to edit the Address Book Associations, thereby linking them to a contact in your address book.  For the latter, by choosing to editing the corresponding address book contact you can specify an email address for them.");
495
495
            }
496
496
            if(nicksWithEmails.isEmpty())
497
497
            {
500
500
            }
501
501
            else
502
502
            {
503
 
                message += i18n("\nDo you want to send an email anyway to the nicks that do have an email address?");
 
503
                message += i18n("\nDo you want to send an email anyway to the nicks that do have email addresses?");
504
504
                int result = KMessageBox::questionYesNo(0, message, i18n("Send Email"), KGuiItem(i18n("&Send Email...")), KGuiItem(i18n("&Cancel")));
505
505
                if(result == KMessageBox::No)
506
506
                {