Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#10 | admin_menu issu.png | 26.9 KB | awm |
Comments
Comment #1
dropbydrop CreditAttribution: dropbydrop commentedi have the same problem
Comment #2
taitai CreditAttribution: taitai commentedSame problem here but more. On a default RTL language, the admin toolbar goes RTL although admin language is defined as English. Should remain LTR.
Comment #3
lpalgarvio CreditAttribution: lpalgarvio commented+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.
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commented+1
The pages display fine.
However, the Admin Toolbar from the admin_menu module displays in the default language not the admin language.
Comment #5
wulff CreditAttribution: wulff commentedPlease 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.
Comment #6
LarsKramer CreditAttribution: LarsKramer commentedI 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 :-)
Comment #7
LarsKramer CreditAttribution: LarsKramer commentedSorry, 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!
Comment #8
LarsKramer CreditAttribution: LarsKramer commentedJust 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.
Comment #9
awm CreditAttribution: awm commentedsubscribe
Comment #10
awm CreditAttribution: awm commentedWhen 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.
Comment #11
alekiv CreditAttribution: alekiv commentedAfter "Administration menu" cache flush, it shows in administration language.
After page reload it displays in default language again :(
Comment #12
AdamGerthel CreditAttribution: AdamGerthel commentedAdmin 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.
Comment #13
yanni22 CreditAttribution: yanni22 commentedi 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.
Comment #14
knalstaaf CreditAttribution: knalstaaf commentedMake sure to assign the proper language as preferred admin language in
admin/config/regional/language
.Comment #15
caw67 CreditAttribution: caw67 commentedi assign german as admin lanugage, but always englisch is used in the adminmenu. also in the user edit: i can only choose english
Comment #16
killua99 CreditAttribution: killua99 commentedI see the menu in the admin language I select.
Comment #17
phoenix CreditAttribution: phoenix commentedI 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.
Comment #18
phoenix CreditAttribution: phoenix commentedSolved!
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.)
Comment #19
spidersilk CreditAttribution: spidersilk commentedI 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.
Comment #20
Anybody@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.
Comment #21
AnybodyI was wrong, they are not related.
Comment #22
donapis CreditAttribution: donapis commentedI had tried the latest dev. And still this problem not working out.
Comment #23
knalstaaf CreditAttribution: knalstaaf commentedIt 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…
Comment #24
PolHi,
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!
Comment #25
donapis CreditAttribution: donapis commentedHi @Pol,
I had tried the module, but it seem administration toolbar is still displayed in the default language. Not the language we choose.
Comment #26
PolHi,
I think this is related to admin_menu module. I'm still trying to find a proper solution.
Comment #27
PolHi,
I pushed a commit that should translate items from the administration toolbar.
Comment #28
Mike.Conley CreditAttribution: Mike.Conley commentedHi Pol, is your commit in the latest dev branch?
Comment #29
workplaysleep CreditAttribution: workplaysleep commentedin my case it helped to disable client side caching for the admin menu, mentioned here: https://www.drupal.org/node/1498820
Comment #30
dmsmidtI 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.
Comment #31
Mike.Conley CreditAttribution: Mike.Conley commentedAt 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
Comment #32
AnybodyComment #33
AnybodyI'm using https://www.drupal.org/project/administration_language_negotiation and for me it works... perhaps the better alternative?
Comment #34
MahmoodZidan CreditAttribution: MahmoodZidan commented#33 Works like charm, Thanks Anybody for that great module =D
Comment #35
Liam MorlandBased on #31, this seems to be a duplicate of #1498820: Support Administration Language module. The solution in #33 may also be applicable.