markus_blue_tomato Posted March 17, 2022 Share Posted March 17, 2022 foreach ($languages as $language) { echo $language->title; } I have a strange problem. I want to use this code to create a language switcher, but for the current selected language the title is alway empty. /en/ --> "", "de", "es" /de/ --> "en", "", "es" /es/ --> "en", "de", "" It also doesn't work with using $user->language->title But it works with "id" and "name" instead of "title" Any ideas? Link to comment Share on other sites More sharing options...
markus_blue_tomato Posted March 17, 2022 Author Share Posted March 17, 2022 Solved... I saved again the Language Pages and now it works... ? 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