Merging pull request 'Add support for transliteration' by Vardex.

This commit adds the code changes in Details! that is required to make the new library work.
This commit is contained in:
Tercio Jose
2019-10-27 18:07:15 -03:00
parent 9e97edb7c5
commit b700d87491
8 changed files with 65 additions and 14 deletions
+7 -6
View File
@@ -1,8 +1,8 @@
-- damage object
--2672
local _detalhes = _G._detalhes
local Loc = LibStub ("AceLocale-3.0"):GetLocale ( "Details" )
local Translit = LibStub ("LibTranslit-1.0")
local gump = _detalhes.gump
local _
@@ -2672,6 +2672,11 @@ local InBarIconPadding = 6
bar_number = bar.colocacao .. ". "
end
--translate cyrillic alphabet to western alphabet by Vardex (https://github.com/Vardex May 22, 2019)
if (instance.row_info.textL_translit_text) then
self.displayName = Translit:Transliterate(self.displayName, "!")
end
if (enemy) then
if (arena_enemy) then
if (_detalhes.show_arena_role_icon) then
@@ -5158,11 +5163,7 @@ end
if (not no_refresh) then
_detalhes.refresh:r_atributo_damage (actor, shadow)
end
--a referncia do .owner pode ter sido apagada?
--os 2 segmentos foram juntados porm a referncia do owner de um pet criado ali em cima deve ser nula?
--teria que analisar se o novo objecto de um pet e colocar a referncia do owner no pet novamente, ou pelo menos verificar se a referncia valida
--> tempo decorrido (captura de dados)
local end_time = actor.end_time
if (not actor.end_time) then