Neutral language nodes are not found by nodetitle plugin. Just saying what I did to quickly make it work (kind of...), so placed it as a support request.

I changed
$language = array(language_default('language'), '');
to
$language = array(language_default('language'), 'und');
at the freelinking_nodetitle_nid_from_title(&$target) function of plugins/freelinking_nodetitle.inc

Notes:
1- Don't know if adding also '' to $language would still be necessary for non-multilingual sites
2- resulting url (before and after the change) don't reflect the actual content language. MultiLink Redirect sub-module take care of it.

More:
1- I end up with this: added
global $language;
changed the above line to
$langs = array($language->language, language_default('language'), 'und');
and making the necessary changes from $language to $langs

2- This quick fix fails (at least) to set the right link title because it doesn't check for existing translations.

3- Older talk for 6.x versions, see i18n: language (locale) not taken into account for finding title, for example.

Regards,
Luis

Comments

gisle’s picture

Issue summary: View changes
Status: Active » Closed (duplicate)
Parent issue: » #314860: i18n: language (locale) not taken into account for finding title

I am upgrading the older issue to get this fixed in D7, then backported to D6.