The i18n node module offer an option (i18n_node_translation_switch) that creates links to translated versions of a node in the target language, on the node translation overview page.

It would be great that such variable is used in the node edit link views handler to reflect such behavior.


Status:Active» Needs review
new905 bytes

Very rarely does views use module_exists for contrib modules (devel and advanced_help).
Couldn't i18n_node just extend views_handler_field_node_link_edit and override render_link()?

Project:Views» Internationalization Views
Component:node data» Code

Let's i18nviews does this.

Status:Needs review» Needs work

Please submit a patch against i18nviews 7.x-3.x

Status:Needs work» Needs review
new1.42 KB

The attached patch implements such functionality.

This patch may wait for #1551688: Drop 'Switch interface for translating' option (Reconsider) to be eventually fixed, since the 'interface switching' option has been removed from the 2 last i18n releases...

Status:Needs review» Needs work

Hmm, includes/ is missing in your patch.

Status:Needs work» Needs review
new3.41 KB

Sorry, forgot to add it into GIT...

The updated patch.

I'm not sure if we should switch the handler.
For most other cases we have announced a separate one.
Note that if other modules try to switch the handler, there's a clash. Extensibility is limited.

I understand. Here is a patch that does not override the original handler.

Issue summary:View changes

The problem still exists and I think the patch is really important. Does it work for all of you?