plk / biblatex-apa

APA style for BibLaTeX
90 stars 48 forks source link

"Present" string does not show up in German languages (like 2015-present) #178

Closed PsychicBirdy closed 2 years ago

PsychicBirdy commented 2 years ago

This bug concerns v9.15, maybe it's already fixed in the current code, I don't know. All the changes I have made to the German .lbx's on Github I also made to my local v9.15. This works fine with one exception:

\documentclass{scrbook}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[backend=biber,style=apa]{biblatex}
\begin{filecontents}{\jobname.bib}
% (APA 10.13 Example 93)
% ENTRYSUBTYPE is a localisation string as it expands to the localisable "Audio podcast"
% for some reason best known to the APA
@AUDIO{10.13:93,
    ENTRYSUBTYPE   = {podcast},
    AUTHOR         = {S. Vedantam},
    AUTHOR+an:role = {1=host},
    TITLE          = {Hidden Brain},
    PUBLISHER      = {NPR},
    DATE           = {2015/},
    URL            = {https://www.npr.org/series/423302056/hidden-brain}
}
\end{filecontents}
\addbibresource{\jobname.bib}

\begin{document}

\textcite{10.13:93}

\printbibliography
\end{document}

produces:

Vedantam, S. (Gastgeber/-in). (2015–). Hidden Brain [Audiopodcast]. NPR. https:// www.npr.org/series/423302056/hidden-brain

while it should actually produce:

Vedantam, S. (Gastgeber/-in). (2015–Gegenwart). Hidden Brain [Audiopodcast]. NPR. https:// www.npr.org/series/423302056/hidden-brain

In my local ngerman-apa.lbx the following strings are present:

\NewBibliographyString{present}
\DeclareBibliographyStrings{%
[...]
  present          = {{Gegenwart}{Gegenwart}},

All the other additions, like "Gastgeber/-in" and so on, work fine. The English version also works fine, printing "(2015–present)". What's going on?

plk commented 2 years ago

I can run it on the latest dev biblatex/biber code and it does indeed produce the german localised string correctly. However, there was a typo in ngerman.lbx which might explain any issue you were having - I have corrected it in git.

PK

-- Dr Philip Kime

On 24 May 2022, at 12:13, PsychicBirdy @.***> wrote:

This bug concerns v9.15, maybe it's already fixed in the current code, I don't know. All the changes I have made to the German .lbx's on Github I also made to my local v9.15. This works fine with one exception:

\documentclass{scrbook} \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} \usepackage[backend=biber,style=apa]{biblatex} \begin{filecontents}{\jobname.bib} % (APA 10.13 Example 93) % ENTRYSUBTYPE is a localisation string as it expands to the localisable "Audio podcast" % for some reason best known to the APA @AUDIO{10.13:93, ENTRYSUBTYPE = {podcast}, AUTHOR = {S. Vedantam}, AUTHOR+an:role = {1=host}, TITLE = {Hidden Brain}, PUBLISHER = {NPR}, DATE = {2015/}, URL = { https://www.npr.org/series/423302056/hidden-brain } } \end{filecontents} \addbibresource{\jobname.bib}

\begin{document}

\textcite{10.13:93}

\printbibliography \end{document}

produces:

Vedantam, S. (Gastgeber/-in). (2015–). Hidden Brain [Audiopodcast]. NPR. https:// www.npr.org/series/423302056/hidden-brain

while it should actually produce:

Vedantam, S. (Gastgeber/-in). (2015–Gegenwart). Hidden Brain [Audiopodcast]. NPR. https:// www.npr.org/series/423302056/hidden-brain

In my local ngerman-apa.lbx the following strings are present:

\NewBibliographyString{present} \DeclareBibliographyStrings{% [...] present = {{Gegenwart}{Gegenwart}},

All the other additions, like "Gastgeber/-in" and so on, work fine. The English version also works fine, printing "(2015–present)". What's going on?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

PsychicBirdy commented 2 years ago

Thanks a lot! The typo is not present in my local ngerman.lbx. So that's not the reason. But as long as it works in v9.16, we are fine.