Fix quote menu item, from Dan

Current language is relevant here, not main language
This commit is contained in:
Juergen Spitzmueller 2023-09-29 13:09:20 +02:00
parent 6141b437b1
commit 7aa00f0b92

View File

@ -1967,7 +1967,7 @@ void MenuDefinition::expandQuotes(BufferView const * bv)
add(MenuItem(MenuItem::Command, toqstr(desc), cmd)); add(MenuItem(MenuItem::Command, toqstr(desc), cmd));
} }
if (!main_langdef_qs) { if (!main_langdef_qs) {
FuncRequest cmd = FuncRequest(LFUN_INSET_MODIFY, subcmd + globalqsc + wildcards); FuncRequest cmd = FuncRequest(LFUN_INSET_MODIFY, subcmd + langqs + wildcards);
docstring const desc = (main_dynamic_qs || display_static) docstring const desc = (main_dynamic_qs || display_static)
? bformat(_("Reset to language default (%1$s, %2$s)|l"), ? bformat(_("Reset to language default (%1$s, %2$s)|l"),
quoteparams.getGuiLabel(langdefqs), _("static[[Quotes]]")) quoteparams.getGuiLabel(langdefqs), _("static[[Quotes]]"))