WoWInterface SVN UltimateWarcraftBattlecryGenerator

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 50 to Rev 51
    Reverse comparison

Rev 50 → Rev 51

BattleCryGen.lua
4,7 → 4,7
-- Author : Nuchaleft (NytewolfAU2k7 on Curse)
-- Email : nwcreations@gmail.com
-- Create Date : 10/07/2008 01:11:43 PM WAST (GMT+8:00)
-- Update : 18/07/2010 03:42 PM WAST (GMT+8:00)
-- Update : 05/08/2010 02:26 AM WAST (GMT+8:00)
-- ===========================================
 
-- Declare our Generator Variables
16,37 → 16,52
local s_bcgevilsay = ""; --evil say var
local s_channel = ""; --Channel Name
 
UWBG_Prefs = {defchannel = "Say",
allfaction = false,}
--UWBG_Prefs = {defchannel = "Say",
--allfaction = false,}
 
-- This function is run on pressing the Ok or Close Buttons.
-- Sets the Status of the Saved Variables to the new settings
function frmBCG_Close()
UWBG_Prefs[realm].Sold = SC_ChaChingGUIFrame_CBSold:GetChecked();
UWBG_Prefs[realm].Expired = SC_ChaChingGUIFrame_CBExpired:GetChecked();
UWBG_Prefs[realm].Outbid = SC_ChaChingGUIFrame_CBOutbid:GetChecked();
UWBG_Prefs[realm].Removed = SC_ChaChingGUIFrame_CBRemoved:GetChecked();
--UWBG_Prefs[realm].Sold = SC_ChaChingGUIFrame_CBSold:GetChecked();
--UWBG_Prefs[realm].Expired = SC_ChaChingGUIFrame_CBExpired:GetChecked();
--UWBG_Prefs[realm].Outbid = SC_ChaChingGUIFrame_CBOutbid:GetChecked();
--UWBG_Prefs[realm].Removed = SC_ChaChingGUIFrame_CBRemoved:GetChecked();
end
 
 
-- This function is run on pressing the Cancel Button or from the VARIABLES LOADED event function.
-- Sets the status of the Check Boxes to the Values of the Saved Variables.
function frmBCG_CancelOrLoad()
SC_ChaChingGUIFrame_CBSold:SetChecked(UWBG_Prefs[realm].Sold);
SC_ChaChingGUIFrame_CBExpired:SetChecked(UWBG_Prefs[realm].Expired);
SC_ChaChingGUIFrame_CBOutbid:SetChecked(UWBG_Prefs[realm].Outbid);
SC_ChaChingGUIFrame_CBRemoved:SetChecked(UWBG_Prefs[realm].Removed);
--SC_ChaChingGUIFrame_CBSold:SetChecked(UWBG_Prefs[realm].Sold);
--SC_ChaChingGUIFrame_CBExpired:SetChecked(UWBG_Prefs[realm].Expired);
--SC_ChaChingGUIFrame_CBOutbid:SetChecked(UWBG_Prefs[realm].Outbid);
--SC_ChaChingGUIFrame_CBRemoved:SetChecked(UWBG_Prefs[realm].Removed);
end
 
 
-- ON EVENT HANDLER... ERR... EVENT
function frmBCG_OnEvent()
if (event == "VARIABLES_LOADED") then
frmBCG_Initialise();
--UWBCG_LoadOptions(); -- Load Options, display error if unable
frmBCG_CancelOrLoad();
end
end;
 
 
-- UWBCG_LoadConfig
function UWBCG_LoadConfig()
if (not IsAddOnLoaded("BattleCryGen_Config")) then
EnableAddOn("BattleCryGen_Config")
local ok, reason = LoadAddOn("BattleCryGen_Config")
 
if (not ok) then
UWBCG_Msg("Failed to load BattleCryGen configuration settings ("..tostring(reason)..")")
else
collectgarbage()
end;
end;
end;
 
-- GENERATE A FACTION-SPECIFIC BATTLECRY!
function GenerateFactionBattlecry(ransom_msg,channel)
local pc_faction = UnitFactionGroup("player");
67,18 → 82,22
end;
end;
 
--Alliance NO TARGET SELECTED
function GenerateFactionBattlecryANT(ransom_msg)
return GetRandomArgument("DIE! Feel the wrath of the " .. ransom_msg .. "!","Light BURN you!", "For the " .. ransom_msg .. "!","All who betray the " .. ransom_msg .. " shall be punished!","I smite thee, In the name of the " .. ransom_msg .. "!","DIE! Your evil shall never triumph!","Your evil ends here!", "We Fight!", "DIE! Your evil shall be purged!", "You DARE face me?","The Light shall never fade!", "You will face justice!","There can only be 1000!","There can only be over 9000!","For Cenarius!","For Stormwind!","For Ironforge!","For Darnassus!","For Gnomeregan!");
end;
 
--Alliance TARGET SELECTED
function GenerateFactionBattlecryAT(ransom_msg)
return GetRandomArgument("DIE, %t! Feel the wrath of the " .. ransom_msg .. "!","Light BURN you, %t!", "For the " .. ransom_msg .. "!","All who betray the light shall be punished!","I smite thee, %t, In the name of the " .. ransom_msg .. "!","DIE, %t! Your evil shall never triumph!","Your evil ends here, %t!", "DIE! %t! Your evil shall be purged!", "You DARE face me?","The Light shall never fade!", "You will face justice!","There can only be 1000!","There can only be over 9000!","For Cenarius!","For the Warchief!","For Stormwind!","For Ironforge!","For Darnassus!","For Gnomeregan!");
end;
 
--Horde NO TARGET SELECTED
function GenerateFactionBattlecryHNT(ransom_msg)
return GetRandomArgument("DIE! Feel the wrath of the " .. ransom_msg .. "!","Light BURN you!", "For the " .. ransom_msg .. "!","All who betray the light shall be punished!","Your blood shall be mine!","DIE! Your evil shall never triumph!","Your evil ends here!", "DIE! Your evil shall be purged!", "You DARE face me?","The Light shall never fade!", "You will bring me great honor!","There can only be 1000!","There can only be over 9000!","For the Warchief!","For Ogrimmar!","For Undercity!","For Silvermoon City!","For Quel'Thalas!");
end;
 
--Horde TARGET SELECTED
function GenerateFactionBattlecryHT(ransom_msg)
return GetRandomArgument("DIE, %t! Feel the wrath of the " .. ransom_msg .. "!","Light BURN you, %t!", "For the " .. ransom_msg .. "!","All who betray the light shall be punished!","%t! Your blood shall be mine!","DIE, %t! Your evil shall never triumph!","Your evil ends here, %t!", "DIE! %t! Your evil shall be purged!", "You DARE face me?","The Light shall never fade!", "You will bring me great honor!","There can only be 1000!","There can only be over 9000!","For the Warchief!","For Ogrimmar!","For Undercity!","For Silvermoon City!","For Quel'Thalas!");
end;
255,7 → 274,6
}
 
--Pre/Suffixes for evil people
 
EvilSuff={
"Fel Horde",
"Scourge",
267,8 → 285,8
 
-- END SUFFIXES LISTINGS
 
 
function Show_Msg(msg)
-- Print a message to the default chat frame
function UWBCG_Msg(msg)
if( DEFAULT_CHAT_FRAME ) then
DEFAULT_CHAT_FRAME:AddMessage(msg);
end;
295,8 → 313,11
end;
 
-- Options Button
function btnGenOpt_Click()
BattleCryGenOptions:Show();
function UWBCG_LoadOptionsDialog()
if (BattleCryGen_Config) then
BattleCryGen_Config:Show()
BattleCryGen_Config:SetAlpha(0)
end
end;
 
function MakeOneUp(WhatKind)
369,6 → 390,8
elseif (string.lower(param1) == "raid") then
MakeOneUp("r");
SendChatMessage(s_final, param1, frmBCG.language);
elseif (string.lower(param1) == "cfg") then
InterfaceOptionsFrame_OpenToCategory(panel);
elseif (string.lower(param1) == "show") then
if frmBCG:IsVisible() == true then
frmBCG:Hide();
388,47 → 411,37
 
-- Show how to use the addon.
function btnUsage_Click()
Show_Msg("|cff6666ff Usage:\n");
Show_Msg("|cff999999 /bcg show Open Panel");
Show_Msg("|cff999999 /bcg cfg Open Options Panel");
Show_Msg("|cff999999 /bcg y (Yell)");
Show_Msg("|cff999999 /bcg s (Say)");
Show_Msg("|cff999999 /bcg p (Party)");
Show_Msg("|cff999999 /bcg r (Raid)");
Show_Msg("|cff999999 /bcg bg (Battleground)");
Show_Msg("|cff6666ff Enjoy the power!\n");
UWBCG_Msg("|cff6666ff Usage:\n");
UWBCG_Msg("|cff999999 /bcg show Open Panel");
UWBCG_Msg("|cff999999 /bcg cfg Open Options Panel");
UWBCG_Msg("|cff999999 /bcg y (Yell)");
UWBCG_Msg("|cff999999 /bcg s (Say)");
UWBCG_Msg("|cff999999 /bcg p (Party)");
UWBCG_Msg("|cff999999 /bcg r (Raid)");
UWBCG_Msg("|cff999999 /bcg bg (Battleground)");
UWBCG_Msg("|cff6666ff Enjoy the power!\n");
end
 
-- Hide this addon from view.
function btnClose_Click()
frmBCG:Hide();
--UWBG_Prefs=1;
--UWBG_CharPrefs=1;
end
 
function frmBCG_Open()
frmBCG:Show();
--UWBG_Prefs=0;
--UWBG_CharPrefs=0;
end
 
-- ON LOAD EVENT
function frmBCG_OnLoad(panel)
-- Identify us.
Show_Msg("|cff999999 Ultimate Warcraft Battlecry Generator is Loaded\n");
Show_Msg("|cff999999 Version 0.50 for WoW Patch 3.3+\n");
Show_Msg("|cff6666ff Type /bcg for options\n");
UWBCG_Msg("|cff999999 Ultimate Warcraft Battlecry Generator is Loaded\n");
UWBCG_Msg("|cff999999 Version 0.50 for WoW Patch 3.3+\n");
UWBCG_Msg("|cff6666ff Type /bcg for options\n");
 
-- BEGIN INTERFACE OPTIONS CODE
 
-- Set the name for the Category for the Panel
panel.name = "UWBCG" .. GetAddOnMetadata("BattleCryGen", "Version");
-- When the player clicks okay, run this function.
panel.okay = function (self) frmBCG_Close(); end;
-- When the player clicks cancel, run this function.
panel.cancel = function (self) frmBCG_CancelOrLoad(); end;
-- Add the panel to the Interface Options
InterfaceOptions_AddCategory(panel);
UWBCG_LoadConfig(); -- Load configuration settings, display error if unable
UWBCG_LoadOptionsDialog(); -- Load the actual options dialog
 
-- END INTERFACE OPTIONS CODE
 
BattleCryGen.toc
14,6 → 14,6
## DefaultState: Enabled
## LoadOnDemand: 0
## SavedVariables: UWBG_Prefs
## SavedVariablesPerCharacter: UWBG_CharPrefs
BattleCryGen.lua
BattleCryGenFrame.xml
Localisation.lua
BattleCryGenFrame.xml
3,7 → 3,7
<Frame name="frmBCG" parent="UIParent" movable="true" enableMouse="true">
<!--<FrameSkin skinid="dcb143e1-a4ab-4e7c-b934-1efa40101d21" frameid="2d508883-59c2-4f83-ae10-27aaad48391b" />-->
<Size>
<AbsDimension x="336" y="84" />
<AbsDimension x="249" y="91" />
</Size>
<Anchors>
<Anchor point="CENTER" relativeTo="UIParent">
63,21 → 63,21
</Layer>
</Layers>
<Frames>
<Frame name="$parentLabel2">
<Frame name="$parentLabel1">
<!--<FrameSkin skinid="dcb143e1-a4ab-4e7c-b934-1efa40101d21" frameid="2d508885-59c2-4f83-ae10-27aaad48391b" />-->
<Size>
<AbsDimension x="73" y="18" />
<AbsDimension x="164" y="18" />
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="18" y="-38" />
<AbsDimension x="18" y="-17" />
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer>
<FontString name="$parentLabel" font="Fonts\FRIZQT__.TTF" text="Channel:" justifyH="LEFT">
<FontString name="$parentLabel" font="Fonts\FRIZQT__.TTF" text="Battlecry Generator v0.50" justifyH="LEFT">
<Anchors>
<Anchor point="TOPLEFT" />
<Anchor point="BOTTOMRIGHT" />
96,208 → 96,44
</Layer>
</Layers>
</Frame>
<Button name="cboGen">
<!--<FrameSkin skinid="dcb143e1-a4ab-4e7c-b934-1efa40101d21" frameid="2d50888b-59c2-4f83-ae10-27aaad48391b"><Property name="Items">&lt;?xml version="1.0"?&gt;
&lt;ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
&lt;string&gt;Say&lt;/string&gt;
&lt;string&gt;Yell&lt;/string&gt;
&lt;string&gt;Party&lt;/string&gt;
&lt;string&gt;Battleground&lt;/string&gt;
&lt;string&gt;Raid&lt;/string&gt;
&lt;string&gt;Guild&lt;/string&gt;
&lt;/ArrayOfString&gt;</Property><Property name="OnSelectionChanged">&lt;?xml version="1.0"?&gt;
&lt;string /&gt;</Property></FrameSkin>-->
<Button name="btnGenUsage" text="?">
<!--<FrameSkin skinid="dcb143e1-a4ab-4e7c-b934-1efa40101d21" frameid="2d508884-59c2-4f83-ae10-27aaad48391b" />-->
<Size>
<AbsDimension x="145" y="32" />
<AbsDimension x="17" y="18" />
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="90" y="-33" />
<AbsDimension x="190" y="-17" />
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer>
<Texture name="$parentLeft" file="Interface\Glues\CharacterCreate\CharacterCreate-LabelFrame">
<Size>
<AbsDimension x="25" y="64" />
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="0" y="17" />
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0" right="0.1953125" top="0" bottom="1" />
</Texture>
<Texture name="$parentMiddle" file="Interface\Glues\CharacterCreate\CharacterCreate-LabelFrame">
<Size>
<AbsDimension x="95" y="64" />
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT" />
</Anchors>
<TexCoords left="0.1953125" right="0.8046875" top="0" bottom="1" />
</Texture>
<Texture name="$parentRight" file="Interface\Glues\CharacterCreate\CharacterCreate-LabelFrame">
<Size>
<AbsDimension x="25" y="64" />
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT" />
</Anchors>
<TexCoords left="0.8046875" right="1" top="0" bottom="1" />
</Texture>
<FontString name="$parentText" font="Fonts\FRIZQT__.TTF" text="Say" justifyH="RIGHT">
<Size>
<AbsDimension x="120" y="10" />
</Size>
<Anchors>
<Anchor point="RIGHT" relativeTo="$parentRight">
<Offset>
<AbsDimension x="-43" y="2" />
</Offset>
</Anchor>
</Anchors>
<FontHeight>
<AbsValue val="10" />
</FontHeight>
<Color r="1" g="1" b="1" />
<Shadow>
<Color r="0" g="0" b="0" />
<Offset>
<AbsDimension x="1" y="-1" />
</Offset>
</Shadow>
</FontString>
</Layer>
</Layers>
<Frames>
<Button name="$parentButton">
<Size>
<AbsDimension x="24" y="24" />
</Size>
<Anchors>
<Anchor point="TOPRIGHT" relativeTo="$parentRight">
<Offset>
<AbsDimension x="-16" y="-18" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
ToggleDropDownMenu(nil, nil, self:GetParent());
PlaySound("igMainMenuOptionCheckBoxOn");
</OnClick>
</Scripts>
<NormalTexture name="$parentNormalTexture" file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Up">
<Size>
<AbsDimension x="24" y="24" />
</Size>
<Anchors>
<Anchor point="RIGHT" />
</Anchors>
</NormalTexture>
<PushedTexture name="$parentPushedTexture" file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Down">
<Size>
<AbsDimension x="24" y="24" />
</Size>
<Anchors>
<Anchor point="RIGHT" />
</Anchors>
</PushedTexture>
<DisabledTexture name="$parentDisabledTexture" file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Disabled">
<Size>
<AbsDimension x="24" y="24" />
</Size>
<Anchors>
<Anchor point="RIGHT" />
</Anchors>
</DisabledTexture>
<HighlightTexture name="$parentHighlightTexture" file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD">
<Size>
<AbsDimension x="24" y="24" />
</Size>
<Anchors>
<Anchor point="RIGHT" />
</Anchors>
</HighlightTexture>
</Button>
</Frames>
<Scripts>
<OnLoad>-- START AUTOGENERATED, DO NOT EDIT
local cb_init_fn = function()
local info
info = {}
info.text = "Say"
info.func = function() UIDropDownMenu_SetSelectedID(cboGen, this:GetID(), 0); end
UIDropDownMenu_AddButton(info);
info = {}
info.text = "Yell"
info.func = function() UIDropDownMenu_SetSelectedID(cboGen, this:GetID(), 0); end
UIDropDownMenu_AddButton(info);
info = {}
info.text = "Party"
info.func = function() UIDropDownMenu_SetSelectedID(cboGen, this:GetID(), 0); end
UIDropDownMenu_AddButton(info);
info = {}
info.text = "Battleground"
info.func = function() UIDropDownMenu_SetSelectedID(cboGen, this:GetID(), 0); end
UIDropDownMenu_AddButton(info);
info = {}
info.text = "Raid"
info.func = function() UIDropDownMenu_SetSelectedID(cboGen, this:GetID(), 0); end
UIDropDownMenu_AddButton(info);
info = {}
info.text = "Guild"
info.func = function() UIDropDownMenu_SetSelectedID(cboGen, this:GetID(), 0); end
UIDropDownMenu_AddButton(info);
end
UIDropDownMenu_Initialize(this, cb_init_fn)
-- END AUTOGENERATED
</OnLoad>
<OnHide>CloseDropDownMenus();
</OnHide>
<OnTextChanged>cboGen_OnTextChanged();
</OnTextChanged>
<OnClick>btnUsage_Click();
</OnClick>
</Scripts>
<NormalTexture file="Interface\Buttons\UI-Panel-Button-Up">
<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
</NormalTexture>
<PushedTexture file="Interface\Buttons\UI-Panel-Button-Down">
<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
</PushedTexture>
<DisabledTexture file="Interface\Buttons\UI-Panel-Button-Disabled">
<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
</DisabledTexture>
<HighlightTexture file="Interface\Buttons\UI-Panel-Button-Highlight" alphaMode="ADD">
<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
</HighlightTexture>
<ButtonText name="$parentText">
<FontHeight>
<AbsValue val="10" />
</FontHeight>
</ButtonText>
<NormalFont style="GameFontNormal" />
<HighlightFont style="GameFontHighlight" />
<DisabledFont style="GameFontDisable" />
</Button>
<Frame name="$parentLabel1">
<!--<FrameSkin skinid="dcb143e1-a4ab-4e7c-b934-1efa40101d21" frameid="2d508885-59c2-4f83-ae10-27aaad48391b" />-->
<Size>
<AbsDimension x="223" y="18" />
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="18" y="-17" />
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer>
<FontString name="$parentLabel" font="Fonts\FRIZQT__.TTF" text="Ult. Warcraft Battlecry Generator v0.50" justifyH="LEFT">
<Anchors>
<Anchor point="TOPLEFT" />
<Anchor point="BOTTOMRIGHT" />
</Anchors>
<FontHeight>
<AbsValue val="12" />
</FontHeight>
<Color r="1" g="0.8196079" b="0" />
<Shadow>
<Color r="0" g="0" b="0" />
<Offset>
<AbsDimension x="1" y="-1" />
</Offset>
</Shadow>
</FontString>
</Layer>
</Layers>
</Frame>
<Button name="btnGenUsage" text="?">
<Button name="btnClose" text="X">
<!--<FrameSkin skinid="dcb143e1-a4ab-4e7c-b934-1efa40101d21" frameid="2d508884-59c2-4f83-ae10-27aaad48391b" />-->
<Size>
<AbsDimension x="17" y="18" />
305,12 → 141,12
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="277" y="-13" />
<AbsDimension x="213" y="-17" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>btnUsage_Click();
<OnClick>btnClose_Click();
</OnClick>
</Scripts>
<NormalTexture file="Interface\Buttons\UI-Panel-Button-Up">
334,20 → 170,21
<HighlightFont style="GameFontHighlight" />
<DisabledFont style="GameFontDisable" />
</Button>
<Button name="btnClose" text="X">
<Button name="btnGenSay" text="Generate!">
<!--<FrameSkin skinid="dcb143e1-a4ab-4e7c-b934-1efa40101d21" frameid="2d508884-59c2-4f83-ae10-27aaad48391b" />-->
<Size>
<AbsDimension x="17" y="18" />
<AbsDimension x="76" y="33" />
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="300" y="-13" />
<AbsDimension x="154" y="-41" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>btnClose_Click();</OnClick>
<OnClick>btnGenSay_Click();
</OnClick>
</Scripts>
<NormalTexture file="Interface\Buttons\UI-Panel-Button-Up">
<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
370,20 → 207,20
<HighlightFont style="GameFontHighlight" />
<DisabledFont style="GameFontDisable" />
</Button>
<Button name="btnGenSay" text="Generate!">
<Button name="btnOptions" text="Options">
<!--<FrameSkin skinid="dcb143e1-a4ab-4e7c-b934-1efa40101d21" frameid="2d508884-59c2-4f83-ae10-27aaad48391b" />-->
<Size>
<AbsDimension x="76" y="33" />
<AbsDimension x="85" y="33" />
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="241" y="-33" />
<AbsDimension x="18" y="-41" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>btnGenSay_Click();
<OnClick>UWBCG_LoadOptionsDialog();
</OnClick>
</Scripts>
<NormalTexture file="Interface\Buttons\UI-Panel-Button-Up">
Localisation.lua New file
0,0 → 1,25
-- The Ultimate Warcraft Battlecry Generator
-- ===========================================
-- Version : 0.50
-- Author : Nuchaleft (NytewolfAU2k7 on Curse)
-- Email : nwcreations@gmail.com
-- Create Date : 08/08/2010 03:31 AM WAST (GMT+8:00)
-- ===========================================
 
UWBCG_Loc = {}
 
-- Everything From here on would need to be translated and put
-- into the if statements for each specific language.
 
-- English (DEFAULT)
 
UWBCG_Loc.TEXT_GENBUTTON = "Generate!";
UWBCG_Loc.TEXT_CFGBUTTON = "Options";
 
if GetLocale() == "deDE" then
-- German
elseif GetLocale() == "frFR" then
-- French
elseif GetLocale() == "esES" then
-- Spanish
end;