Thread Tools Display Modes
04-04-16, 07:34 AM   #1
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,240
LibAboutPanel ToC localization theory?

For those not familiar with LibAboutPanel, it can iterate through an AddOn's .toc file and display the fields within a host AddOn. For example, you could attach it to Interface.. AddOns.. MyAddOn.. About and a user can quickly see some data.

LibAboutPanel can read the standard .toc fields, and some extended ones as well.

So here's the theory: if you use the field ## X-Author-Faction: ALLIANCE or ## X-Author-Faction: HORDE will ALLIANCE or HORDE be localized as per globalstrings.lua? Or will they be displayed as-is instead?

I'm writing something up to test, but I'm curious if anyone has tested WoW's built-in localization capability like this before.

Last edited by myrroddin : 04-04-16 at 07:35 AM. Reason: Grammar!
  Reply With Quote
04-04-16, 10:50 AM   #2
TOM_RUS
A Warpwood Thunder Caller
AddOn Author - Click to view addons
Join Date: Sep 2008
Posts: 95
I haven't tried anything like this, but common sense tells me it should display as is.

Last edited by TOM_RUS : 04-04-16 at 10:55 AM.
  Reply With Quote
04-04-16, 11:00 AM   #3
Torhal
A Pyroguard Emberseer
 
Torhal's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 1,196
The ToC isn't part of the Lua environment, so it would have no access to those variables. It would simply display as-is.
__________________
Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes".

Author of NPCScan and many other AddOns.
  Reply With Quote
04-04-16, 08:14 PM   #4
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,240
Thanks guys, though I did test this just before I started this reply.

Now I'm going to test if appending the -frFR, -deDE, etc tags will work on user created fields. Yes, goofiness abounds!
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » LibAboutPanel ToC localization theory?


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