function csl_locale::__construct in Bibliography Module 7.2
Same name and namespace in other branches
- 6.2 modules/CiteProc/CSL.inc \csl_locale::__construct()
- 7 modules/CiteProc/CSL.inc \csl_locale::__construct()
File
- modules/
CiteProc/ CSL.inc, line 1465
Class
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');
}
}