View Feature Request
Refresh/paint or delete existing Panel
Feature #: 471
File: LibAddonMenu-2.0
Date: 06/28/14 07:13 AM
By: Tyx
Status: Wont add Feature
Hi,
thank you for your library.
It is really useful and I like the changes coming with 2.0 like the submenu very much.

To speak of 2.0 I am trying to update my Addon to the new Version and are implementing a few new features on the way. One of this features is localization:
I created a dropdown menu with a few languages.
My idea is, that the settings panel changes the text when the user selects another language, but I can't find any function to repaint or refresh the settings menu.
When I recall the settings menu manually the language is changed.

So maybe you can add a function or a change listener to the dropdown menu to refresh the panel when something is selected.
That would be great.

If there is already something like this just ignore this request... or better: It would be really great if you could tell me how I can implement a refresh in the dropdown ;)

RSS 2.0 Feed for Favorite CommentsNotes Sort Options
By: Seerah - 07/13/14 08:52 PM
I swear I responded to this somewhere... But of course I can't find it now, and am baffled at the lack of a response here. :/

If you are looking for the options themselves (the settings' names) to change their text based on language, there are two ways you can do this.

1. Have your addon be localized based on the selected locale of the game itself (ie, English, French or German - or Russian, for when the EsoRU addon gets released). Instead of assigning a string for the text for the control's name field, look up what the translation should be in your localization table.

2. Assign a global reference to each of your controls so that you can go and edit them manually. You can even store each translation for each control in the controlData table itself if you want.

Create a thread on the forums if you need more help with either of the above.
By: Tyx - 08/05/14 03:53 PM
Thanks for the reply.

Because of my studies I hadn't had time to respond earlier (or to work on my addon) but now I have implemented the first one and it works like a charm. Thanks for the tip