5

The default language for my site is Arabic, but the administration bits are in English. This means that for now, the only needed translations are those of labels and the interface.

Earlier I tried to translate some of my content types and found most of them configured like this:

English
Arabic
None (original) Edit

With this message above:

The configuration objects have different language codes so they cannot be translated:

  • node.type.person: en
  • core.base_field_override.node.person.title: ar

I tried changing the language settings for the content type but the language remained set to 'None'. Any idea about how to fix this?

2

1 Answer 1

12

I'm not sure I can help but I had a similar issue. After enabling translation for pages, I got a similar error in admin/structure/types/manage/page/translate:

The configuration objects have different language codes so they cannot be translated:

node.type.page: en
core.base_field_override.node.page.title: pt

I think this happened because I was by mistake in /pt/admin (?).

Anyway, I fixed this (in my case, I always want en), by running the command:

$ drush cset core.base_field_override.node.page.title langcode en
4
  • I am going to try this later. Any idea about what caused your case?
    – Jed_BH
    Commented Mar 24, 2017 at 7:34
  • As I mentioned, I think this happened because I was by mistake in /pt/admin while configuring the title field. Usually I work with the en version (/admin) and this does not occur. Good luck and let me know if it worked.
    – dxvargas
    Commented Mar 24, 2017 at 13:39
  • Related topic in Drupal.org: drupal.org/project/drupal/issues/2909935
    – dxvargas
    Commented Feb 19, 2021 at 23:20
  • 1
    Thanks @dxvargas for the tip! Also to speed-up process I've used bulk search/replace in files in phpStorm with a next filters: - search: ^langcode\: und - replace: langcode: en - file mask: field.storage.* Commented Dec 3, 2021 at 16:32

Not the answer you're looking for? Browse other questions tagged or ask your own question.