Multiple language locales in a single CSL format
For a format I am working on I would like to override the default locale values for multiple languages within my CSL format. An example:
If the users locale is "es" the abbreviation of "editors" should appear as "edd." Otherwise, if the user has a locale of "en" for example, use "eds."
I set up my format like the example below (I would actually like to set it up for 5 different languages, but just include a brief section below as an example). I cannot get it to work, however - Zotero only takes the first "locale" it finds and seems to apply it universally. Is this type of multiple language override possible currently in Zotero? If so, how do I do it? Thanks.
<locale xml-lang="es">
<terms>
<term name="editor" form="short">
<single>ed.</single>
<multiple>edd.</multiple>
</term>
<term name="collection-editor" form="short">
<single>ed.</single>
<multiple>edd.</multiple>
</term>
</terms>
</locale>
<locale>
<terms>
<term name="editor" form="short">
<single>ed.</single>
<multiple>eds.</multiple>
</term>
<term name="collection-editor" form="short">
<single>ed.</single>
<multiple>eds.</multiple>
</term>
</terms>
</locale>
If the users locale is "es" the abbreviation of "editors" should appear as "edd." Otherwise, if the user has a locale of "en" for example, use "eds."
I set up my format like the example below (I would actually like to set it up for 5 different languages, but just include a brief section below as an example). I cannot get it to work, however - Zotero only takes the first "locale" it finds and seems to apply it universally. Is this type of multiple language override possible currently in Zotero? If so, how do I do it? Thanks.
<locale xml-lang="es">
<terms>
<term name="editor" form="short">
<single>ed.</single>
<multiple>edd.</multiple>
</term>
<term name="collection-editor" form="short">
<single>ed.</single>
<multiple>edd.</multiple>
</term>
</terms>
</locale>
<locale>
<terms>
<term name="editor" form="short">
<single>ed.</single>
<multiple>eds.</multiple>
</term>
<term name="collection-editor" form="short">
<single>ed.</single>
<multiple>eds.</multiple>
</term>
</terms>
</locale>
Otherwise, yes, styles should default to the language of the user, even if you define terms in multiple languages. See e.g. Vancouver for an example - it defines terms in French, English, and German.