View Single Post
08/11/14, 03:39 PM   #1
Klingo
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 16
Itemlink issue with [Dietrich] (lockpick)

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:
  1. function pickupTest(type, param1, bagId, slotIndex, param4, param5, param6, itemSoundCategory)
  2.     CHAT_SYSTEM:AddMessage(">>>"..zo_strformat(SI_TOOLTIP_ITEM_NAME, GetItemLink(bagId, slotIndex, LINK_STYLE_BRACKETS)))
  3. end
  4. 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? :/
  Reply With Quote