language can be choosed on windows system too

preferencesAboutTextFull
Claudio Valerio 13 years ago
parent 38ea646650
commit 31a814360a
  1. 3
      src/board/UBBoardController.cpp
  2. 4
      src/core/UBApplication.cpp
  3. 1
      src/frameworks/UBPlatformUtils_win.cpp

@ -1233,11 +1233,12 @@ void UBBoardController::setActiveDocumentScene(UBDocumentProxy* pDocumentProxy,
if(documentChange)
{
emit activeDocumentChanged();
emit setDocOnPageNavigator(pDocumentProxy);
UBGraphicsTextItem::lastUsedTextColor = QColor();
}
// Notify the navigator palette that the document has changed
emit setDocOnPageNavigator(pDocumentProxy);
//emit setDocOnPageNavigator(pDocumentProxy);
if (sceneChange)
{

@ -235,10 +235,12 @@ void UBApplication::setupTranslator(QString forcedLanguage)
mQtGuiTranslator->load(UBPlatformUtils::translationPath(QString("qt_"),language));
if(mQtGuiTranslator){
if(!mQtGuiTranslator->isEmpty()){
// checked because this translation could be not available
installTranslator(mQtGuiTranslator);
}
else
qDebug() << "Qt gui translation in " << language << " are not available";
}

@ -20,6 +20,7 @@
#include <windows.h>
#include <shellapi.h>
#include "frameworks/UBFileSystemUtils.h"
#include "core/memcheck.h"
void UBPlatformUtils::init()

Loading…
Cancel
Save