I had to enable multilingual content in order to be able to match existing content in Russian with the correct English node. But then all of a sudden my nodes say "Language: English"

It is a great idea to be able to show the language when viewing content, but since it wasn't shown before enabling this sub-module it now requires me to go to admin/structure/types/manage/media/display and all other multilingual content types and set them to hidden.

I also noticed when changing the display option to hidden that the language field name may show up in another language at random, sometimes Russian sometimes Romanian while the rest of the admin page is in English.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Zarevac’s picture

Yes, I have the same issue. I went into content types and put the language field on hidden but it still appears for some reason. So I do not know if there are any other ways to remove this. Because it only shows on the frontpage but when I click on a node it dissapears.

Jose Reyero’s picture

Category: bug » feature
webflo’s picture

Version: 7.x-1.1 » 7.x-1.x-dev
webflo’s picture

Status: Active » Postponed

Afaik this is not possible in D7. There is a patch around for Drupal 8. #1256368: Add 'visible' key to hook_field_extra_fields()

jorisx’s picture

you need to be in the language natural admin mode, so setting the switch to hide will work via:
/admin/structure/types/manage/page/display

and will not work when you set the switch to hide via:
/nl/admin/structure/types/manage/page/display or /en/admin/structure/types/manage/page/display

iamEAP’s picture

Status: Postponed » Needs review
FileSize
317 bytes

I'm going to re-open this to encourage folks to test out the patches posted in the aforementioned issue in order to speed up this API addition in core: #1256368: Add 'visible' key to hook_field_extra_fields()

Also adding a patch for i18n that would handle this; note that it depends on patch #14 in the above issue.

Jose Reyero’s picture

Status: Needs review » Postponed

Ok, but still 'postponed' until the core patch gets in.

sergeis’s picture

#5 worked like magic for me!