Website uses field entity translation to serve Czech (the default) and English language content. When editing node content, the CKEditor Link module saves internal links in the format /node/[nid] and is rendering them in a fully aliased, language-prefixed format - but only in one language (Czech), regardless of the currently selected language.

Current environment:

  • CKEditor Link 7.x-2.2
  • CKEditor 3.5.2.6450
  • Wysiwyg 7.x-2.1
  • Drupal 7.14

I've tried moving the CKEditor Link Filter to the top and bottom of the list of text format filters, but did not see any change in behavior. Even after switching the default site language to English, the URLs were still always rendered with the Czech prefix and alias.

Content language detection is currently set to first check the interface language (determined by URL path prefix) and then by URL path prefix, though I've tried having content detection set to URL first and had the same results. Switching languages using the 'Language switcher (Content)' block displays the correct translated content; only the internal path URLs formatted by CKEditor Link filter do not change.

I've run out of ideas of what to try next and hadn't seen a similar issue reported. I've followed all the steps outlined in the README. Hopefully it is a configuration step I missed rather than a bug, but I'm not seeing it. Any suggestions would be greatly appreciated. Thanks for your help.

CommentFileSizeAuthor
#6 ignore_node_language-1628954-6.patch665 bytesanrikun

Comments

anrikun’s picture

Can you send me a link to your site? If so, use my contact form (do not post it here).
Is there a way I could access your site as an admin?

wnicklin’s picture

Thanks for the fast reply. I will set up an account for you and a link to the site.

wnicklin’s picture

Category: support » feature

Changing status to feature request - CKEditor Link doesn't support the entity translation module at this time.

anrikun’s picture

Category: feature » support

@wnicklin: read my last mail. Could you try what I wrote?

anrikun’s picture

Title: CKEditor Link filter ignoring current language selection » Add support for the Entity translation module
Version: 7.x-2.2 » 7.x-2.x-dev
Category: support » feature
Status: Active » Closed (won't fix)

@wnicklin:
The problem is that Entity translation translates fields, not nodes, but still set a language (non-UND) to the node itself.
IMHO, this does not make sense. Entity translation should leave node (core database field) language to UND and keep track of the source language of node fields in a separated database field.
As Entity translation is still in an alpha stage, I suggest you post an issue about this in the Entity translation issue queue.
I'm marking this issue as "won't fix" for now. Feel free to reopen if you get more information.

anrikun’s picture

StatusFileSize
new665 bytes

@wnicklin:
In the meantime, use this patch. It should fix your problem.

wnicklin’s picture

@anrikun:

The patch solved the problem for me.
I'll follow up on the entity translation issue queue if anything further is needed.

Thanks again for all your help. Great module.

tumesch’s picture

Status: Closed (won't fix) » Active

I was hit by the same incompatibility with Entity Translation, meanwhile at version 7.x-1.0-beta2.

My case: German site, prefix 'en' for English pages. Could not get English internal links to work with translated fields. After the above patch everything plays nicely.

As the Entity Translation module will be increasingly prevalent - it is already part of D8 core, I reopen this feature request.

@anrikun: Could you implement this patch as configuration item?

Thanks for all your work!

anrikun’s picture

Status: Active » Closed (duplicate)

@tumesch: actually, this is now a duplicate of #1875720: Support nodes translated with Entity Translation that provides a patch to review.