Supposing /node/X is in English and /es/node/Y is the corresponding node in Spanish.

When we translate a page in English that links to /node/X the translation should link to /es/node/Y.

We'll implement this functionality in our module in the following manner:

  • All operations will be done when contents is created/edited or translated. No overhead will exist for rendering.
  • Each node will have a 'dirty' flag. This flag will indicate that the node includes links to pages in other languages.
  • When we store translations, our module will attempt to adjust all links in a node. If it manages, it will mark it as clean.
  • At that time, all other 'dirty' nodes will be checked to see if their links should update. The dirty bit will also update at that time.
  • This will also happen when users edit contents (manually edit translations).

The automatic link replacement will be an optional feature of this module.

Comments

brucepearson’s picture

Assigned: Unassigned » brucepearson
Status: Active » Fixed

This has been implemented as described.

Status: Fixed » Closed (fixed)

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