Plugin Directory

Test out the new Plugin Directory and let us know what you think.
!This plugin hasn’t 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.

Loushou Language Links

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

  1. Either upload the plugin via your admin interface, or unzip the plugin zip file in your /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Begin using your new 'query_var' to determine your current viewing language

Using your 'query_var'

This plugin does not automatically do anything, other than add a url segment to all your dynamically generated internal links. It does however provide a method to determine the current viewing language of your site, based on the url rewriting it has done. To get the current site viewing language abbreviation, simpy use the built-in WordPress function get_query_var('lang'). This function will return the currently determined site language abbreviation, from this plugin. Once you have that information, you can decide what to do with it. Maybe you have a separate 'custom field' that has alternate content of a post, which you would like to display. Or maybe you have a translator API that you can run all your site content through. Or maybe you have some other code that does something special when your site is viewed in a given language. It is up to you.

Requires: 3.6.1 or higher
Compatible up to: 3.8.19
Last Updated: 3 years ago
Active Installs: Less than 10


0 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.