Hm. Looking at the API itself:
You could parse them out of the API itself probably:
Lua Code:
GetNumMaps()
Returns: integer numMaps
GetMapInfo(luaindex index)
Returns: string name, UIMapType mapType, MapContentType mapContentType
GetNumMapLocations()
Returns: integer numMapLocations
GetMapLocation(luaindex locationIndex)
_Uses variable returns..._
Returns: string locationName, integer fontSize, number colorR, number colorG, number colorB, number normalizedX, number normalizedZ
Then try to get them like this (not tested, just written here quick n dirty):
Lua Code:
local function GetAllLocationsFromAllMaps()
local locations = {}
for mapid = 1, GetNumMaps(), 1 do
locations[mapid] = {}
for locid = 1, GetNumMapLocations(), 1 do
local name = GetMapLocation(locid)
if(name) then locations[mapid][locid] = name end
end
end
return locations
end
-- switch game client to english
ENGLISH_LOCATIONS = GetAllLocationsFromAllMaps()
-- this will probably overflow your Chat
-- so better use /zgoo ENGLISH_LOCATIONS
-- and comment that line out (*)
d(ENGLISH_LOCATIONS)
(*) You can find Zgoo here:
Zgoo
I'm not sure however - maybe it 's only working for the current map you're in. You could then dump that data with LibOrangUtils:CopyToClipboard(string text) from my library (well after converting it to a string instead of a table)
http://www.esoui.com/downloads/info4...rangUtils.html
and then supply both tables with your addon and translate them based on map/location ID.
You should get something like this as a result:
Lua Code:
ENGLISH_LOCATIONS = {
[1] = { -- mapid
[592] = "The Herpderp Den of Derpert Herp", -- location id = name
[1029] = "The Lerb"
},
[502] = {
[1] = "Blargh"
}
}