]> git.lyx.org Git - lyx.git/commit
Fix display of page references when language is not specified
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 5 Jul 2024 14:10:17 +0000 (16:10 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 10 Jul 2024 13:23:46 +0000 (15:23 +0200)
commitf64349db8d544bbce835d958371a39acf67adf41
tree3f42a6b395a5e102ce20ce89838613138888a268
parent4b9e1d8b0998e64b5d934a0877ba11a6ff911b81
Fix display of page references when language is not specified

Using translateIfPossible with null language does not make sense (and
gives an error on console).

Using translateIfPossible there actually does not make sense at all: it
is only for string from layout files that may already be translated.

We use the GUI language when no language has been specified (this is
different and probably safer than what is done in master).

A consequence of the commit is that "elsewhere" will be in the po
files and now really translatable ;)

(cherry picked from commit 6f6d9b631d110fb71fcd99351b4f40d58451700a)
src/insets/InsetRef.cpp