When exporting citations and bibliographies with csl the citation parts
are not translated according to the #+LANGUAGE keyword.

When I export the org-file below the org-mode parts are translated into
Swedish but the citation parts are not, for example the 'Table of
Content' heading is translated but the abbreviation for 'editor' in the
citations and bibliography is not ('(ed.)' should be '(red.)'.)

-----
#+bibliography: /Users/rickard/src/org-mode-bug/refs.bib
#+LANGUAGE: sv
#+cite_export: csl /Users/rickard/src/org-mode-bug/umea-university-oxford.csl


* Introduction
This is the introduction, I am using English to avoid potential encoding 
issues.[cite:@petterssonEkonomi2015a]

* Bibliography
#+print_bibliography:
-----

The csl-file works in Zotero and Google Docs.

I attach a minimal bibtex-file and the csl-file I use.

// Rickard G

Emacs  : GNU Emacs 30.2 (build 1, aarch64-apple-darwin21.6.0, NS appkit-2113.60 
Version 12.6.1 (Build 21G217))
 of 2025-08-14
Package: Org mode version 9.7.11 (release_9.7.11 @ 
/Applications/Emacs.app/Contents/Resources/lisp/org/)
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl"; version="1.0" class="note" demote-non-dropping-particle="sort-only" initialize-with-hyphen="true">
  <info>
    <title>Umeå University - Oxford</title>
    <title-short>Umu - Oxford</title-short>
    <id>http://www.zotero.org/styles/umea-university-oxford</id>
    <link href="http://www.zotero.org/styles/umea-university-oxford"; rel="self"/>
    <link href="http://www.zotero.org/styles/sodertorns-hogskola-oxford"; rel="template"/>
    <link href="https://www.umu.se/bibliotek/soka-skriva-studera/skriva-referenser/oxford-hanvisningar-i-text/"; rel="documentation"/>
    <link href="https://www.umu.se/bibliotek/soka-skriva-studera/skriva-referenser/oxford-skriva-referenslista/"; rel="documentation"/>
    <link href="https://github.com/SagaNy91/citation-styles/tree/main/zotero"; rel="documentation"/>
    <author>
      <name>Saga Nylund</name>
      <email>[email protected]</email>
    </author>
    <category citation-format="note"/>
    <category field="humanities"/>
    <category field="social_science"/>
    <updated>2025-08-19T16:27:48+00:00</updated>
    <rights license="http://creativecommons.org/licenses/by-sa/3.0/";>This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
  </info>
  <locale xml:lang="sv">
    <terms>
      <term name="accessed">hämtad</term>
    </terms>
  </locale>
  <macro name="contributors-full">
    <choose>
      <if type="bill broadcast legal_case legislation" match="none">
        <names variable="author">
          <name name-as-sort-order="all" sort-separator=",&#160;" initialize-with="." and="symbol" delimiter=", " delimiter-precedes-last="never">
            <name-part name="family"/>
          </name>
          <label prefix=" (" form="short" plural="contextual" suffix=")"/>
          <substitute>
            <names variable="editor"/>
            <names variable="director"/>
            <names variable="composer"/>
            <names variable="translator"/>
            <names variable="contributor"/>
            <text macro="anon"/>
          </substitute>
        </names>
      </if>
      <else>
        <choose>
          <if variable="container-title">
            <choose>
              <if type="broadcast" match="any">
                <text variable="container-title" font-style="italic"/>
              </if>
              <else>
                <text variable="container-title"/>
              </else>
            </choose>
          </if>
          <else-if type="bill legislation" match="any">
            <text variable="number"/>
          </else-if>
          <else>
            <text variable="title" font-style="italic"/>
          </else>
        </choose>
      </else>
    </choose>
    <choose>
      <if type="webpage" match="any">
        <choose>
          <if variable="author editor" match="none">
            <text variable="container-title"/>
          </if>
        </choose>
      </if>
      <else-if type="article-newspaper entry-dictionary entry-encyclopedia" match="any">
        <choose>
          <if variable="author editor" match="none">
            <text variable="container-title" font-style="italic"/>
          </if>
        </choose>
      </else-if>
      <else-if type="motion_picture" match="any">
        <choose>
          <if variable="author director" match="none">
            <text variable="title"/>
          </if>
        </choose>
      </else-if>
    </choose>
  </macro>
  <macro name="contributors-long">
    <choose>
      <if type="bill broadcast legal_case legislation" match="none">
        <names variable="author">
          <name sort-separator=",&#160;" initialize-with="." and="symbol" delimiter=", " delimiter-precedes-last="never">
            <name-part name="family"/>
          </name>
          <label prefix=" (" form="short" plural="contextual" suffix=")"/>
          <substitute>
            <names variable="editor"/>
            <names variable="director"/>
            <names variable="composer"/>
            <names variable="translator"/>
            <names variable="contributor"/>
            <text macro="anon"/>
          </substitute>
        </names>
      </if>
      <else>
        <choose>
          <if variable="container-title">
            <choose>
              <if type="broadcast" match="any">
                <text variable="container-title" font-style="italic"/>
              </if>
              <else>
                <text variable="container-title"/>
              </else>
            </choose>
          </if>
          <else-if type="bill legislation" match="any">
            <text variable="number"/>
          </else-if>
          <else>
            <text variable="title" font-style="italic"/>
          </else>
        </choose>
      </else>
    </choose>
    <choose>
      <if type="webpage" match="any">
        <choose>
          <if variable="author editor" match="none">
            <text variable="container-title"/>
          </if>
        </choose>
      </if>
      <else-if type="article-newspaper entry-dictionary entry-encyclopedia" match="any">
        <choose>
          <if variable="author editor" match="none">
            <text variable="container-title" font-style="italic"/>
          </if>
        </choose>
      </else-if>
      <else-if type="motion_picture" match="any">
        <choose>
          <if variable="author director" match="none">
            <text variable="title"/>
          </if>
        </choose>
      </else-if>
    </choose>
  </macro>
  <macro name="contributors-short">
    <choose>
      <if type="bill broadcast legal_case legislation" match="none">
        <names variable="author">
          <name sort-separator=",&#160;" and="symbol" delimiter=", " delimiter-precedes-last="never" form="short">
            <name-part name="family"/>
          </name>
          <label prefix=" (" form="short" plural="contextual" suffix=")"/>
          <substitute>
            <names variable="editor"/>
            <names variable="director"/>
            <names variable="composer"/>
            <names variable="translator"/>
            <names variable="contributor"/>
            <text macro="anon"/>
          </substitute>
        </names>
      </if>
      <else>
        <choose>
          <if variable="container-title">
            <choose>
              <if type="broadcast" match="any">
                <text variable="container-title" font-style="italic"/>
              </if>
              <else>
                <text variable="container-title"/>
              </else>
            </choose>
          </if>
          <else-if type="bill legislation" match="any">
            <text variable="number"/>
          </else-if>
          <else>
            <text variable="title" font-style="italic"/>
          </else>
        </choose>
      </else>
    </choose>
    <choose>
      <if type="webpage" match="any">
        <choose>
          <if variable="author editor" match="none">
            <text variable="container-title"/>
          </if>
        </choose>
      </if>
      <else-if type="article-newspaper entry-dictionary entry-encyclopedia" match="any">
        <choose>
          <if variable="author editor" match="none">
            <text variable="container-title" font-style="italic"/>
          </if>
        </choose>
      </else-if>
      <else-if type="motion_picture" match="any">
        <choose>
          <if variable="author director" match="none">
            <text variable="title"/>
          </if>
        </choose>
      </else-if>
    </choose>
  </macro>
  <macro name="container-contributors">
    <choose>
      <if variable="container-author">
        <names variable="container-author">
          <name name-as-sort-order="all" sort-separator=",&#160;" initialize-with=". " and="symbol" delimiter=", " delimiter-precedes-last="never">
            <name-part name="family"/>
          </name>
        </names>
      </if>
      <else>
        <choose>
          <if type="chapter paper-conference" match="any">
            <names variable="editor">
              <name name-as-sort-order="all" sort-separator=",&#160;" initialize-with=". " and="symbol" delimiter=", " delimiter-precedes-last="never">
                <name-part name="family"/>
              </name>
              <label prefix=" (" form="short" plural="contextual" suffix=")"/>
            </names>
          </if>
        </choose>
      </else>
    </choose>
  </macro>
  <macro name="container-contributors-short">
    <choose>
      <if variable="container-author">
        <names variable="container-author">
          <name sort-separator=",&#160;" initialize-with=". " and="symbol" delimiter=", " delimiter-precedes-last="never">
            <name-part name="family"/>
          </name>
        </names>
      </if>
      <else>
        <choose>
          <if type="chapter paper-conference" match="any">
            <names variable="editor">
              <name sort-separator=",&#160;" initialize-with=". " and="symbol" delimiter=", " delimiter-precedes-last="never">
                <name-part name="family"/>
              </name>
              <label prefix=". (" form="short" plural="contextual" suffix=")"/>
            </names>
          </if>
        </choose>
      </else>
    </choose>
  </macro>
  <macro name="anon">
    <choose>
      <if type="article-newspaper broadcast entry-dictionary entry-encyclopedia motion_picture webpage" match="none">
        <text term="anonymous" form="short" text-case="capitalize-first"/>
      </if>
    </choose>
  </macro>
  <macro name="title">
    <choose>
      <if type="thesis" match="any">
        <group delimiter=" " suffix=". ">
          <text variable="title" font-style="italic"/>
        </group>
        <text macro="genre"/>
      </if>
      <else-if type="bill legislation" match="any">
        <group delimiter=". ">
          <text variable="title-short"/>
          <text variable="title" font-style="italic"/>
        </group>
      </else-if>
      <else-if type="book legal_case map report speech webpage" match="any">
        <group delimiter=". ">
          <group delimiter=". ">
            <group delimiter=" ">
              <text variable="title" font-style="italic"/>
            </group>
            <choose>
              <if type="map" match="any">
                <text variable="genre"/>
                <text variable="scale"/>
              </if>
            </choose>
          </group>
          <text macro="edition"/>
        </group>
      </else-if>
      <else-if type="dataset graphic manuscript song" match="any">
        <group delimiter=". ">
          <text variable="title" font-style="italic"/>
          <choose>
            <if variable="version" match="any">
              <group delimiter=" " prefix="(" suffix=")">
                <text term="version" text-case="capitalize-first"/>
                <text variable="version"/>
              </group>
            </if>
          </choose>
          <text macro="medium"/>
          <text macro="genre"/>
        </group>
      </else-if>
      <else-if type="patent post" match="any">
        <text variable="title" font-style="italic"/>
      </else-if>
      <else-if type="article broadcast" match="any">
        <group delimiter=" ">
          <text variable="title"/>
          <text macro="medium"/>
          <text macro="genre"/>
        </group>
      </else-if>
      <else-if type="motion_picture" match="any">
        <choose>
          <if variable="author director" match="any">
            <text variable="title"/>
          </if>
        </choose>
      </else-if>
      <else>
        <text variable="title"/>
      </else>
    </choose>
  </macro>
  <macro name="container">
    <choose>
      <if type="broadcast chapter paper-conference speech" match="any">
        <group delimiter=" ">
          <choose>
            <if type="paper-conference" match="any">
              <text term="in" text-case="capitalize-first" suffix=": "/>
            </if>
            <else-if type="chapter" match="any">
              <text term="in" text-case="capitalize-first"/>
            </else-if>
          </choose>
          <group delimiter=". ">
            <text macro="container-contributors"/>
            <text variable="container-title" font-style="italic"/>
            <text variable="event"/>
            <text macro="medium"/>
            <text macro="edition"/>
          </group>
        </group>
      </if>
      <else-if type="article-journal article-magazine article-newspaper entry-dictionary entry-encyclopedia post-weblog" match="any">
        <choose>
          <if variable="author editor" match="any">
            <text variable="container-title" font-style="italic"/>
          </if>
        </choose>
      </else-if>
      <else-if type="webpage post" match="any">
        <text variable="container-title"/>
      </else-if>
    </choose>
  </macro>
  <macro name="container-short">
    <choose>
      <if type="broadcast chapter paper-conference speech" match="any">
        <group delimiter=" ">
          <choose>
            <if type="paper-conference" match="any">
              <text term="in" text-case="capitalize-first" suffix=": "/>
            </if>
            <else-if type="chapter" match="any">
              <text term="in" text-case="capitalize-first"/>
            </else-if>
          </choose>
          <group delimiter=". ">
            <text macro="container-contributors-short"/>
            <text variable="container-title" font-style="italic"/>
            <text variable="event"/>
            <text macro="medium"/>
            <text macro="edition"/>
          </group>
        </group>
      </if>
      <else-if type="article-journal article-magazine article-newspaper entry-dictionary entry-encyclopedia" match="any">
        <choose>
          <if variable="author editor" match="any">
            <text variable="container-title" font-style="italic"/>
          </if>
        </choose>
      </else-if>
      <else-if type="webpage post post-weblog" match="any">
        <text variable="container-title"/>
      </else-if>
    </choose>
  </macro>
  <macro name="publisher">
    <choose>
      <if type="book report chapter entry entry-dictionary entry-encyclopedia paper-conference thesis map figure graphic" match="any">
        <group delimiter=", " prefix="(" suffix=")">
          <text variable="publisher"/>
          <text macro="issued-year"/>
        </group>
      </if>
      <else-if type="article-journal article-magazine article-newspaper" match="none">
        <group delimiter=", ">
          <text variable="publisher"/>
          <text macro="issued-year"/>
        </group>
      </else-if>
    </choose>
  </macro>
  <macro name="issued-year">
    <choose>
      <if variable="issued">
        <date variable="issued">
          <date-part name="year"/>
        </date>
      </if>
      <else-if type="webpage">
        <date variable="accessed">
          <date-part name="year"/>
        </date>
      </else-if>
      <else-if type="bill legislation manuscript" match="none">
        <text term="no date" form="short"/>
      </else-if>
    </choose>
  </macro>
  <macro name="edition">
    <group delimiter=" ">
      <choose>
        <if is-numeric="edition">
          <group delimiter=" ">
            <number suffix="." variable="edition"/>
            <text term="edition" form="short"/>
          </group>
        </if>
        <else>
          <text variable="edition"/>
        </else>
      </choose>
    </group>
  </macro>
  <macro name="citation-locator">
    <label prefix=",&#160;" variable="locator" form="short" suffix="&#160;"/>
    <text variable="locator"/>
  </macro>
  <macro name="page-range">
    <choose>
      <if type="article article-journal article-magazine" match="any">
        <group delimiter=" " prefix=": ">
          <choose>
            <if variable="page">
              <label variable="page" form="short"/>
              <text variable="page"/>
            </if>
            <else-if type="article article-journal article-magazine article-newspaper chapter paper-conference" match="any">
              <text variable="number"/>
            </else-if>
          </choose>
        </group>
      </if>
      <else-if type="article-newspaper chapter paper-conference" match="any">
        <group delimiter=" " prefix=", ">
          <label variable="page" form="short"/>
          <text variable="page"/>
        </group>
      </else-if>
    </choose>
  </macro>
  <macro name="locators">
    <choose>
      <if type="article-journal article-magazine" match="any">
        <choose>
          <if variable="volume" match="none">
            <group delimiter=" " prefix=". ">
              <text term="issue" form="short" text-case="capitalize-first"/>
              <text variable="issue"/>
            </group>
          </if>
          <else>
            <group delimiter=": " prefix=". ">
              <text variable="volume"/>
              <text variable="issue"/>
            </group>
          </else>
        </choose>
        <group prefix=" (" suffix=")">
          <text macro="issued-year"/>
        </group>
      </if>
      <else-if type="article-newspaper" match="any">
        <group prefix=". (" suffix=")">
          <date variable="issued">
            <date-part name="day" suffix="/"/>
            <date-part name="month" form="numeric"/>
            <date-part prefix=" " name="year"/>
          </date>
        </group>
      </else-if>
      <else-if type="book chapter entry-dictionary map paper-conference report" match="any">
        <group delimiter=", " prefix=". ">
          <choose>
            <if variable="publisher" match="any">
              <text macro="publisher"/>
            </if>
          </choose>
          <choose>
            <if variable="publisher" match="none">
              <text macro="issued-year" prefix="(" suffix=")"/>
            </if>
          </choose>
        </group>
      </else-if>
      <else-if type="article dataset graphic motion_picture paper-conference song thesis" match="any">
        <group delimiter=", " prefix=". ">
          <choose>
            <if variable="publisher" match="any">
              <text macro="publisher"/>
            </if>
            <else-if variable="archive" match="any">
              <text macro="archive"/>
            </else-if>
            <else-if variable="authority" match="any">
              <text variable="authority"/>
            </else-if>
          </choose>
          <choose>
            <if variable="publisher" match="none">
              <text macro="issued-year" prefix="(" suffix=")"/>
            </if>
          </choose>
        </group>
      </else-if>
      <else-if type="manuscript" match="any">
        <group prefix=". ">
          <text macro="archive"/>
          <group prefix=". (" suffix=")">
            <date variable="issued">
              <date-part name="day" suffix=" "/>
              <date-part name="month" suffix=" "/>
              <date-part name="year"/>
            </date>
          </group>
        </group>
      </else-if>
      <else-if type="broadcast post post-weblog">
        <group delimiter=". " prefix=". ">
          <choose>
            <if type="broadcast" match="none">
              <text macro="container"/>
              <text macro="genre"/>
            </if>
          </choose>
          <text variable="publisher"/>
          <group prefix="(" suffix=")">
            <date variable="issued">
              <date-part name="day" suffix="/"/>
              <date-part name="month" form="numeric" suffix=" "/>
              <date-part name="year"/>
            </date>
          </group>
        </group>
      </else-if>
      <else-if type="webpage" match="any">
        <text macro="issued-year" prefix=". (" suffix=")"/>
      </else-if>
      <else-if type="patent" match="any">
        <text variable="number" prefix=". "/>
      </else-if>
    </choose>
  </macro>
  <macro name="identifier">
    <choose>
      <if variable="DOI" match="any">
        <text prefix=". https://doi.org/"; variable="DOI"/>
      </if>
      <else>
        <group prefix=". ">
          <group delimiter="; ">
            <text variable="URL"/>
          </group>
          <text macro="quoted"/>
        </group>
      </else>
    </choose>
  </macro>
  <macro name="medium">
    <choose>
      <if type="motion_picture musical_score song broadcast" match="any">
        <text prefix="[" variable="medium" suffix="]" text-case="capitalize-first"/>
      </if>
      <else>
        <text variable="medium" text-case="capitalize-first"/>
      </else>
    </choose>
  </macro>
  <macro name="genre">
    <choose>
      <if type="thesis speech" match="none">
        <text prefix="[" variable="genre" suffix="]" text-case="capitalize-first"/>
      </if>
      <else>
        <text variable="genre" text-case="capitalize-first"/>
      </else>
    </choose>
  </macro>
  <macro name="archive">
    <choose>
      <if variable="archive" match="any">
        <group delimiter=", ">
          <text variable="archive_location"/>
          <text variable="call-number"/>
          <text variable="archive"/>
          <text variable="publisher-place"/>
        </group>
      </if>
      <else>
        <group delimiter=" " prefix=",&#160;">
          <text variable="source"/>
        </group>
      </else>
    </choose>
  </macro>
  <macro name="quoted">
    <choose>
      <if variable="URL" match="any">
        <group prefix="&#160;(" suffix=")">
          <text term="accessed" form="short" suffix="&#160;"/>
          <date variable="accessed">
            <date-part name="year" suffix="-"/>
            <date-part name="month" suffix="-" form="numeric-leading-zeros"/>
            <date-part name="day" form="numeric-leading-zeros"/>
          </date>
        </group>
      </if>
    </choose>
  </macro>
  <citation et-al-min="10" et-al-use-first="1" disambiguate-add-names="true" disambiguate-add-year-suffix="true">
    <layout delimiter="; " suffix=".">
      <choose>
        <if position="subsequent">
          <text macro="contributors-short"/>
          <group prefix=". ">
            <choose>
              <if variable="author editor" match="any">
                <text variable="title" form="short" font-style="italic"/>
              </if>
              <else>
                <choose>
                  <if type="article-newspaper" match="any">
                    <text variable="title" form="short"/>
                  </if>
                  <else-if type="webpage" match="any">
                    <text variable="title" form="short" font-style="italic"/>
                  </else-if>
                  <else-if type="entry-dictionary entry-encyclopedia motion_picture" match="any">
                    <text variable="container-title" form="short" font-style="italic"/>
                  </else-if>
                </choose>
              </else>
            </choose>
          </group>
          <text macro="citation-locator"/>
        </if>
        <else>
          <text macro="contributors-long"/>
          <group delimiter=". " prefix=". ">
            <text macro="title"/>
            <choose>
              <if type="bill broadcast legislation post post-weblog webpage" match="none">
                <text macro="container-short"/>
              </if>
            </choose>
          </group>
          <text macro="locators"/>
          <text macro="citation-locator"/>
          <text macro="identifier"/>
        </else>
      </choose>
    </layout>
  </citation>
  <bibliography et-al-min="10" et-al-use-first="7">
    <sort>
      <key macro="contributors-full"/>
      <key macro="issued-year"/>
    </sort>
    <layout suffix=".">
      <choose>
        <if type="personal_communication" match="none">
          <text macro="contributors-full"/>
          <group delimiter=". " prefix=". ">
            <text macro="title"/>
            <choose>
              <if type="bill broadcast legislation post post-weblog webpage" match="none">
                <text macro="container"/>
              </if>
            </choose>
          </group>
          <text macro="locators"/>
          <text macro="page-range"/>
          <text macro="identifier"/>
        </if>
      </choose>
    </layout>
  </bibliography>
</style>
@incollection{petterssonEkonomi2015a,
  title = {Ekonomi},
  booktitle = {Perspektiv P{\aa} Historia: En Introduktion till 
Historiestudier},
  author = {Pettersson, Ronny},
  editor = {{\AA}gren, Henrik},
  year = {2015},
  publisher = {Studentlitteratur},
  address = {Lund}
}

Reply via email to