olafgleba Posted Thursday at 04:36 PM Posted Thursday at 04:36 PM Hi, there is a (not so small) company website. On launch the default website language was adapted to german ("/"),- with english ("/en/") and chinese ("/zh/") as additions. After merging with another company, the default website language now has to be english ("/") and the other languages as addition ("/de/", "/zh/"). There are several valuable posts about how to change the default language when set up a installation. But unfortunately i can't find any approach to change the default language on existing multilingual sites. Which is not uncommon practice, i suppose. Am i right,- still the only way/approach in PW to handle this is rebuilding the whole page content from scratch? Hard to explain to clients... cheers Olaf
Gideon So Posted Friday at 01:52 AM Posted Friday at 01:52 AM Hi @olafgleba If you are talking about the language when a visitor first visit the site. Take a look at the following. I have just changed the default language of my site. https://processwire.recipes/recipes/change-homepages-default-language/ Gideon 1
olafgleba Posted Friday at 10:37 AM Author Posted Friday at 10:37 AM Hi @Gideon So, thanks, yes, i tried that and it works. Still it feels a bit awkward linking to the main homepage address like https://foo.bar becoming https://foo.bar/en/ in the browser. You lose hierarchy as there are only language segments then. cheers, Olaf
monollonom Posted Friday at 09:11 PM Posted Friday at 09:11 PM After searching on the forum I stumbled upon this thread which seems to have the best attempts at doing what you’re trying to achieve: Maybe you could try one of these solutions?
olafgleba Posted Friday at 11:09 PM Author Posted Friday at 11:09 PM Hi @monollonom, thank you for posting the thread. Editing the language section is the more easy part when changing the default language. If you have plenty of multilingual content, then it gets hard eventually. Therefore, having such a good starting point thanks to @gebeer , e.g. his php script to swap content of language tabs,- this whatever makes it worth the effort. I mostly work on multilingual sites/projects, so this affects me regularly,- its a pity PW doesn't handle this more smoothly. Like other CMF do. 2
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