summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@digia.com>2014-08-08 22:52:15 (GMT)
committerFrederik Gladhorn <frederik.gladhorn@digia.com>2014-08-08 22:52:15 (GMT)
commit9eec8ece731507c70a9de566f8fa1d0645dc3e49 (patch)
treea6338503a12aaf982952e91a97749e9ed47c5940
parent935a3fdcf811d0c4b8d90b80086f2f3aa9e208f6 (diff)
Disable dynamic translation loading
-rw-r--r--core/document.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/core/document.cpp b/core/document.cpp
index 6e9de38..d6f263d 100644
--- a/core/document.cpp
+++ b/core/document.cpp
@@ -973,8 +973,9 @@ Document::OpenResult DocumentPrivate::openDocumentInternal( const KService::Ptr&
QApplication::restoreOverrideCursor();
if ( openResult != Document::OpenSuccess || m_pagesVector.size() <= 0 )
{
- if ( !catalogName.isEmpty() )
- KGlobal::locale()->removeCatalog( catalogName );
+#pragma("KF5: FIXME load translations")
+// if ( !catalogName.isEmpty() )
+// KGlobal::locale()->removeCatalog( catalogName );
m_generator->d_func()->m_document = 0;
QObject::disconnect( m_generator, 0, m_parent, 0 );
@@ -2410,8 +2411,9 @@ void Document::closeDocument()
QHash< QString, GeneratorInfo >::const_iterator genIt = d->m_loadedGenerators.constFind( d->m_generatorName );
Q_ASSERT( genIt != d->m_loadedGenerators.constEnd() );
- if ( !genIt.value().catalogName.isEmpty() && !genIt.value().config )
- KGlobal::locale()->removeCatalog( genIt.value().catalogName );
+#pragma("KF5: FIXME load translations")
+// if ( !genIt.value().catalogName.isEmpty() && !genIt.value().config )
+// KGlobal::locale()->removeCatalog( genIt.value().catalogName );
}
d->m_generator = 0;
d->m_generatorName = QString();