Thread: Update 2.5
View Single Post
07/02/16, 02:14 AM   #17
votan
 
votan's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2014
Posts: 577
Originally Posted by Haho View Post
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:
  1. 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.

Last edited by votan : 07/02/16 at 03:39 AM.
  Reply With Quote