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.

AttachmentSize
translation_link_to_lang.patch781 bytes

#1

TBarregren - February 28, 2008 - 18:59
Version:5.x-2.1» 5.x-2.x-dev

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.

AttachmentSize
translate.patch1.3 KB

#2

TBarregren - February 28, 2008 - 19:04

I have added the patch to the #227550: Patch bundle.

#3

bforchhammer - March 21, 2008 - 16:49

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

Jose A Reyero - April 28, 2008 - 12:02
Status:patch (code needs review)» fixed

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

Anonymous (not verified) - May 12, 2008 - 12:12
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.