Originally Posted by Haho
whaw... I dont need to fix this for myself you know. But i'll refrain to point at a potential issue from now.
and since you didn't test it for yourself before bashing me, i did : with circonian's click4info (it must be badly coded too, seing the results) :
d(GetUnitName("player")) of an uncapped name does cap the first letter in German, and only in german.
|
I think you want to use GetRawUnitName("player")
Names were never a good data-layer identifier. And with the upcoming name change, we know why.
Besides that, all names, I mean really everything which as "name" or "caption" in it, should be processed by zo_strformat for presentation-layer. Including return values.
That has to do with the "^..." most english native speakers just strip away.
Lua Code:
local caption = zo_strformat(SI_TOOLTIP_UNIT_CAPTION, GetUnitCaption(unitTag))
Normally SI_TOOLTIP_UNIT_CAPTION looks like this "<<1>>", but in german it is "<<C:1>>".
That would explain why the first letter is capitalized in german only.