Is it possible to force a drupal multilanguage site to use a specific language based on a user account?

Events happening in the community are now at Drupal community events on www.drupal.org.
iliya's picture

Hello, I've been searching the internet for the answer to this obvious question to no avail.
Hope someone here will help of gives me a clue
Thank you

Comments

Yes, we can.

truyenle's picture

If the site is in multi language already -> under user account page (user/1/edit) -> There is a section called Language settings -> select the language you want for the users -> Whenever users login -> The site should be default in this language.

Remember under admin/settings/language/configure make sure that you check the 3rd checkbox called "Path Prefix with language fallback". This option help to determine the language of the site in the following sequence:
1. Does incoming path begin with path prefix (en, fr, etc)? If no then
2. Does current users have a preferred language? -> this is set in the above step of user account page, if no then
3. Does browser have a preferred language set? if no then
4. Set the site to default language (normally in English if you didn't customize)

Well, hope that help
Truyenle

thank you!

iliya's picture

thank you!

Internationalization

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week