zilli Posted January 5, 2017 Posted January 5, 2017 Hello, Forgive this newbie, but I could not find a solution for this "simple" issue. I have a multi-language website and I would like to output the current language's name on my menu. I was able to generate the language switcher/navigation without a problem, but I cannot figure out how to echo the current language. Thanks!
Nils Wiere Posted January 5, 2017 Posted January 5, 2017 Hello Zilli, you should be able to echo the title of the current language like this: echo $user->language->title; You can set the title of the language under Setup->Languages in the backend. Best, Nils 4
zilli Posted January 5, 2017 Author Posted January 5, 2017 Thanks, but that only works with logged used, right? It worked as expected! Thank you!
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