Loushou Language Links

Enables a prepended 'language' segment of all site urls, which can be used to determine the current viewing language.

Author:Loushou (profile at wordpress.org)
WordPress version required:3.6.1
WordPress version tested:3.8
Plugin version:0.1-beta
Added to WordPress repository:30-12-2013
Last updated:30-12-2013
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:http://quadshot.com/
Total downloads:690
Active installs:10+
plugin download
Click to start download

This plugin allows you to prepend a language abbreviation to all your site urls. When a user visits your site via a given language url, all internal links on your site are rewritten to use that language, keeping the user viewing a specific language throughout their entire experience. This mehtod does not require that you end users have cookies enabled. It also does not require that your end users have javascript enabled. This strictly uses the url to determine the current site viewing language.

What this plugin DOES do:

  • prepends a language segment to most site links (ie: http://example.com/en/12/21/2012/end-of-the-world/)
  • adds a query variable which your theme or other plugins may check for, to determine what to display for a given site language
  • rewrites all dynamically generated, internal links, to include the current viewing language

What this plugin DOES NOT do:

  • automatically translate your content
  • modify links embeded in you post content
  • place the language segment in any other location of the url, other than the beginning

Short History

This plugin was derived from the resulting investigation of a StackOverflow question I answered. My research and testing showed that WordPress does not have a built in way to allow a language segment of the url. More importantly, there is no really easy way to define custom url segments, other than endpoints, without significant workaround. As such, I may find that this plugin morphs into something bigger than just language url segments. But, for now at least, that is what it is.