Jump to content

PluginPageInfo localization


Recommended Posts

Posted

The PluginPageInfo class has Name and DisplayName properties which are shown in UI. Is there a way to dynamically localize them based on current user display language?

Posted
44 minutes ago, sjtuross said:

The PluginPageInfo class has Name and DisplayName properties which are shown in UI. Is there a way to dynamically localize them based on current user display language?

Yes, there are localizable attributes available:

Emby SDK Reference: DisplayNameLAttribute

Emby SDK Reference: DescriptionLAttribute

 

These have a localized and a non-localized constructor, for example:

image.png

 

The first two members are not localized. The other four items have an entry with the string as key in the RESX resources of the given type.

Posted

Decorating doesn't help in any case, because it's not a UI class.

AFAIK, there's currently no way to localize the menu name for plugin-provided dashboard menu entries.

@Luke

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...