Ignore:
Timestamp:
10/18/13 10:18:39 (14 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1
Children:
688b57d
Parents:
e8cdd4d
Message:

Add the ability for the GUI installer to detect your country and try to
set the default language based upon it. This will work ONLY if the
installer was able to connect to the internet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/pc-installgui/backend.cpp

    r33f5a6d r8d3682c  
    234234    return -1; 
    235235} 
     236 
     237QString Backend::detectCountryCode() 
     238{ 
     239    QString code; 
     240 
     241    Process p(QStringList() << "detect-country"); 
     242 
     243    if (p.waitForFinished()) { 
     244       code = p.readLine().simplified(); 
     245    } 
     246    qDebug() << "Found Country Code:" << code; 
     247    return code; 
     248} 
     249 
    236250 
    237251QStringList Backend::networkDevices() 
Note: See TracChangeset for help on using the changeset viewer.