Changeset f2fe669


Ignore:
Timestamp:
Dec 2, 2013 3:42:18 PM (5 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, releng/10.0, releng/10.0.1
Children:
5af5abc, 4e1b189
Parents:
7e84c8b
Message:

Fix up the visibility of the "en_US" (default) locale in PCDM

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

Legend:

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

    ra5bc020 rf2fe669  
    7979    stL[i] = stL[i].section("_",1,50).section(".qm",0,0).simplified();   
    8080  } 
     81  //make sure that en_US is always available 
     82  stL.prepend("en_US"); 
    8183  return stL; 
    8284} 
  • src-qt4/PCDM/src/pcdm-backend.cpp

    ra982a19 rf2fe669  
    185185{ 
    186186    QStringList _languages; 
    187     _languages << "Default - (en_US)"; //make sure this is always at the top of the list 
     187    _languages.append("Default - (en_US)"); //make sure this is always at the top of the list 
    188188    QString code, desc, line; 
    189189 
  • src-qt4/PCDM/src/pcdm-gui.cpp

    ra982a19 rf2fe669  
    396396  //Get the valid Locale code 
    397397  QString translationFile; 
    398   if(!QFile::exists(translationDir+"PCDM_"+langCode+".qm")){ 
     398  if(!QFile::exists(translationDir+"PCDM_"+langCode+".qm") && langCode!="en_US"){ 
    399399    langCode = langCode.section("_",0,0); 
    400400    if(!QFile::exists(translationDir+"PCDM_"+langCode+".qm")){ 
Note: See TracChangeset for help on using the changeset viewer.