Commit 21815ef8 authored by Mehrdad Momeny's avatar Mehrdad Momeny

Typo fix

svn path=/trunk/playground/pim/blogilo/; revision=1026082
parent 725cc1e2
......@@ -277,7 +277,7 @@ void AddEditBlog::handleFetchIDTimeout()
ui.txtId->setText( QString() );
ui.txtId->setEnabled( true );
hideWaitWidget();
KMessageBox::error( this, i18n( "Fetching the blog id timed out. Check your internet connection,\
KMessageBox::error( this, i18n( "Fetching the blog id timed out. Check your Internet connection,\
and your homepage Url, username or password!\nnote that the url has to contain \"http://\"\
\nIf you are using a self hosted Wordpress blog, you have to enable Remote Publishing on its configurations" ) );
}
......@@ -289,9 +289,9 @@ void AddEditBlog::handleFetchAPITimeout()
mFetchAPITimer = 0;
hideWaitWidget();
ui.txtId->setEnabled( true );
KMessageBox::sorry( this, i18n( "Sorry, Blogilo cannot guess API type automatically,\
please check your internet connection, otherwise you have to set API type on advanced tab manually." ),
i18n( "AutoConfiguration Failed" ) );
KMessageBox::sorry( this, i18n( "Sorry, API guess function have failed,\
please check your Internet connection, otherwise you have to set API type on advanced tab manually." ),
i18n( "Auto Configuration Failed" ) );
}
void AddEditBlog::handleFetchError( KBlog::Blog::ErrorType type, const QString & errorMsg )
......
......@@ -295,7 +295,7 @@ void Backend::mediaUploaded( KBlog::BlogMedia * media )
quint16 newChecksum = qChecksum( media->data().data(), media->data().count() );
if ( newChecksum != m->checksum() ) {
kError() << "Check sum error: checksum of sent file: " << m->checksum() <<
" Checksum of recived file: " << newChecksum << "Error: " << media->error() << endl;
" Checksum of received file: " << newChecksum << "Error: " << media->error() << endl;
const QString tmp( i18n( "Uploading media failed: Checksum error. Returned error: %1",
media->error() ) );
kDebug() << "Emitting sigMediaError ...";
......@@ -364,40 +364,6 @@ void Backend::error( KBlog::Blog::ErrorType type, const QString & errorMessage )
Q_EMIT sigError( errType );
}
/*
void Backend::setPostCategories( const QString postId, const QMap< QString, bool > & categoriesList )
{
kDebug() << "Categories to be set for post: " << categoriesList.keys();
int count = categoriesList.count();
if ( count < 1 ) {
kDebug() << "Category list is empty.";
return;
}
if ( mBBlog->api() == BilboBlog::MOVABLETYPE_API || mBBlog->api() == BilboBlog::WORDPRESSBUGGY_API ) {
KBlog::MovableType *mt = qobject_cast<KBlog::MovableType*>( mKBlog );
connect( mt, SIGNAL( settedPostCategories( const QString & ) ),
this, SLOT( postCategoriesSetted( const QString& ) ) );
mt->setPostCategories( postId, categoriesList );
} else {
kDebug() << "Blog API doesn't support setting post categories the api type is: " << mBBlog->api();
QString err = i18n( "The registred blog API does not support setting categories for a post." );
error(KBlog::Blog::NotSupported, err);
}
}
void Backend::postCategoriesSetted( const QString &postId )
{
kDebug();
KBlog::BlogPost *post = mSetPostCategoriesMap[ postId ];
mSubmitPostStatusMap[ post ] = post->status();
connect( mKBlog, SIGNAL( fetchedPost(KBlog::BlogPost*)),
this, SLOT( savePostInDbAndEmitResult(KBlog::BlogPost*)) );
mKBlog->fetchPost( post );
mSetPostCategoriesMap.remove( postId );
}
*/
void Backend::sltMediaError( KBlog::Blog::ErrorType type, const QString & errorMessage, KBlog::BlogMedia * media )
{
kDebug();
......
......@@ -151,7 +151,7 @@ Q_SIGNALS:
void sigPostFetched( BilboPost *post );
/**
* this signal emitted when an error occured on current transaction.
* this signal emitted when an error occurred on current transaction.
* @param type type of error
* @param errorMessage error message.
*/
......
......@@ -37,6 +37,7 @@ Blog definition class!
*/
class BilboBlog : public QObject
{
Q_OBJECT
public:
enum ApiType {
BLOGGER1_API = 0, METAWEBLOG_API, MOVABLETYPE_API, WORDPRESSBUGGY_API, GDATA_API
......
......@@ -217,7 +217,7 @@ bool DBMan::createDB()
mLastErrorText = q.lastError().text();
}
///delete related informations on DB, On removing a post or a blog
///delete related information on DB, On removing a post or a blog
q.exec( "CREATE TRIGGER delete_post AFTER DELETE ON post\
BEGIN\
DELETE FROM post_cat WHERE post_cat.postId=OLD.postid;\
......
......@@ -93,7 +93,7 @@ bool UploadMediaDialog::selectNewFile()
{
QString mediaPath;
#ifdef WIN32
mediaPath = QFileDialog::getOpenFileName( this, i18n("Select Media to Upload") );
mediaPath = QFileDialog::getOpenFileName( this, i18n("Select Media to Upload") );//krazy:exclude=qclasses KFileDialog has problem on WIN32 now
#else
mediaPath = KFileDialog::getOpenFileName( KUrl("kfiledialog:///image?global"),
QString(), this,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment