Hi Team,

User preferred language is Chinees (zh-hans). When I am logging into site URL does not have language prefix. While switching the language on dropdown language for all the langauage its getting translated as expected. When I am switching the language to English (Site Default Language) and its remain as user preferred language.

Note: I am using dropdown_language for language switching.

Kindly help on this.

Regards,
Govindaraju V

CommentFileSizeAuthor
#6 fLDXg.png98.02 KBskaught

Comments

govindpvg created an issue. See original summary.

skaught’s picture

Status: Active » Postponed (maintainer needs more info)

this sounds like may need to adjust/balance your Language Detection Settings differently: /admin/config/regional/language/detection.

  • do you have other contrib modules or custom installed that effect language context?
  • does the user have access (permission) to that translation?
  • is this a Panels page?
skaught’s picture

sorry. missed the connection of the title for this issue:
you do mean on the /user page. - Core does not provide for Translation of user accounts.

suraj_vantagode’s picture

Hi All,
Even I am facing the same issue. When user logged into the site, the path prefix is not updating according to user preferred language. I have raised this in Drupal stack exchange also. please go to below link for more detail on this issue:
https://drupal.stackexchange.com/questions/288806/why-path-prefix-is-always-leading-to-en-instead-of-users-preferred-language

skaught’s picture

do you see a difference when you are using Dropdown Langauge (this module) compared to Drupal cores native block language switcher?

your post above makes no mention of using this module..

lets see if we can separate a core issue apart from this module. separation of concerns.

does this happen you use another contrib switcher like Language Switcher Dropdown

--
from that screen grab: you're Detection settings mean that what language the user picked will be the only language they see — regardless of the path. Your settings are in-correct.

skaught’s picture

StatusFileSize
new98.02 KB

attaching for future ref

govindpvg’s picture

Hi @SKAUGHT,

Which would be correct Language Detection settings ? will be able to share ?

Regards,
Govindaraju V

skaught’s picture

'right' depends on overall aspects of your project. I can't cleanly suggest what that would be..

but... if you look at the link in #4, what is mostly rong there is 'user' as first item. should probably be
1. url
2. selected language
3. interface
4. content language.

as top 4.

'User' -- this really depends on your need. i may guess you could disable it...
'session' and' browser' would probable be last items, if not disabled..

skaught’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

i'm officially closing issue. both sets of issues noted by other devs are project configuration/setup related, not module.

govindpvg’s picture

@SKAUGHT,

As you suggested, Now I have moved the User to first and it's working as expected. problem is the content which is created on Chineese that is displaying as English content.

skaught’s picture

perhaps you should load a block with Drupal Core's Language Switcher and see it the behaviour is the same. In terms of Dropdown Language, i only want to establish it's innocence in the situation (:

i can't quess at how ever your 'content' is being displayed, without basically having your code and db myself.. Then i'm basically working on your project (: