mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 01:09:50 +00:00
Don't use I18N when the required ui prefix is not in the tooltip text (convention actually dictates uitt as tooltip prefix)
This commit is contained in:
parent
a1cdd16bd4
commit
c7cd777479
1 changed files with 2 additions and 1 deletions
|
@ -2834,7 +2834,8 @@ namespace NLGUI
|
|||
pTooltip->setId(_Id+"_tt"+toString(i));
|
||||
pTooltip->setAvoidResizeParent(avoidResizeParent());
|
||||
pTooltip->setRenderLayer(getRenderLayer());
|
||||
pTooltip->setDefaultContextHelp(CI18N::get(tempTooltips[i].toString()));
|
||||
bool isI18N = tempTooltips[i].size() >= 2 && tempTooltips[i][0] == 'u' && tempTooltips[i][1] == 'i';
|
||||
pTooltip->setDefaultContextHelp(isI18N ? CI18N::get(tempTooltips[i].toString()) : tempTooltips[i]);
|
||||
pTooltip->setParentPos(this);
|
||||
pTooltip->setParentPosRef(Hotspot_BR);
|
||||
pTooltip->setPosRef(Hotspot_BR);
|
||||
|
|
Loading…
Reference in a new issue