You are here

public function csl_locale::__construct in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 modules/CiteProc/CSL.inc \csl_locale::__construct()
  2. 7.2 modules/CiteProc/CSL.inc \csl_locale::__construct()

File

modules/CiteProc/CSL.inc, line 2060
CiteProc-PHP.

Class

csl_locale

Code

public function __construct($lang = 'en') {
  $this->module_path = drupal_get_path('module', 'biblio_citeproc');
  $this->locale = new SimpleXMLElement($this
    ->get_locales_file_name($lang));
  if ($this->locale) {
    $this->locale
      ->registerXPathNamespace('cs', 'http://purl.org/net/xbiblio/csl');
  }
}