Add locations in Synchronize translations

zedzed - April 7, 2009 - 13:14
Project:Internationalization
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Just add locations synchronization when translate content.
In i18sync.module on line 400 :

if (module_exists('location')) {
    $options['locations'] = t('Location settings');
}

that works perfectly.

#1

Summit - April 8, 2009 - 12:09

Subscribing, does this module translate location fields like country also?
greetings,
Martijn

#2

zedzed - April 22, 2009 - 14:24

Not translate location, just synchronize.
If you add this code, a new option is in content management. When you edit content type, new option "Location settings" is in Workflow settings >Synchronize translations.
If you check this, locations informations are synchronized between translated node.
In fact, just copy $node->locations information.

i18sync already synchronize data from other module (i18nsync.module line 393) :

if (module_exists('comment')) {
    $options['comment'] = t('Comment settings');
  }
  if (module_exists('upload')) {
    $options['files'] = t('File attachments');
  }

always, sorry for my english ... i hope you understand me...

Seb

#3

douggreen - May 12, 2009 - 22:59
Status:active» needs review

This works great. Attached is the 5.x patch file. I'd mark it RTBC except I'm attaching a 5.x patch and the issue version is 6.x. Someone should attach a patch for 6.x and mark the status RTBC.

AttachmentSize
426294.patch 481 bytes

#4

Jose Reyero - May 18, 2009 - 09:36
Version:6.x-1.0» 5.x-3.x-dev
Status:needs review» patch (to be ported)

Added the location field to 6.x, so re-tagging this one for 5.x

Thanks.

About the 5.x version, that one is on maintenance mode, no new features planned (Unless someone wants to take care of that branch and wants to test and commit these small patches there..)

However, I'd strongly encourage everybody to upgrade to 6.x

#5

thommyboy - July 14, 2009 - 19:59

@Jose Reyero

i use the newest 6.x release and the code you mentioned is included in the i18sync.module
but I can't see any setting for location in the "synchronise translations" sections for the contenttype
and lon/lat are not synchronised into translations?

any idea?
regards tom

#6

Jose Reyero - November 6, 2009 - 14:03
Version:5.x-3.x-dev» 6.x-1.x-dev
Status:patch (to be ported)» fixed

I think I've just fixed the issue

Not for 5.x anymore, no new features for that version.

#7

System Message - November 20, 2009 - 14:10
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.