Inxentas Posted March 26, 2020 Share Posted March 26, 2020 I'm updating a website that is about a year old. The site has two languages: Dutch (default) and English. Now the clients wants English to become the default language. The site has a ton of translations already, so changing the default language in the backend is not really an option. So I'm looking for a way to simulate that behaviour, but in my experience doing it with redirects will lead to messy and unwanted behaviour. Can anyone tell me what the proper way of doing this is? Link to comment Share on other sites More sharing options...
bernhard Posted March 26, 2020 Share Posted March 26, 2020 Hello @Inxentas have you had a look at these topics? https://www.google.com/search?q=site:processwire.com+change+default+language Link to comment Share on other sites More sharing options...
horst Posted March 26, 2020 Share Posted March 26, 2020 This seems to be working: 1 Link to comment Share on other sites More sharing options...
Inxentas Posted March 27, 2020 Author Share Posted March 27, 2020 Thanks guys, but I'm indeed aware how Google works ? and had hoped to find a less hacky way of doing things then straight up SQL. The weird this is that when I try to collect the language setting from a user via a selector and $pages, I don't get the actual field value - I get the value in the $user object instead. Something that works around this would also work well for me. Link to comment Share on other sites More sharing options...
donatas Posted February 12, 2021 Share Posted February 12, 2021 Hi. Something from this thread has worked for me in the past - https://processwire.com/talk/topic/9322-change-default-language-for-homepage/?do=findComment&comment=89925 1 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