]> git.plutz.net Git - shellwiki/blob - parsers/60_translation_links.sh
Merge commit 'be3b0b1f0ea6b499b79122bcf159b5a2d7d92228'
[shellwiki] / parsers / 60_translation_links.sh
1 #!/bin/sh
2
3 if [ "$LANGUAGE" != "$LANGUAGE_DEFAULT" ]; then
4   sed -E 's;(<[^>]+ )href="((/[^"/]+|[^"/]+[^:/]|)/([^"/]+/)*)"([^>]*>);\1href="\2:'"${LANGUAGE}"'"\5;g'
5 else
6   cat
7 fi