Bug: Incorrect language used in figure caption headers

Matti Lehtonen m-Matti-a.Lehtonen at iki.fi
Sat Mar 1 20:37:43 UTC 2025


Hi,

I am writing a document in Finnish with some figures. In LyX, the figure
caption headers are correctly in Finnish (except Sub-Kuva - subfigure), but
the generated PDF uses incorrect English caption headers.

>From latex log I can see:
> ..
> (/usr/share/texlive/texmf-dist/tex/generic/babel/babel.sty
> Package: babel 2024/01/07 v24.1 The Babel package
> \babel at savecnt=\count274
> \U at D=\dimen160
> \l at unhyphenated=\language9
> (/usr/share/texlive/texmf-dist/tex/generic/babel/txtbabel.def)
> \bbl at readstream=\read2
> \bbl at dirlevel=\count275
> Package babel Info: You haven't specified a language as a class or package
> (babel) option. I'll load 'nil'. Reported on input line 4342.
> (/usr/share/texlive/texmf-dist/tex/generic/babel/nil.ldf
> Language: nil 2024/01/07 v24.1 Nil language
> \l at nil=\language10
> )) (/usr/share/texlive/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def
> File: l3backend-pdftex.def 2024-01-04 L3 backend support: PDF output
(pdfTeX)
> \l__color_backend_stack_int=\count276
> \l__pdf_internal_box=\box53
> )
>
> LaTeX Warning: Unused global option(s):
> [finnish].
> ..

Expected behaviour:
1) generated PDF uses language selected in document settings for all
caption types
2) in preview UI, instead of Sub-Kuva (subfigure) caption, Alikuva is used
as caption header

Lyx version:

> Version 2.4.0~RC3
> (Friday, February 9, 2024)
>
> Qt Version (run-time): 5.15.13 on platform xcb
> Qt Version (compile-time): 5.15.13
> OS Version (run-time): Ubuntu 24.04.2 LTS
> Python detected: 3.12.3 (/usr/bin/python3)

This version is the latest available version for Ubuntu 24.04.02.
LyX PPA's for Ubuntu haven't been updated for several years now.


Attachment: Screen capture indicating the figure caption language bug.

Br,
Matti Lehtonen

-- 
Life is complex. It has real and imaginary parts.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20250301/b924e736/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot from 2025-03-01 20-22-19.png
Type: image/png
Size: 440040 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20250301/b924e736/attachment-0001.png>


More information about the lyx-devel mailing list