|
05/21/14, 07:04 AM | #1 | |
Join Date: May 2014
Posts: 3
|
Using Localization files
Hi there,
First, sorry for my English ! I'm looking for a way to get the English name of a point of interest when the game is not in English. I searched the API, but did not find anything about it. Does anybody know how i can access the localization files of others languages ? It may be a silly question for English-speaking users, but like many players on the European server, my game is not in English. However the zone channel are, so each time someone announce that something happens somewhere, the name of the "point of interest" (shrine, castle, bosses) is in English, and i have to look at my map (in my own language) and try to guess how it has been translated... I wish to simply make an add on that show both names on the map : one in my language, and the English name. Any clue would be welcome.. Have a nice day ! |
|
05/21/14, 08:06 AM | #2 |
Edit:
Ah wait - you're looking to get the English name of all Locations displayed on your current Map? That might be possible and a good solution! I'll have a look ... if it comes down to it you can get that Data from ESOHEAD: http://esohead.com/map#439.2.50.50 http://esohead.com/zones#alliance:1 Edit 2: Seems like they don't have everything stored as well - at least with a first glance You'll probably have to embed a Library of those Location Names in your addon thought! There is really really medicore localization support for the whole API afterall (almost non-existant). Edit 3: Just in case this translates all Item-Links to English no matter your client language: http://www.esoui.com/downloads/info4...izedItems.html Last edited by thelegendaryof : 05/21/14 at 08:26 AM. |
|
05/21/14, 08:35 AM | #3 | |
Join Date: May 2014
Posts: 3
|
Thanks a lot for you answer.
I could play with the English client, but then i would have the opposite problem, when my guildmates will give the POI names in French. I don't intend to do any translation, i want to use what is already existing in the game files. I guess the game must have an ID for each Point of Interest. When it generates a map, it checks the language file and bring back the name for this ID. What i want to do is to check both the FR file and the ENG file, but i don't know if i can access them, and how. I also could do a layer on the map, like the Skyshard addon, but it will be heavier (and much longer to write!) I think it was an error to localize NPC and locations names on an international server... Edit : You edited your post while i was typing ^^ This Items Links addon seems to be a good place to start, i'll have a look at it, thanks a lot for the time you spend on my problem ! Last edited by silmaodv : 05/21/14 at 08:40 AM. |
|
05/21/14, 09:13 AM | #4 |
Hm. Looking at the API itself:
You could parse them out of the API itself probably: Lua Code:
Then try to get them like this (not tested, just written here quick n dirty): Lua Code:
(*) 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:
Last edited by thelegendaryof : 05/21/14 at 09:24 AM. |
|
05/21/14, 09:21 AM | #5 |
As far as I know there is no way to get point of interest (POI) names in different language without reloading UI. It means that you will need to create some table with localized names in your addon.
How to get POI names for the current map in the current language: Lua Code:
How to switch between laguages: In my private addon I have defined three slash commands to switch language: Lua Code:
Where you want to display modified names? You can for example modify tooltip creators for POI pins on the world map: Lua Code:
Last edited by Garkin : 05/21/14 at 11:43 AM. Reason: Data should work now. |
|
05/21/14, 09:26 AM | #6 | |
Also - I'm curious - Whats the difference between Map-Locations and POI 's ? (just never touched it yet) Last edited by thelegendaryof : 05/21/14 at 09:31 AM. |
||
05/21/14, 10:51 AM | #7 |
I have all three languages installed but does the game go boom if you don't and switch the cVar dynamically?
I'll not sure how gracefully the game will deal with it if you don't have the languages already downloaded. --halja |
|
05/21/14, 11:16 AM | #8 | |
As to the locations/points of interest - I have no idea how locations work, GetNumMapLocations() is always 0 no matter what I do |
||
ESOUI » Developer Discussions » Lua/XML Help » Using Localization files |
«
Previous Thread
|
Next Thread
»
|
Display Modes |
Switch to Linear Mode |
Hybrid Mode |
Switch to Threaded Mode |
|
|