Kiwi Item Info

Kiwi Item Info

41.5k Downloads

Translate zhCN.lua strings

tilkinsc opened this issue · 16 comments

commented

In Locale/zhCN.lua some strings aren't translated fully.

Locale/zhCN.lua中,某些字符串未完全翻译。

commented

Corrected some incorrect formatting in zhCN.lua, some localized translations have been added and passed the test under version 2.2.5, But iLvl still can not be displayed.

zhCN.lua.txt

commented

Hover over a weapon/armor and do /dump GameTooltipTextRight1:GetText()
Also, disable 'could be problem' addons and see if that fixes it.

commented

dumpTooltipText

Empty result

dump_noaddons

Empty result too, no AddOns loaded but kiwi.

commented

Aha. This is expected. Because you are using a bag addon, GetMouseFocus() never pops correctly. So it results in a return.
image
Because the item couldn't be figured out, nothing became of it.

commented

The second time I just used the kiwi AddOns, I got the same empty result. why?

commented

/dump GameTooltipTextRight1 gives results right?

commented

dump

Dump: GameTooltipTextRight1
GameTooltipTextRight1={
[0]=<userdata GameTooltipTextRight1[0]>
}

commented

Then you should be able to GameTooltipTextRight1:SetText("ilvl 50") and it would display text.

So yeah... has to be something to do in my function. I would like to confirm that the above code works, also.

I would probably have you print out the values of itemLevel, itemType, focus, name, i_name, i_link, as these are what prevents it from working

commented

/run GameTooltipTextRight1:SetText("ilvl 50") (ofc have to hover the tooltip first)

/dump is the equiv of /run return ... where the return pretty prints things out.

commented

image
idk man... works for me

Ahh. I see the problem. It only shows when /kiwiii set ilvl_only_equips true

LOL. Ok... so we got a compatibility issue...
image

This is what it shows me when I print itemType ... so I guess the itemType system is screwed. So I swapped it with itemClassID, which works as expected. So glad thats fixed.

commented

How to do it? /dump? return the empty result.

commented

Can you affirm that the indev branch works?

commented
commented

Well I did many commits, only one of which actually fixed the problem due to the strings I was comparing against was in chinese instead of english, so I had to convert to itemClassID.

commented

Nice work, iLvl now displays correctly.
In addition, I tested using the 'itemType=="武器"' code to run and also correctly display iLvl.
Thank you!

commented

Yes, that would make it run, as that would be like chinese version of Armor or Weapon