Jump to content

How can i make other language default instead of english


Osama_Elzero
 Share

Recommended Posts

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

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

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

  • Like 3
Link to comment
Share on other sites

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

post-1889-0-98934800-1410265362_thumb.pn

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...