public function loadLabels($locale, $force = false)
    {
        if (!$this->labelsLoaded || $force) {
            if (file_exists(\Nf\Registry::get('applicationPath') . '/labels/' . $locale . '.ini')) {
                $this->labels=parse_ini_file(\Nf\Registry::get('applicationPath') . '/labels/' . $locale . '.ini', true);
                $this->labelsLoaded=true;
            } else {
                throw new \Exception('Cannot load labels for this locale (' . $locale . ')');
            }
        }
    }
public function loadLabels($locale, $force = false)
    {
        if (!$this->labelsLoaded || $force) {
            if (file_exists(\Nf\Registry::get('applicationPath') . '/labels/' . $locale . '.ini')) {
                $this->labels=parse_ini_file(\Nf\Registry::get('applicationPath') . '/labels/' . $locale . '.ini', true);
                $this->labelsLoaded=true;
            } else {
                throw new \Exception('Cannot load labels for this locale (' . $locale . ')');
            }
        }
    }
public function loadLabels ( $ locale , $ force = false ) { if ( ! $ this -> labelsLoaded || $ force ) { if ( file_exists ( \ Nf \ Registry :: get ( 'applicationPath' ) . '/labels/' . $ locale . '.ini' ) ) { $ this -> labels = parse_ini_file ( \ Nf \ Registry :: get ( 'applicationPath' ) . '/labels/' . $ locale . '.ini' , true ) ; $ this -> labelsLoaded = true ; } else { throw new \ Exception ( 'Cannot load labels for this locale (' . $ locale . ')' ) ; } } }
load the labels
load the labels