WoWInterface SVN ConfirmLeaveParty

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 11 to Rev 12
    Reverse comparison

Rev 11 → Rev 12

ConfirmLeaveParty.lua
11,21 → 11,21
if GetLocale() == "deDE" then
CONFIRM_LEAVE_PARTY = "Willst du wirklich die Gruppe verlassen?" -- by Shantalya @ WoWI
elseif GetLocale() == "esES" or GetLocale() == "esMX" then
CONFIRM_LEAVE_PARTY = "¿Realmente quiere dejar el grupo?" -- by Google Translate
CONFIRM_LEAVE_PARTY = "¿Realmente quieres dejar el grupo?"
elseif GetLocale() == "frFR" then
CONFIRM_LEAVE_PARTY = "Veux-tu vraiment à quitter le groupe?" -- by Google Translate
CONFIRM_LEAVE_PARTY = "Voulez-vous vraiment quitter le groupe?"
elseif GetLocale() == "itIT" then
CONFIRM_LEAVE_PARTY = "Vuoi lasciare veramente il gruppo?" -- by Google Translate
CONFIRM_LEAVE_PARTY = "Vuoi davvero abbandonare il gruppo?"
elseif GetLocale() == "ptBR" then
CONFIRM_LEAVE_PARTY = "Tem certeza de que deseja sair o grupo?" -- by Google Translate
CONFIRM_LEAVE_PARTY = "Tem certeza de que deseja sair o grupo?"
elseif GetLocale() == "ruRU" then
CONFIRM_LEAVE_PARTY = "Вы действительно хотите выйти из группы?" -- by Google Translate
CONFIRM_LEAVE_PARTY = "Вы действительно хотите выйти из группы?"
elseif GetLocale() == "koKR" then
CONFIRM_LEAVE_PARTY = "당신이 정말로 그룹을 떠나시겠습니까?" -- by Google Translate
CONFIRM_LEAVE_PARTY = "정말 이 파티를 떠나시겠습니까?"
elseif GetLocale() == "zhCN" then
CONFIRM_LEAVE_PARTY = "难道你真的想离开组吗?" -- by Google Translate
CONFIRM_LEAVE_PARTY = "难道你真的想离开组吗?"
elseif GetLocale() == "zhTW" then
CONFIRM_LEAVE_PARTY = "難道你真的想離開組嗎?" -- by Google Translate
CONFIRM_LEAVE_PARTY = "難道你真的想離開組嗎?"
end
 
------------------------------------------------------------------------
44,19 → 44,14
}
 
LeaveParty = function()
local _, instanceType = IsInInstance()
if instanceType == "party" or instanceType == "raid" then
local check
if IsInRaid then
-- Mists of Pandaria
check = IsInGroup() or IsInRaid()
else
-- Cataclysm
check = GetNumPartyMembers() > 0 or GetNumRaidMembers() > 0
end
if check then
if IsInGroup() or IsInRaid() then
local _, instanceType = IsInInstance()
if instanceType == "party" or instanceType == "raid" then
return StaticPopup_Show("CONFIRM_LEAVE_PARTY")
end
ReallyLeaveParty()
end
ReallyLeaveParty()
end
\ No newline at end of file +end + +StaticPopupDialogs.CONFIRM_LEAVE_INSTANCE_PARTY.OnAccept = ReallyLeaveParty +StaticPopupDialogs.CONFIRM_LEAVE_INSTANCE_PARTY.preferredIndex = 3 \ No newline at end of file
ConfirmLeaveParty.toc
1,5 → 1,5
## Interface: 50001
## Version: 5.0.4.wowi:revision
## Interface: 50100
## Version: 5.1.0.wowi:revision
 
## Title: ConfirmLeaveParty
## Notes: Asks for confirmation when leaving a party inside an instance.