Hi,

Is there any reason why we do not use a language negotiation in this module ?

Just as a proof of concept, I wrote a module that does the job: https://github.com/drupol/administration_language_negotiation

The module is available for Drupal 7 and Drupal 8.

Here's some screenshots:

Let me know what you think about it.

Thanks.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Pol created an issue. See original summary.

Pol’s picture

Issue summary: View changes
donapis’s picture

Hi,

I had tried the module, but it seem administration toolbar is displayed in the default language. Not the way we want.

Pol’s picture

Hi,

I think this is related to admin_menu module. I'm still trying to find a proper solution.

donapis’s picture

Oh i see, i'll try disable the admin_menu and see if this works.

Pol’s picture

Hi,

I pushed a commit that should translate items from the administration toolbar.

Can you try and report back ?

donapis’s picture

Hi,

I had tried the latest commit. Unfortunately, it does not solve the problem.

Pol’s picture

Hi,

Are you sure ? A couple of people already tried it and it was working. Are you sure you have the latest dev version ?

Have you configured the language negotiation properly ?

It must be the first in the list, see the screeshot.

donapis’s picture

Hi,

Yeah. I'm using the current dev and configured it properly.
Ok, the module is working perfect in admin pages, but if not in admin pages, let says in the front page, the administration toolbar is using the default language set.

Pol’s picture

Hi,

A working fix is about to be released but before I'm releasing my module as a new project as I didn't had any feedback from the maintainer of this module.

Liam Morland’s picture

Status: Active » Postponed (maintainer needs more info)

There is no D8 version of this module, so I would welcome yours to be the successor in D8.

Liam Morland’s picture

Status: Postponed (maintainer needs more info) » Fixed

This is implemented in Administration Language Negotiation module.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.