Link to 'translate node' should change the site language
Jaza - June 4, 2007 - 06:47
| Project: | Internationalization |
| Version: | 5.x-2.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
When you're about to create a new translation of a node, and you click on one of the 'translate node' links (in the 'translate' tab for the node), when you click that link, it should change the site's language to the language that you're translating in. This means that when you're writing the translation, and when you publish it and view it, you're seeing it in the correct context, with the whole site translated accordingly.
Attached is a simple patch to accomplish this.
| Attachment | Size |
|---|---|
| translation_link_to_lang.patch | 781 bytes |

#1
I have added the same change to the links on 'admin/content/translation'. See the enclosed patch which is rolled against the December 5, 2007, version of 5.x-2.x-dev.
#2
I have added the patch to the #227550: Patch bundle.
#3
parts of this patch seem to have found its way into the current 5.x-2.x-dev.. (2nd replacement in the patch file)
#4
This looks good and seems to work. However I think it needed some check for the "Interface language depends on content" option.
So I've committed the patch in #1 with that small addition.
Thank you.
#5
Automatically closed -- issue fixed for two weeks with no activity.