From Google Documentation:

If you have multiple language versions of a URL, each language page in the set must use rel="alternate" hreflang="x" to identify all language versions including itself. For example, if your site provides content in French, English, and Spanish, the Spanish version must include a rel="alternate" hreflang="x" link for itself in addition to links to the French and English versions. Similarly the English and French versions must each include the same references to the French, English, and Spanish versions.

In i18n_hreflang_init() ... unset($translations[i18n_langcode()]); should comment it.

Comments

Cyclodex’s picture

Version: 7.x-1.0-alpha1 » 7.x-1.x-dev
Assigned: Unassigned » Cyclodex

That's true, I will update the code related to that.

Cyclodex’s picture

Status: Active » Needs review

I fixed this in this commit.
Please test and review. (use development release)

jose reyero’s picture

Status: Needs review » Fixed

Ok, then I guess this is fixed.

Cyclodex’s picture

Yes, I just wanted to wait for someone verifying it... :)

Status: Fixed » Closed (fixed)

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