mutu310 70 Posted February 16, 2017 Posted February 16, 2017 How do I programmatically retrieve the Emby Server setting for the display language please?
ebr 16169 Posted February 16, 2017 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...
mutu310 70 Posted February 16, 2017 Author Posted February 16, 2017 There is a "preferred display language" under "Settings". Please see below. This is the value I'd like to retrieve.
ebr 16169 Posted February 16, 2017 Posted February 16, 2017 Okay, sorry - too many settings . Then that would be accessible via system configuration (IConfigurationManager).
mutu310 70 Posted February 16, 2017 Author 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?
mutu310 70 Posted February 16, 2017 Author Posted February 16, 2017 I think I found it under ISystemConfigurationManager (.Configuration.UICulture)
mutu310 70 Posted February 16, 2017 Author Posted February 16, 2017 What will you use this for? Usage tracking so that potentially I will provide translations once the userbase grows.
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