multilingual citing not validated
Hi,
I am currently coding a style for my university and they require that the label changes according to the sources' language.
The style is in french but i need alternatives for english, german and italian sources. For example if i am citing in french the output for the volume variable should be "livres I-III" but if the source is in english it should be "books I-III". Or when citing a book chapter the editor should be followed with "éd." or "éds." in french but "a cura di" in italian.
I tried working around this issue using conditions and the language variable and it works when testing in the style editor and with test documents but it doesn't pass the CSL Validator.
Do you have any suggestions on how to make this work ?
Here's my code for reference
I am currently coding a style for my university and they require that the label changes according to the sources' language.
The style is in french but i need alternatives for english, german and italian sources. For example if i am citing in french the output for the volume variable should be "livres I-III" but if the source is in english it should be "books I-III". Or when citing a book chapter the editor should be followed with "éd." or "éds." in french but "a cura di" in italian.
I tried working around this issue using conditions and the language variable and it works when testing in the style editor and with test documents but it doesn't pass the CSL Validator.
Do you have any suggestions on how to make this work ?
Here's my code for reference
<macro name="editor">
<choose>
<if locale="de">
<names variable="editor" suffix=" (Hrsg.)">
<name name-as-sort-order="all" sort-separator=", " delimiter-precedes-last="never"
delimiter=", " initialize-with=". " />
</names>
</if>
<else-if locale="it">
<names variable="editor" suffix=" (a cura di)">
<name name-as-sort-order="all" sort-separator=", " delimiter-precedes-last="never"
delimiter=", " initialize-with=". " />
</names>
</else-if>
<else-if locale="en">
<names variable="editor">
<name name-as-sort-order="all" sort-separator=", " delimiter-precedes-last="never"
delimiter=", " initialize-with=". " />
<label form="short" text-case="lowercase" prefix=" (" suffix=")" />
</names>
</else-if>
<else>
<names variable="editor">
<name name-as-sort-order="all" sort-separator=", " delimiter-precedes-last="never"
delimiter=", " initialize-with=". " />
<label form="short" text-case="lowercase" prefix=" (" suffix=")" />
</names>
</else>
</choose>
</macro>
-
adamsmithDifferent citation languages depending on the language of a work are not possible in current CSL (1.0.2), so they can't validate, even though you can get them to work in Zotero.