Language field in new citation styles.

Hi there,

i want to create a citation style for the the medical faculty of my university. After reading the documentation on the cls im stuck with one question:

In german bibliografies the word "Editors" needs to be abbreviatet in the language of the publication, e.g. "Ed." for english and "Hrsg." for german texts.

How can i read the content of the language field zotero offers for the articles to include it in an if-statement.

thx alot

Björn Kleibrink
  • edited June 16, 2008
    The German strings will be used automatically in German builds of Firefox or if the extensions.zotero.export.bibliographyLocale setting in about:config is set to de-DE. (This will be a UI option eventually.)
  • Dan,

    The way I read this request I think the needs are a bit more elaborate.

    He doesn't need an all or none solution. I think he needs each entry in the bibliography to be in the language of the publication. Hence he needs an IF statement based on the Language field for the item.

    Yes, It's a german bibliography, but if the the work cited is in English, he needs Ed. and not Hrsg.

    At least that's how I read it.
  • Ah, you may be right. In which case, it's not currently possible, and Bruce would have to comment on whether it ever would be. (At least, setting the locale via a conditional isn't supported—I don't think that reading the content of the language field is possible, either, but even if it were you'd still have to use hard-coded strings for the output.)
  • Thx for your quick help.

    and yes, arggem you are right. each entry needs the conditional. and after reading the cls description i already thougt that i was heading for problems. as there is no variable defined that contains the citations language. my hope was that, as zotero contained a field for language, it could be read via a variable.

    and @dan
    im still in the process of learning, but i dont think that i really want to change the locale. German citation requirements can be quiet illogical, for instance: even if its an english citation and i'm using the Ed. for Editors. Than it is still required that the pages are labeled with "S. " (german abrv. for "Seite" - page).

    so my best best would be to change the english citations by hand into "Ed." ?
  • If you'd like to discuss adding new features to CSL (which isn't Zotero-specific), you'll probably have better luck posting to the XBib mailing list, home of CSL.
Sign In or Register to comment.