larsgw / citation.js

Citation.js converts formats like BibTeX, Wikidata JSON and ContentMine JSON to CSL-JSON to convert to other formats like APA, Vancouver and back to BibTeX.
https://citation.js.org/
MIT License
226 stars 30 forks source link

Problem with a translation #178

Closed JohannaDangel closed 12 months ago

JohannaDangel commented 5 years ago

Hello,

we are designing a bilingual website. Our Czech partners informed us about a problem with a translation. The field “volume” should be shown in the citation as “Svazek” which already is the translation for the field “volume” in the input mask. But instead the abbreviation “Roč.” appears in the citation. To sum up, the translation for said field differ in the input mask and in the output.

Is there a possibility to fix this?

Input Editing

Output Result

larsgw commented 5 years ago

Formatted bibliography and citation output is generated with the Citation Style Language (CSL), using citeproc-js. The localized abbreviations come from the locale repository (which you likely had to interact with, if you're using a Czech locale) and "volume" is mapped to "ročník" there, so we'd have to discuss it there. By the way, I'm seeing it being used the same here, but I don't know that website.

JohannaDangel commented 5 years ago

Volume needs two different translations depending on the publication type. For articles (@article) and articles in conference proceedings (@inproceedings) the translation needs to be “ročník”.

For the rest it needs to be “svazek”. The same differentiation is made for example in German as well (“Jahrgang” vs. “Band”).

larsgw commented 12 months ago

This issue is not specific to Citation.js. I did open an issue with CSL a while ago: https://github.com/citation-style-language/schema/issues/418