/trunk/OneCompanion
## SavedVariables: OneCompanionDB |
## SavedVariablesPerCharacter: OneCompanionDBPC |
## LoadManagers: AddonLoader |
## X-LoadOn-Always: delayed |
embeds.xml |
locals\enUS.lua |
if not (select(4,GetBuildInfo()) >= 30000) then return end |
local MINOR_VERSION = tonumber(("$Revision$"):match("%d+")) |
if MINOR_VERSION > _G.OneCompanion_MINOR_VERSION then _G.OneCompanion_MINOR_VERSION = MINOR_VERSION end |
if not GetLocale() == "ruRU" then return end |
local L = LibStub("AceLocale-3.0"):NewLocale("OneCompanion", "ruRU", true) |
local L = LibStub("AceLocale-3.0"):NewLocale("OneCompanion", "ruRU", false) |
if not L then return end |
L["AceGUI"] = "AceGUI" |
if not (select(4,GetBuildInfo()) >= 30000) then return end |
local MINOR_VERSION = tonumber(("$Revision$"):match("%d+")) |
if MINOR_VERSION > _G.OneCompanion_MINOR_VERSION then _G.OneCompanion_MINOR_VERSION = MINOR_VERSION end |
if not GetLocale() == "esES" then return end |
local L = LibStub("AceLocale-3.0"):NewLocale("OneCompanion", "esES", true) |
local L = LibStub("AceLocale-3.0"):NewLocale("OneCompanion", "esES", false) |
if not L then return end |
L["AceGUI"] = "AceGUI" |
if not (select(4,GetBuildInfo()) >= 30000) then return end |
local MINOR_VERSION = tonumber(("$Revision$"):match("%d+")) |
if MINOR_VERSION > _G.OneCompanion_MINOR_VERSION then _G.OneCompanion_MINOR_VERSION = MINOR_VERSION end |
if not GetLocale() == "frFR" then return end |
local L = LibStub("AceLocale-3.0"):NewLocale("OneCompanion", "frFR", false) |
if not L then return end |
if not (select(4,GetBuildInfo()) >= 30000) then return end |
local MINOR_VERSION = tonumber(("$Revision$"):match("%d+")) |
if MINOR_VERSION > _G.OneCompanion_MINOR_VERSION then _G.OneCompanion_MINOR_VERSION = MINOR_VERSION end |
if not GetLocale() == "deDE" then return end |
local L = LibStub("AceLocale-3.0"):NewLocale("OneCompanion", "deDE", true) |
local L = LibStub("AceLocale-3.0"):NewLocale("OneCompanion", "deDE", false) |
if not L then return end |
L["AceGUI"] = "AceGUI" |
if not (select(4,GetBuildInfo()) >= 30000) then return end |
local MINOR_VERSION = tonumber(("$Revision$"):match("%d+")) |
if MINOR_VERSION > _G.OneCompanion_MINOR_VERSION then _G.OneCompanion_MINOR_VERSION = MINOR_VERSION end |
if not GetLocale() == "zhCN" then return end |
local L = LibStub("AceLocale-3.0"):NewLocale("OneCompanion", "zhCN", true) |
local L = LibStub("AceLocale-3.0"):NewLocale("OneCompanion", "zhCN", false) |
if not L then return end |
L["AceGUI"] = "AceGUI" |
if not (select(4,GetBuildInfo()) >= 30000) then return end |
local MINOR_VERSION = tonumber(("$Revision$"):match("%d+")) |
if MINOR_VERSION > _G.OneCompanion_MINOR_VERSION then _G.OneCompanion_MINOR_VERSION = MINOR_VERSION end |
if not GetLocale() == "koKR" then return end |
local L = LibStub("AceLocale-3.0"):NewLocale("OneCompanion", "koKR", true) |
local L = LibStub("AceLocale-3.0"):NewLocale("OneCompanion", "koKR", false) |
if not L then return end |
L["AceGUI"] = "AceGUI" |
if not (select(4,GetBuildInfo()) >= 30000) then return end |
local MINOR_VERSION = tonumber(("$Revision$"):match("%d+")) |
if MINOR_VERSION > _G.OneCompanion_MINOR_VERSION then _G.OneCompanion_MINOR_VERSION = MINOR_VERSION end |
if not GetLocale() == "zhTW" then return end |
local L = LibStub("AceLocale-3.0"):NewLocale("OneCompanion", "zhTW", true) |
local L = LibStub("AceLocale-3.0"):NewLocale("OneCompanion", "zhTW", false) |
if not L then return end |
L["AceGUI"] = "AceGUI" |
desc = L["Open the Blizzard config window"], |
func = function() |
InterfaceOptionsFrame:SetWidth(850) |
InterfaceOptionsFrame_OpenToFrame(OneCompanion.optionsFrame) |
InterfaceOptionsFrame_OpenToCategory(OneCompanion.optionsFrame) |
-- if getglobal("LibRockConfig-1.0_Frame") then getglobal("LibRockConfig-1.0_Frame"):Hide() end |
-- ACD:CloseAll() |
end |