The administration toolbar at the top of the page, when logged in as an administrator, is displayed in the default language, not in the selected administration language.

CommentFileSizeAuthor
#10 admin_menu issu.png26.9 KBawm
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dropbydrop’s picture

i have the same problem

taitai’s picture

Same problem here but more. On a default RTL language, the admin toolbar goes RTL although admin language is defined as English. Should remain LTR.

lpalgarvio’s picture

+1

if you configure admin_language to work only in admin and admin/*, admin module will change to the right language once you reach those pages.

but not in frontpage or other pages.

Anonymous’s picture

+1
The pages display fine.
However, the Admin Toolbar from the admin_menu module displays in the default language not the admin language.

wulff’s picture

Assigned: Unassigned » wulff

Please test the latest D7 development snapshot, which will be available within 12 hours. It contains fixes for both the core toolbar and admin_menu modules.

LarsKramer’s picture

I have tested the latest version, and it works. Thanks.
It would be nice to have the toolbar items shown in the admin language on all pages. But that's more like a minor feature request :-)

LarsKramer’s picture

Status: Active » Fixed

Sorry, it seems I managed to download the old dev version yesterday (should have paid more attention to the note "available within 12 hours"). I got the latest one now, and the language of the toolbar is now the same on all pages. So setting to fixed. Good work!

LarsKramer’s picture

Status: Fixed » Active

Just a second thought: I don't think anyone would want not to have the toolbar in the admin language (when an admin language is selected). So I suggest setting its default value to "Enabled", and maybe even removing it entirely from the settings form.

awm’s picture

subscribe

awm’s picture

FileSize
26.9 KB

When you have a default RTL language the tool bar comes RTL despite setting the admin language to English and enabling the" Use administration language for the core toolbar ". See screen shot for demonstration.

alekiv’s picture

After "Administration menu" cache flush, it shows in administration language.
After page reload it displays in default language again :(

AdamGerthel’s picture

Admin menu caches the menu items which is why it doesn't work. If you flush cache on front-end it will use that language and if you flush cache on backend it will start using the admin-language again.

yanni22’s picture

i have the opposite problem:

when i translate a page from english to german the whole admin changes into german, but i want it to remain in english. how do i do it ? the default is english on my site.

knalstaaf’s picture

Make sure to assign the proper language as preferred admin language in admin/config/regional/language.

caw67’s picture

i assign german as admin lanugage, but always englisch is used in the adminmenu. also in the user edit: i can only choose english

killua99’s picture

Status: Active » Reviewed & tested by the community

I see the menu in the admin language I select.

phoenix’s picture

I have the same problem. When on an admin page the admin_menu is in the administration language selected. When going to a normal page, I get the admin_menu in the default language. Not the behavior I would expect... I would like to get the admin_menu always in the administration language.

phoenix’s picture

Solved!
Go to admin/config/regional/language/admin_language and set "USE ADMINISTRATION LANGUAGE IN THE ADMINISTRATION MENU" to enabled. (the last option in the configuration screen.)

spidersilk’s picture

Issue summary: View changes

I upgraded this module to the latest dev version on a site I'm working on, but it still doesn't affect the admin menu. All the items that were failing to show up in the admin language before still are (mainly the ones in the menu under the home icon (flush all caches, run cron, etc.), and the "add content" item under the Content menu). And yes, I made sure I had enabled "Use administration language in the administration menu", and cleared caches. Even when I'm on an admin page, those items in the admin menu appear in French if the "fr/" is in the URL. Basically the upgrade doesn't appear to have changed anything at all.

Anybody’s picture

@All: Please check if you have the same problem on the user edit form as described here:
#2146253: Default administration language on user edit page shows as English, even if another language is choosen. I think they may be related and based on the same problem.

Anybody’s picture

I was wrong, they are not related.

donapis’s picture

Status: Reviewed & tested by the community » Needs work

I had tried the latest dev. And still this problem not working out.

knalstaaf’s picture

Priority: Normal » Critical

It works for a second when you clear the cache, but right from the moment you go to another page, it's the default language again…

Pol’s picture

Hi,

I'm trying to find a valid solution for this issue.
Please, have a look at #2847349: Same module based on a language negotiation and let me know if it works for you.

Thanks!

donapis’s picture

Hi @Pol,

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

Pol’s picture

Hi,

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

Pol’s picture

Hi,

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

Mike.Conley’s picture

Hi Pol, is your commit in the latest dev branch?

workplaysleep’s picture

in my case it helped to disable client side caching for the admin menu, mentioned here: https://www.drupal.org/node/1498820

dmsmidt’s picture

I still have the problem, even when admin_menu's client side caching is disabled.

Edit: sorry, I was confused due to the responses here. The main issue is not about the Admin Menu module menu bar but the core Toolbar version.

Mike.Conley’s picture

At long last I found a fix for this issue, and it's actually a patch for admin_menu instead of admin_language: https://www.drupal.org/node/1498820#comment-12074110

Anybody’s picture

Anybody’s picture

I'm using https://www.drupal.org/project/administration_language_negotiation and for me it works... perhaps the better alternative?

MahmoodZidan’s picture

#33 Works like charm, Thanks Anybody for that great module =D

Liam Morland’s picture

Status: Needs work » Closed (duplicate)

Based on #31, this seems to be a duplicate of #1498820: Support Administration Language module. The solution in #33 may also be applicable.