Use buffer language

This commit is contained in:
Richard Kimberly Heck 2024-12-05 17:21:40 -05:00
parent 945251a6c5
commit 81f5fc80b5

View File

@ -674,7 +674,9 @@ void InsetRef::updateStatistics(Statistics & stats) const
{
docstring const & ref = getParam("reference");
string const & cmd = params().getCmdName();
docstring const refstring = displayString(ref, cmd);
// best we can do here
string const & lang = buffer().params().language->lang();
docstring const refstring = displayString(ref, cmd, lang);
stats.update(refstring);
}