So far I used the function mentioned here (
http://www.esoui.com/forums/showthread.php?t=991) for all itemLinks I had to create, and this always worked perfectly fine.
But then there is this one exception. If the game runs in german [ /script SetCVar("language.2","de") ], the itemLink for lockpicks (de: Dietrich) does not work.
E.g. with this "cursorPickup"-event it can easily be reproduced:
Lua Code:
function pickupTest(type, param1, bagId, slotIndex, param4, param5, param6, itemSoundCategory)
CHAT_SYSTEM:AddMessage(">>>"..zo_strformat(SI_TOOLTIP_ITEM_NAME, GetItemLink(bagId, slotIndex, LINK_STYLE_BRACKETS)))
end
EVENT_MANAGER:RegisterForEvent("MyPickupTester", EVENT_CURSOR_PICKUP, pickupTest)
The result then looks like this:
With "GetItemName(integer bagId, integer slotIndex)" the output is:
EN: Lockpick
DE: Dietrich^m|Dietriche^p
FR: crochet^m
Apparently, this german masculine/plural combination in the itemName does not really work with SI_TOOLTIP_ITEM_NAME.
Does anyone maybe have an idea how to resolve this? :/