Changeset 9b89bb9


Ignore:
Timestamp:
04/16/14 08:43:49 (16 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, enter/10, releng/10.0.2, releng/10.0.3, releng/10.1, releng/10.1.1, releng/10.1.2
Children:
91e85fc
Parents:
b3191325
Message:

Clean up the new lumina-config/main.cpp file from josh

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lumina/lumina-config/main.cpp

    r936fdd6 r9b89bb9  
    44#include <QDebug> 
    55#include "MainUI.h" 
     6 
     7#ifndef PREFIX 
    68#define PREFIX QString("/usr/local") 
     9#endif 
    710 
    811int main(int argc, char ** argv) 
     
    1720    QString langCode = mylocale.name(); 
    1821     
    19     if ( ! QFile::exists(PREFIX + "/share/Lumina-DE/lumina-config_" + langCode + ".qm" ) )  langCode.truncate(langCode.indexOf("_")); 
    20     translator.load( QString("lumina-config_") + langCode, PREFIX + "/share/Lumina-DE/" ); 
     22    if ( ! QFile::exists(PREFIX + "/share/Lumina-DE/i18n/lumina-config_" + langCode + ".qm" ) )  langCode.truncate(langCode.indexOf("_")); 
     23    translator.load( QString("lumina-config_") + langCode, PREFIX + "/share/i18n/Lumina-DE/" ); 
    2124    a.installTranslator( &translator ); 
    2225    qDebug() << "Locale:" << langCode; 
     
    2730    w.show(); 
    2831 
    29       } 
    30     } 
    3132    int retCode = a.exec(); 
    3233    return retCode; 
Note: See TracChangeset for help on using the changeset viewer.