summaryrefslogtreecommitdiffabout
path: root/korganizer/kofilterview.cpp
authorzautrix <zautrix>2005-06-16 06:30:09 (UTC)
committer zautrix <zautrix>2005-06-16 06:30:09 (UTC)
commit9f60da2b6768e94d2aeb2f94a4479b6678f2aa76 (patch) (side-by-side diff)
treeeea4e7ee02afc86a543c142efa7b5c8c83e0f1f8 /korganizer/kofilterview.cpp
parentb8b1547f1f4ae54ace16e5faf55aad1274ec2e57 (diff)
downloadkdepimpi-9f60da2b6768e94d2aeb2f94a4479b6678f2aa76.zip
kdepimpi-9f60da2b6768e94d2aeb2f94a4479b6678f2aa76.tar.gz
kdepimpi-9f60da2b6768e94d2aeb2f94a4479b6678f2aa76.tar.bz2
fixxx
Diffstat (limited to 'korganizer/kofilterview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/kofilterview.cpp23
1 files changed, 12 insertions, 11 deletions
diff --git a/korganizer/kofilterview.cpp b/korganizer/kofilterview.cpp
index 36ee2eb..e4dc751 100644
--- a/korganizer/kofilterview.cpp
+++ b/korganizer/kofilterview.cpp
@@ -198,3 +198,3 @@ void KOCalEditView::deleteCal( int id )
QString file = kkf->mFileName;
- if ( KMessageBox::warningContinueCancel( this, i18n("The calendar<tr><b>%1</b><tr>is displaying file<tr><b>%2</b><tr>Do you want to remove<tr>this calendar from KO/Pi?<tr>(The file is not removed!)").arg(name).arg(file) ) != KMessageBox::Continue ) return;
+ if ( KMessageBox::warningContinueCancel( this, i18n("The calendar <b>%1</b> is displaying file <b>%2</b>. Do you want to remove this calendar from KO/Pi? (The file is not removed!)").arg(name).arg(file) ) != KMessageBox::Continue ) return;
if ( kkf->isStandard )
@@ -211,3 +211,3 @@ void KOCalEditView::infoCal( int id )
if ( KOPrefs::instance()->getCalendar( id )->mErrorOnLoad ) {
- if ( KMessageBox::Yes == KMessageBox::questionYesNo( this, i18n("The calendar <tr><b>%1</b><tr> is not loaded! Loading of file <tr><b>%2</b><tr>failed!<tr><b>Try again to load the calendar?</b>").arg(name).arg(file) ) ) {
+ if ( KMessageBox::Yes == KMessageBox::questionYesNo( this, i18n("The calendar <b>%1</b> is not loaded! Loading of file <b>%2</b> failed! <b>Try again to load the calendar?</b>").arg(name).arg(file) ) ) {
emit calendarAdded( id );
@@ -218,3 +218,3 @@ void KOCalEditView::infoCal( int id )
else
- KMessageBox::information( this, i18n("The calendar <tr><b>%1</b><tr>is displaying file<tr><b>%2</b>").arg(name).arg(file) );
+ KMessageBox::information( this, i18n("The calendar <b>%1</b> is displaying file <b>%2</b>").arg(name).arg(file) );
}
@@ -346,4 +346,4 @@ void KOCalEditView::addCal()
KONewCalPrefs prefs ( this );
- if ( !name.isEmpty() ) prefs.nameE->setText( name );
- if ( !file.isEmpty() ) prefs.url->setURL( file );
+ prefs.nameE->setText( name );
+ prefs.url->setURL( file );
if ( ! prefs.exec() )
@@ -356,11 +356,12 @@ void KOCalEditView::addCal()
if ( kkf->mName == name ) {
- KMessageBox::information( this, i18n("Sorry, the calendar name already exists!\nPlease choose another name!") );
+ KMessageBox::information( this, i18n("Sorry, the calendar name \n%1\nalready exists!\nPlease choose another name!").arg( name ) );
name = "";
+ tryagain = true;
break;
- tryagain = true;
}
if ( kkf->mFileName == file ) {
-
- break;
+ KMessageBox::information( this, i18n("Sorry, the file \n%1\nis already loaded!\nPlease choose another file!").arg( file) );
tryagain = true;
+ file = "";
+ break;
}
@@ -371,3 +372,3 @@ void KOCalEditView::addCal()
if (!fi.exists() ) {
- if ( KMessageBox::questionYesNo(this, i18n("The file does not exist!\nShall I create it for you?")) == KMessageBox::No )
+ if ( KMessageBox::questionYesNo(this, i18n("The file\n%1\ndoes not exist!\nShall I create it for you?").arg( file ) )== KMessageBox::No )
return;
@@ -375,3 +376,3 @@ void KOCalEditView::addCal()
if (!fileIn.open( IO_WriteOnly ) ) {
- KMessageBox::sorry( this, i18n("Sorry, cannot create the file!\nNo calendar added!") );
+ KMessageBox::sorry( this, i18n("Sorry, cannot create the file\n%1!\nNo calendar added!").arg( file ) );
return;