I18n: translate popover descriptions
Popover menu buttons had their labels translated but not their descriptions, although they were properly extracted. This commit fixes that using the `TIP_()` macro.
This commit is contained in:
committed by
Bastien Montagne
parent
da764ee357
commit
d1ec8a2ae5
@@ -3203,7 +3203,7 @@ void uiItemPopoverPanel_ptr(
|
||||
pt->draw_header(C, &panel);
|
||||
}
|
||||
uiBut *but = ui_item_menu(
|
||||
layout, name, icon, ui_item_paneltype_func, pt, nullptr, pt->description, true);
|
||||
layout, name, icon, ui_item_paneltype_func, pt, nullptr, TIP_(pt->description), true);
|
||||
but->type = UI_BTYPE_POPOVER;
|
||||
if (!ok) {
|
||||
but->flag |= UI_BUT_DISABLED;
|
||||
|
||||
Reference in New Issue
Block a user