mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Show language switch item in menu also in monolingual documents.
This commit is contained in:
parent
bbeee6bbef
commit
fb8ef40d12
@ -905,8 +905,11 @@ void MenuDefinition::expandLanguageSelector(Buffer const * buf)
|
||||
std::set<Language const *> languages_buffer =
|
||||
buf->masterBuffer()->getLanguages();
|
||||
|
||||
if (languages_buffer.size() < 2)
|
||||
if (languages_buffer.size() < 2) {
|
||||
add(MenuItem(MenuItem::Command, qt_("Switch Language...|L"),
|
||||
FuncRequest(LFUN_DIALOG_SHOW, "character")));
|
||||
return;
|
||||
}
|
||||
|
||||
std::set<Language const *, sortLanguageByName> langs;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user