Bunny’s Language Linker Bunny’s Language Linker

Bunny’s Language Linker

Created by: Stephanie Booth

Rating:
Downloaded: 2k times

This plugin assumes you have a site in two or more languages, and that you are using a separate WordPress install for each language. It helps you create links between the same pages in different
language versions.

You should have a pattern of parallel sites with urls like http://stephanie-booth.com/en/, http://stephanie-booth.com/de/, http://stephanie-booth.com/fr/. Maybe the page
http://stephanie-booth.com/en/about is equivalent to the page http://stephanie-booth.com/fr/a-propos. The plugin adds a DBX box in the edit/create page admin form, named “Other Language Slugs”. In
this case, you’d edit the “about” page, and paste the fr slug (“a-propos”) in the appropriate field.

The plugin will then display a small link to the page in the other language at the bottom of your page, or in your menu bar if you’re using a Sandbox-based theme.

Careful! This only works for Pages, not posts!

For intelligent user redirection when they land on the home page, you might want to try using the technique described here: http://climbtothestars.org/archives/2007/12/28/browser-language-detection-and-redirection/

Future Development

Here’s what I’d like this plugin to do, someday:

  • automatically capture URLs like http://stephanie-booth.com/en/a-propos and redirect them to http://stephanie-booth.com/en/about (that’s what happens when people edit URLs directly, just replacing
    the language code — I do it all the time)

Screenshots

  • Page editing screen with Language Linker installed.
  • What the link looks like at the end of the post.

Categories

Get New Themes & Resources