WordPress.org

Ready to get started?Download WordPress

Plugin Directory

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.3
Last Updated: 2013-12-30
Active Installs: 10+

Ratings

0 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

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

100,1,1