mutu310 70 Posted February 16, 2017 Share Posted February 16, 2017 How do I programmatically retrieve the Emby Server setting for the display language please? Link to comment Share on other sites More sharing options...
ebr 14960 Posted February 16, 2017 Share Posted February 16, 2017 To what end? I don't believe we have a setting for display language per se. We have a preferred metadata language but it can be different for different libraries. I believe the web app keys off of the browser/OS language setting as far as general translations go... Link to comment Share on other sites More sharing options...
mutu310 70 Posted February 16, 2017 Author Share Posted February 16, 2017 There is a "preferred display language" under "Settings". Please see below. This is the value I'd like to retrieve. Link to comment Share on other sites More sharing options...
ebr 14960 Posted February 16, 2017 Share Posted February 16, 2017 Okay, sorry - too many settings . Then that would be accessible via system configuration (IConfigurationManager). Link to comment Share on other sites More sharing options...
mutu310 70 Posted February 16, 2017 Author Share Posted February 16, 2017 Okay, sorry - too many settings . Then that would be accessible via system configuration (IConfigurationManager). Can you be more specific please? I already tried using IConfigurationManager but there was no clear way to get this configuration. I'm assuming I need a key for the display language setting? Link to comment Share on other sites More sharing options...
mutu310 70 Posted February 16, 2017 Author Share Posted February 16, 2017 I think I found it under ISystemConfigurationManager (.Configuration.UICulture) Link to comment Share on other sites More sharing options...
Luke 37272 Posted February 16, 2017 Share Posted February 16, 2017 What will you use this for? Link to comment Share on other sites More sharing options...
mutu310 70 Posted February 16, 2017 Author Share Posted February 16, 2017 What will you use this for? Usage tracking so that potentially I will provide translations once the userbase grows. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now