Jump to content

Recommended Posts

Posted

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!

Posted

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

  • Like 4

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...