View Single Post
09-01-19, 04:26 PM   #1
kernighan
A Cyclonian
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 45
localizing an XML file

I have an XML file that has the following block:

Code:
                </OnLoad>
                <OnEnter>
                   GameTooltip:SetOwner(self, "ANCHOR_RIGHT")
+                  GameTooltip:SetText(RRS("Shift-click a vendor to add or remove her location on the world map."), nil, nil, nil, nil, 1)^M
                </OnEnter>
Where "RRS" is a custom localization function I want to get rid of and use Ace Locale's instead. This means I need to load it somehow via LibStub in my XML file, I guess? I'm not sure how to do that. I.e., I'd like it to be something like my LUA files that have:

Code:
local L = LibStub("AceLocale-3.0"):GetLocale("RecipeRadarClassic")

name = L["Minimap Button Position"],
etc. I just don't know how I do this inside of the XML file. Pointers appreciated.
  Reply With Quote