You are here

function csl_number::long_ordinal in Bibliography Module 7.2

Same name and namespace in other branches
  1. 6.2 modules/CiteProc/CSL.inc \csl_number::long_ordinal()
  2. 7 modules/CiteProc/CSL.inc \csl_number::long_ordinal()
1 call to csl_number::long_ordinal()
csl_number::render in modules/CiteProc/CSL.inc

File

modules/CiteProc/CSL.inc, line 1049

Class

csl_number

Code

function long_ordinal($num) {
  $num = sprintf("%02d", $num);
  $ret = $this->citeproc
    ->get_locale('term', 'long-ordinal-' . $num);
  if (!$ret) {
    return $this
      ->ordinal($num);
  }
  return $ret;
}