You are here

function csl_locale::__construct in Bibliography Module 6.2

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

File

modules/CiteProc/CSL.inc, line 1546

Class

csl_locale

Code

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');
  }
}