crsh / papaja

papaja (Preparing APA Journal Articles) is an R package that provides document formats to produce complete APA manuscripts from RMarkdown-files (PDF and Word documents) and helper functions that facilitate reporting statistics, tables, and plots.
https://frederikaust.com/papaja_man/
Other
657 stars 133 forks source link

Internationalization: lang: de-DE only partially works #550

Open mariusbarth opened 1 year ago

mariusbarth commented 1 year ago

Hi @crsh,

I just tried to render the standard papaja template with lang: de-DE. Some but not all text is changed to German, see attached pdf.

crsh commented 1 year ago

Yes, this is indeed a bit a pesky issue. We have some legacy code that doen't really do much anymore. I have just pushed some work in progress on the langs branch that should address keywords and word count. I think the rest needs to be fixed via LaTeX:

\renewcommand{\rheadname}{Kurztitel}% Running head
\renewcommand{\acksname}{Autorenhinweis}% Author Note
%\renewcommand{\keywordname}{Schlagw\"orter}% Keywords
\renewcommand{\notesname}{Fußnoten}% Footnotes

The challenge is that I was only able to get this to work by manually adding this to the generated LaTeX-file in the document body before \maketitle. So I think this will require some Lua.

Another thing that is currently not localized is text generated from metadata: