Closed (fixed)
Project:
Link
Version:
6.x-2.9
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
17 Sep 2009 at 00:02 UTC
Updated:
6 Oct 2011 at 04:01 UTC
I have a website in two languages using i18n - there is a content type for events that has a field for a link to a map to the event. I would like this link text to always appear as "Map of event location" in English, but as the same text in Spanish when we're on the Spanish side of the site. Is this possible?
Comments
Comment #1
iNade commentedSubscribing.
Comment #2
fmjrey commentedI also would like to be able to localize link title (or anchor text to be precise).
Comment #3
jcfiala commentedI'm not really sure how to do the localizing - it was my thought that the cck module handled that for fields if you're using localization. Anyone able to point me to helpful resources, that would be nice.
Patches are quite welcome too!
Comment #4
dafederThe text needs to be run through the t() function to make it available to the translation system. So, if you just add the t() function anywhere you return something like $element['#item']['display_title'] it should become translatable.
Comment #5
dafederFor instance:
Comment #6
iNade commentedSo what about this, six month later ?
Just asking.
Comment #7
mxtPlease, I need this feature too.
Like fmjrey said, there have to be the possibility to localize link title (or anchor text to be precise).
Is the example posted by dafeder enough to implement this feature?
Thank you very much for your work!
Comment #8
mxtI think this issue has to be marked as BUG because, de facto, this module cannot be used in multilingual websites.
Comment #9
mortician commentedAnother solution?
Comment #10
dqdfixed in latest dev. please report back fo any leftovers.