Skip to content

Commit

Permalink
pkp/pkp-lib#3394 consider only sr-RS CSL locale
Browse files Browse the repository at this point in the history
  • Loading branch information
bozana committed Mar 16, 2018
1 parent 836fac8 commit 6d2f1ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CitationStyleLanguagePlugin.inc.php
Expand Up @@ -377,7 +377,7 @@ public function getCitation($request, $article, $citationStyle = 'apa', $issue =
} else {
$style = $this->loadStyle($styleConfig);
if ($style) {
$locale = str_replace('_', '-', AppLocale::getLocale());
$locale = str_replace('_', '-', substr(AppLocale::getLocale(), 0, 5));
$citeProc = new CiteProc($style, $locale);
$citation = $citeProc->render(array($citationData), 'bibliography');
}
Expand Down

0 comments on commit 6d2f1ff

Please sign in to comment.