Closed (won't fix)
Project:
Location
Version:
7.x-4.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
7 Apr 2009 at 13:14 UTC
Updated:
6 Jun 2014 at 10:22 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
summit commentedSubscribing, does this module translate location fields like country also?
greetings,
Martijn
Comment #2
zedzed commentedNot 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) :
always, sorry for my english ... i hope you understand me...
Seb
Comment #3
douggreen commentedThis 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.
Comment #4
jose reyero commentedAdded 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
Comment #5
thommyboy commented@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
Comment #6
jose reyero commentedI think I've just fixed the issue
Not for 5.x anymore, no new features for that version.
Comment #8
juves commentedHello
Can you please add this feature to 7 branch?
Comment #9
jose reyero commentedWe are not adding any more contrib module related stuff into i18n. We are providing a hook instead for modules to define their own fields.
Now every module can implement hook_i18n_sync_options(), that can be on its own file 'location.i18n.inc'. Still undocumented but see i18n_sync.modules.inc
So moving to Location module.
Comment #10
juves commentedOk, it work's with Location_CCK, there is a similar issue with "won't fix"
Comment #11
velpan commentedappend this at the end of i18n_sync.modules.inc
Comment #12
tostinni commentedThanks for the snippet, however, you should better put it inside a custom module instead of modifying i18n_sync.
Comment #13
drupalina commentedIs there a solution for this in 7.x ???
I want the City names to be translatable.
I've created a module using code in #11, but nothing changes. The city names are still untranslatable.
Comment #14
morettolss commentedJust try patch #11, it works. Remember to clean cache.