Changeset a5bc020


Ignore:
Timestamp:
07/09/13 07:55:58 (14 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2
Children:
4f9718b
Parents:
e100ad2
git-author:
Ken Moore <ken@…> (07/09/13 07:54:58)
git-committer:
Ken Moore <ken@…> (07/09/13 07:55:58)
Message:

Fix up the PCDM locale switcher. It should now work properly once the translations are finished.

Location:
src-qt4/PCDM/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/PCDM/src/dialogLocale.cpp

    r1620346 ra5bc020  
    7171QStringList widgetLocale::getLanguages(){ 
    7272  //Detect all the available localizations 
    73   QString str = QCoreApplication::applicationDirPath(); 
    74   QDir dir(str+"/i18n"); 
     73  QString str = "/usr/local/share/PCDM/i18n"; 
     74  QDir dir(str); 
    7575  QStringList stL = dir.entryList(QDir::Files); 
    7676  stL = stL.filter(".qm");   
  • src-qt4/PCDM/src/pcdm-gui.cpp

    r6bd7798 ra5bc020  
    7979  //get the default translation directory 
    8080  if(DEBUG_MODE){ qDebug() << "Load Translations"; } 
    81   translationDir = QApplication::applicationDirPath() + "/i18n/"; 
     81  translationDir = "/usr/local/share/PCDM/i18n/"; 
    8282  //Fill the translator 
    8383  m_translator = new QTranslator(); 
     
    415415 
    416416  if(m_translator->load(translationFile)){ 
    417     Backend::log("Install the new translator"); 
     417    Backend::log("Install the new translator: "+translationFile); 
    418418    QCoreApplication::installTranslator(m_translator);     
    419419  } 
Note: See TracChangeset for help on using the changeset viewer.