- September 12, 2009
- 798
- 577
- Home Country
- Germany
Hey,
i have 2 small questions.
Question 1:
I added AtmoLight to the config/settings menu in MP2 a while ago, but what always bugged me was that the menu items are sorted alphabetically. The entries themselfs are sorted in the way i added them into the plugin.xml but not the menu items. And it makes it way harder to navigate in my opinion.
A screenshot of how it looks like:
However i would like it to be sorted like this:
General Settings
AtmoWin
Hyperion
Content Effects
Remote Buttons
Advanced Settings.
plugin.xml section: https://github.com/ambilight-4-medi...ore/AtmoLight.MediaPortal2/plugin.xml#L38-L79
Is it possible to change the order? If so how? If not, any plans to add the possiblity (pretty please)?
Question 2:
Is it possible to get the strings from the language files within the plugin, so i can work with them?
I have this string in the file:
And i want to notify the user. However i would like to replace [Target] with something else within the plugin.
Atm im doing this:
Which of course tells me that connection to "[Target]" got lost and not to e.g. AtmoWin.
Any method around that returns the string?
E.g.
GetStringFromLanguage("[AtmoLight.AtmoWinConnectionLost]") returns "Connection to [Target] lost!"
Edit: As soon as i posted this and went to the kitchen to make something to eat i of course knew how i get the answer to question 2 myself...
For everbody else curious:
Thanks!
i have 2 small questions.
Question 1:
I added AtmoLight to the config/settings menu in MP2 a while ago, but what always bugged me was that the menu items are sorted alphabetically. The entries themselfs are sorted in the way i added them into the plugin.xml but not the menu items. And it makes it way harder to navigate in my opinion.
A screenshot of how it looks like:
However i would like it to be sorted like this:
General Settings
AtmoWin
Hyperion
Content Effects
Remote Buttons
Advanced Settings.
plugin.xml section: https://github.com/ambilight-4-medi...ore/AtmoLight.MediaPortal2/plugin.xml#L38-L79
Is it possible to change the order? If so how? If not, any plans to add the possiblity (pretty please)?
Is it possible to get the strings from the language files within the plugin, so i can work with them?
I have this string in the file:
Code:
<string name="AtmoLight.AtmoWinConnectionLost">Connection to [Target] lost!</string>
And i want to notify the user. However i would like to replace [Target] with something else within the plugin.
Atm im doing this:
Code:
ServiceRegistration.Get<INotificationService>().EnqueueNotification(NotificationType.Error, "[AtmoLight.Name]", "[AtmoLight.AtmoWinConnectionLost]", true);
Which of course tells me that connection to "[Target]" got lost and not to e.g. AtmoWin.
Any method around that returns the string?
E.g.
GetStringFromLanguage("[AtmoLight.AtmoWinConnectionLost]") returns "Connection to [Target] lost!"
Edit: As soon as i posted this and went to the kitchen to make something to eat i of course knew how i get the answer to question 2 myself...
For everbody else curious:
Code:
MediaPortal.Common.Localization.LocalizationHelper.Translate("[AtmoLight.AtmoWinConnectionLost]")
Thanks!
Last edited: