Osama_Elzero Posted September 9, 2014 Share Posted September 9, 2014 How can i make other language default instead of english In The Languages Support - Page Names Default language homepage URL is same as root URL? I Have Selected -> No - Root URL performs a redirect to: /name/ Then I Edited my homepage -> Setting -> Name I Have 2 Language English -> Default left Blank Arabic -> ar What I Can Do To Make The ar Is The Default One I Tried to add arabic language name in the english field the website is redirected to /ar/ and everything work ok but when i click on english in homepage its not redirect to english because i changed it to ar whats the right way to make website redirect to /ar/ without affecting english language Link to comment Share on other sites More sharing options...
mr-fan Posted September 9, 2014 Share Posted September 9, 2014 Language for users could changed via ->profile->language your-domain.com/processwire/profile/ there you could change the language for the logged in user. or you asking for a multilanguagepage-setup? regards mr-fan Link to comment Share on other sites More sharing options...
reems Posted September 9, 2014 Share Posted September 9, 2014 I suppose you use the Multi language module and LanguageSupportFields. To have another language as default then English, I did a couple things to get it properly working: It depends also if you want your backend also in your default language or only the frontend. 1. Go to Setup - Languages and upload your default language files (in your case Arabic) to the default language if you want the backend also in Arabic. 2. Change the title of the default language, in your case to "Arabic". 3. Add in your case English as extra language and name it "en" 4. Go to Acces - Users - Guest and set the language to "Arabic" In this solution visitors access pages first without /ar/ for the Arabic version and with /en/ if they want the English version. As I recall you have to be carefull changing the default language. You can loose texts on pages you already added. Check also this post: https://processwire.com/talk/topic/5062-switch-default-language-possible/page-2 3 Link to comment Share on other sites More sharing options...
Osama_Elzero Posted September 9, 2014 Author Share Posted September 9, 2014 Language for users could changed via ->profile->language your-domain.com/processwire/profile/ there you could change the language for the logged in user. or you asking for a multilanguagepage-setup? regards mr-fan Thanks iam talking about the website interface not inside the admin panel I suppose you use the Multi language module and LanguageSupportFields. To have another language as default then English, I did a couple things to get it properly working: It depends also if you want your backend also in your default language or only the frontend. 1. Go to Setup - Languages and upload your default language files (in your case Arabic) to the default language if you want the backend also in Arabic. 2. Change the title of the default language, in your case to "Arabic". 3. Add in your case English as extra language and name it "en" 4. Go to Acces - Users - Guest and set the language to "Arabic" In this solution visitors access pages first without /ar/ for the Arabic version and with /en/ if they want the English version. As I recall you have to be carefull changing the default language. You can loose texts on pages you already added. Check also this post: https://processwire.com/talk/topic/5062-switch-default-language-possible/page-2 Thanks For Your Reply Sir this is the first idea i was trying to do but the default lang is disabled you cant edit it if i understand you well see Attached Image Please Link to comment Share on other sites More sharing options...
mr-fan Posted September 9, 2014 Share Posted September 9, 2014 setting is like reems writes under >access>users>guest (=visitors) change the default language on this the default language under >admin>setup>languages couln't changed....your right. 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