Enables a prepended 'language' segment of all site urls, which can be used to determine the 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
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.15
Last Updated: 3 years ago
Active Installs: Less than 10
Got something to say? Need help?