Quantcast localizing an XML file - WoWInterface
Thread Tools Display Modes
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
09-01-19, 05:18 PM   #2
kernighan
A Cyclonian
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 45
I know what I'll do... Just keep the RRS function but have it use ace locale to return the localized string, easy enough.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » localizing an XML file

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off