# Labels depending on item language

**URL:** https://discourse.citationstyles.org/t/labels-depending-on-item-language/1522
**Category:** CSL Usage
**Created:** [March 26, 2019, 9:40am UTC](https://discourse.citationstyles.org/t/labels-depending-on-item-language/1522 "2019-03-26T09:40:41Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Denis\_Maier](https://avatars.discourse-cdn.com/v4/letter/d/8491ac/32.png) [@Denis\_Maier](https://discourse.citationstyles.org/u/Denis_Maier)
#### Post date: [March 26, 2019, 9:40am UTC](https://discourse.citationstyles.org/t/labels-depending-on-item-language/1522/1 "2019-03-26T09:40:41Z")

</div>

Is there a way to use different labels and terms depending on the item language? (Like “ed./eds.” for titles in English, “Hrsg.” for everything else.)

---

<div class="post-metadata">

### Author: ![Frank\_Bennett](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.citationstyles.org/frank_bennett/32/198_2.png) [@Frank\_Bennett](https://discourse.citationstyles.org/u/Frank_Bennett)
#### Post date: [March 26, 2019, 10:00am UTC](https://discourse.citationstyles.org/t/labels-depending-on-item-language/1522/2 "2019-03-26T10:00:52Z")

</div>

CSL-M supports this. The [test fixture](https://github.com/Juris-M/citeproc-js/blob/master/tests/fixtures/local/language_Condition.txt) shows how it works.

(I am in the process of rearranging things in the `citeproc-js` repository, the link will go dead within the next day or so. It will be moved to [this link](https://github.com/Juris-M/citeproc-js/blob/master/citeproc-js/fixtures/local/language_Condition.txt)).

---

<div class="post-metadata">

### Author: ![Denis\_Maier](https://avatars.discourse-cdn.com/v4/letter/d/8491ac/32.png) [@Denis\_Maier](https://discourse.citationstyles.org/u/Denis_Maier)
#### Post date: [March 27, 2019, 8:46am UTC](https://discourse.citationstyles.org/t/labels-depending-on-item-language/1522/3 "2019-03-27T08:46:43Z")

</div>

Ok. This looks really good. But if I understand it correctly this will use a certain locale for the whole layout element, which means it will also affect quotes and other terms, right? I actually only need a different term for editors for publications in English? Is there a way to achieve this?

---

<div class="post-metadata">

### Author: ![Frank\_Bennett](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.citationstyles.org/frank_bennett/32/198_2.png) [@Frank\_Bennett](https://discourse.citationstyles.org/u/Frank_Bennett)
#### Post date: [March 27, 2019, 2:07pm UTC](https://discourse.citationstyles.org/t/labels-depending-on-item-language/1522/4 "2019-03-27T14:07:22Z")

</div>

Ah. I’m glad you raised this one. I remembered this as adjusting the locale within the scope of the test. It wasn’t doing that. I think I left this hanging after getting part of the distance to a solution. I’ve finished that work now, and added a test for it. The revised processor still passes other tests, so I’ll include the change in the next release, which should be out sometime tomorrow. I’ll also update the entry on the CSL-M locale attribute to cover the new behavior.

---

<div class="post-metadata">

### Author: ![Frank\_Bennett](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.citationstyles.org/frank_bennett/32/198_2.png) [@Frank\_Bennett](https://discourse.citationstyles.org/u/Frank_Bennett)
#### Post date: [March 27, 2019, 4:35pm UTC](https://discourse.citationstyles.org/t/labels-depending-on-item-language/1522/5 "2019-03-27T16:35:24Z")

</div>

It’s up now. You can try out the new version, with support for locale switching inside a locale=“de” test, by installing the Propachi plugin in Z Standalone: [https://juris-m.github.io/downloads/#csl-stuff](https://juris-m.github.io/downloads/#csl-stuff)

The current plugin is at processor tag 1.1.227. When that tag or higher is adopted in a Zotero release, you should remove the plugin.

---

<div class="post-metadata">

### Author: ![Denis\_Maier](https://avatars.discourse-cdn.com/v4/letter/d/8491ac/32.png) [@Denis\_Maier](https://discourse.citationstyles.org/u/Denis_Maier)
#### Post date: [March 27, 2019, 7:58pm UTC](https://discourse.citationstyles.org/t/labels-depending-on-item-language/1522/6 "2019-03-27T19:58:34Z")

</div>

Great news! It will probably take a few days before I’ll be able to test this.

Concerning removing the plugin: Where can I see which version of citeproc-js is used by Zotero?
