Posted by B-Prod on February 24, 2012 at 9:26am
5 followers
| Project: | Internationalization Views |
| Version: | 7.x-3.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Issue Summary
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.
Comments
#1
#2
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()?
#3
Let's i18nviews does this.
#4
Please submit a patch against i18nviews 7.x-3.x
#5
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...
#6
Hmm, includes/i18nviews_handler_field_node_link_edit.inc is missing in your patch.
#7
Sorry, forgot to add it into GIT...
#8
The updated patch.
#9
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.
#10
I understand. Here is a patch that does not override the original handler.