-- This sets the text of all the GUI texts, this is here for localization purposes function Soap:TranslateGUIText() SoapAnchorFrameText:SetText(L"Timer bars will appear here.") if SoapOptionsFrame then -- close/run test bars buttons SoapOptionsFrameBtnClose:SetText(L"Close") SoapOptionsFrameBtnTestBars:SetText(L"Run Test Bars") -- main labels (title/panel titles) SoapOptionsFrameLblTitleText:SetText(L"Soap Options") SoapOptionsFrameLblOptions:SetText(L"Options") SoapOptionsFrameLblEvents:SetText(L"Events") -- options panel - check button names SoapOptionsFramePanelGeneralOptsChkBtnTargetOnly:SetText(L"Target Only") SoapOptionsFramePanelGeneralOptsChkBtnColorBarsClass:SetText(L"Color Bars by Class") SoapOptionsFramePanelGeneralOptsChkBtnStopBarsDeath:SetText(L"Stop Bars on Death") SoapOptionsFramePanelGeneralOptsChkBtnStopBarsHostileDeath:SetText(L"Stop Bars on Hostile Death") SoapOptionsFramePanelGeneralOptsChkBtnOnlyCastingTime:SetText(L"Only Casting Time") SoapOptionsFramePanelGeneralOptsChkBtnStopCancelledSpell:SetText(L"Stop Cancelled Spell") -- events panel - event names SoapOptionsFramePanelEventsRegisteredChkBtnHostilePlayerBuffs:SetText(L"Hostile Player Buffs") SoapOptionsFramePanelEventsRegisteredChkBtnHostilePlayerPeriodicBuffs:SetText(L"Periodic Hostile Player Buffs") SoapOptionsFramePanelEventsRegisteredChkBtnHostilePlayerDamage:SetText(L"Hostile Player Damage") end end ----- XML FILE for the SoapAnchorFrameText:SetText(L"Timer bars will appear here.") this:RegisterForDrag("LeftButton") this:StartMoving() this:StopMovingOrSizing()