horst Posted July 25, 2016 Posted July 25, 2016 you can do it after the install, if you have installed a single language site profile. Most of us have created their personal starter site profile, I think. It has all settings for default language (inkl.language pack), and the modules, one never can miss, etc. To export a site profile is easy with the site profile exporter module. 2
KarlvonKarton Posted July 25, 2016 Posted July 25, 2016 1 hour ago, horst said: Most of us have created their personal starter site profile, I think. Thank you for the directions. Exactly what I needed. I just re-installed the multi language option. Renamed the default language English (en) to Dutch (nl). Installed a dutch language pack over the old English one. Deleted the German and Finnish pre-installation and I installed French as the second language. Before I forget: I changed the page names on the homepage too (in the settings tab). Except for some minor translations issues that can be fixed, there is no sign of English anymore. 2
mikeuk Posted February 26, 2017 Posted February 26, 2017 On 13/03/2015 at 9:29 AM, horst said: A bit OT, but if you can plan the languages hirarchy right from the start of a new site, you can do it this way: enable languages support set Title / Label of the default language to your desired none english native language, (e.g. 'Deutsch' (German)) drop in the none english language pack (for admin backend) into the default language, (e.g. german langpack) add a new language to it and drop in a language pack for any none english language or simply don't drop in a language pack to get the english version (but not as the default one!) As a nice sideeffect every new user in your system gets the native language per default without have it to select from the list. So, yes, this is no solution if you once have set it up and need to switch the default language afterwards, but just want to note it. Thanks horst. Couldn't work out how to do this, and was early enough in the process to re-start. 1
Krii Posted June 13, 2019 Posted June 13, 2019 Hi. It is middle of 2019 and I wonder if there any new solutions to change default language in PW? I use v.3.0.123 and tried the module from above with no luck.
gebeer Posted May 20, 2021 Posted May 20, 2021 I took @bcartier's code from this post and made a configurable module from it. EDIT: to make it work, you need to follow 2 steps (thanks to @PWaddict for pointing it out): Add a page name to the default language on the Home page On Languages Support - Page Names module at "Default language homepage URL is same as root URL?" select "No - Root URL performs a redirect to: /name/" You can find the module attached. I can confirm that the redirection to a non-default language works on PW 3.0.172 DefaultFrontendLanguage.zip 5 3
lenoir Posted December 20, 2021 Posted December 20, 2021 On 5/20/2021 at 9:47 AM, gebeer said: I took @bcartier's code from this post and made a configurable module from it. You can find the module attached. I can confirm that the redirection to a non-default language works on PW 3.0.172 DefaultFrontendLanguage.zip 1.35 kB · 49 downloads Thanks Gebeer, that was definitely a time saver. Works fine for me. Couldn't go into the trouble of swapping languages by default, not with all content already up there.
PWaddict Posted February 29, 2024 Posted February 29, 2024 On 5/20/2021 at 10:47 AM, gebeer said: I took @bcartier's code from this post and made a configurable module from it. You can find the module attached. I can confirm that the redirection to a non-default language works on PW 3.0.172 DefaultFrontendLanguage.zip 1.35 kB · 259 downloads I just installed the module on PW 3.0.229 and I chose the alt language as default but there is no redirect. EDIT: I had to do few more things to actually work: Add a page name to the default language on the Home page On Languages Support - Page Names module at "Default language homepage URL is same as root URL?" select "No - Root URL performs a redirect to: /name/" 1
gebeer Posted February 29, 2024 Posted February 29, 2024 1 hour ago, PWaddict said: I just installed the module on PW 3.0.229 and I chose the alt language as default but there is no redirect. EDIT: I had to do few more things to actually work: Add a page name to the default language on the Home page On Languages Support - Page Names module at "Default language homepage URL is same as root URL?" select "No - Root URL performs a redirect to: /name/" Thank you for pointing it out. I added these instructions to my original post. 1
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