WoWInterface SVN ConfirmLeaveParty

Compare Revisions

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

Rev 12 → Rev 11

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