Commit 31a81436 authored by Claudio Valerio's avatar Claudio Valerio

language can be choosed on windows system too

parent 38ea6466
...@@ -1233,11 +1233,12 @@ void UBBoardController::setActiveDocumentScene(UBDocumentProxy* pDocumentProxy, ...@@ -1233,11 +1233,12 @@ void UBBoardController::setActiveDocumentScene(UBDocumentProxy* pDocumentProxy,
if(documentChange) if(documentChange)
{ {
emit activeDocumentChanged(); emit activeDocumentChanged();
emit setDocOnPageNavigator(pDocumentProxy);
UBGraphicsTextItem::lastUsedTextColor = QColor(); UBGraphicsTextItem::lastUsedTextColor = QColor();
} }
// Notify the navigator palette that the document has changed // Notify the navigator palette that the document has changed
emit setDocOnPageNavigator(pDocumentProxy); //emit setDocOnPageNavigator(pDocumentProxy);
if (sceneChange) if (sceneChange)
{ {
......
...@@ -235,10 +235,12 @@ void UBApplication::setupTranslator(QString forcedLanguage) ...@@ -235,10 +235,12 @@ void UBApplication::setupTranslator(QString forcedLanguage)
mQtGuiTranslator->load(UBPlatformUtils::translationPath(QString("qt_"),language)); mQtGuiTranslator->load(UBPlatformUtils::translationPath(QString("qt_"),language));
if(mQtGuiTranslator){ if(!mQtGuiTranslator->isEmpty()){
// checked because this translation could be not available // checked because this translation could be not available
installTranslator(mQtGuiTranslator); installTranslator(mQtGuiTranslator);
} }
else
qDebug() << "Qt gui translation in " << language << " are not available";
} }
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include <windows.h> #include <windows.h>
#include <shellapi.h> #include <shellapi.h>
#include "frameworks/UBFileSystemUtils.h"
#include "core/memcheck.h" #include "core/memcheck.h"
void UBPlatformUtils::init() void UBPlatformUtils::init()
......
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