mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-11 20:34:47 +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
32a144a282
commit
de026fe48c
1 changed files with 2 additions and 1 deletions
|
@ -2834,7 +2834,8 @@ namespace NLGUI
|
||||||
pTooltip->setId(_Id+"_tt"+toString(i));
|
pTooltip->setId(_Id+"_tt"+toString(i));
|
||||||
pTooltip->setAvoidResizeParent(avoidResizeParent());
|
pTooltip->setAvoidResizeParent(avoidResizeParent());
|
||||||
pTooltip->setRenderLayer(getRenderLayer());
|
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->setParentPos(this);
|
||||||
pTooltip->setParentPosRef(Hotspot_BR);
|
pTooltip->setParentPosRef(Hotspot_BR);
|
||||||
pTooltip->setPosRef(Hotspot_BR);
|
pTooltip->setPosRef(Hotspot_BR);
|
||||||
|
|
Loading…
Reference in a new issue