Lilith Glocalization supports two methods.
<div id="hello">
<p class="g11n-lang-fr g11n-content g11n-hidden">Bonjour tout le monde !</p>
<p class="g11n-lang-fallback g11n-content g11n-show">Hello world!</p>
</div>
The script detects the language of the browser to load the page and show the translation without user intervention. We can also buid language switcher.
"fr" ("g11n-lang-fr") corresponds to the target language. The code of a target language must correspond to
ISO 639-1. "fallback" is the default language: it appears if the content of the target language is not available.
<p id="hello" class="translate-g11n" data-g11n-fr="Bonjour tout le monde !">Hello world!</p>
"fr" ("data-g11n-fr") corresponds to the target language.
Glocalization
You can see a demonstration and find tutorial on
Glocalization.
- Upload "lilith-glocalization" to the "/wp-content/plugins/" directory.
- Activate the plugin through the "Plugins" menu in WordPress.
== Frequently Asked Questions ==
== Screenshots ==