sile-typesetter / sile

The SILE Typesetter — Simon’s Improved Layout Engine
https://sile-typesetter.org
MIT License
1.61k stars 97 forks source link

! No localized message for tableofcontents-title found in locale en... #1993

Closed jodros closed 5 months ago

jodros commented 5 months ago

Since I'm playing with this package for now, I just found that the fluent command is only working when the language is passed using \language[main=]...

\document[class=book]{
\tableofcontents
\chapter{I}
}

However this works

\document[class=book]{
\language[main=en]
\tableofcontents
\chapter{I}
}

Is it a bug or my own fault? If so, maybe it has something to do with the fact that \language calls SILE.languageSupport.loadLanguage()?

Omikhleia commented 5 months ago

It rings bells. Maybe it's the same bug as #1157?

alerque commented 5 months ago

Yes this is the same as #1157. And it's somewhat embarrassing that hasn't been decided on and fixed. I know why ... because my own work (and particularly 100% of book projects that would have a ToC) depend on CaSILE which does set a default language even if projects don't call one out, so I never hit this bug.

But we should decide which path ... "en" or "und" by default? Comments welcome on the original issue.