Changeset 8 for Common/Locale.php


Ignore:
Timestamp:
Jan 22, 2016, 5:13:22 PM (8 years ago)
Author:
chronos
Message:
  • Added: Setup and Update class for basic web application setup and configuration.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Common/Locale.php

    r6 r8  
    5151      $ClassName = 'LocaleText'.$Language;
    5252      $this->Texts = new $ClassName();
    53     } else throw new Exception('Language file '.$FileName.' not found');
     53    } else throw new Exception(sprintf(T('Language file %s not found'), $FileName));
    5454    $this->Texts->Load();
    5555  }
     
    236236      $this->CurrentLocale->Dir = $this->Dir;
    237237      $this->CurrentLocale->Load($Code);
    238     } else throw new Exception('Unsupported locale code '.$Code);
     238    } else throw new Exception(sprintf(T('Unsupported locale code %s'), $Code));
    239239  }
    240240}
Note: See TracChangeset for help on using the changeset viewer.