Lilith Glocalization provides two simple ways to display post or page in multiple languages.
| Author: | William Top (profile at wordpress.org) |
| WordPress version required: | 3.0.1 |
| WordPress version tested: | 3.8 |
| Plugin version: | 1.0 |
| Added to WordPress repository: | 15-01-2014 |
| Last updated: | 15-01-2014
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://glocalization.384400.com/ |
| Total downloads: | 403 |
![]() Click to start download |
|
Lilith Glocalization supports two methods.
- Block method
<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.
- In-line method
<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.
You can see a demonstration and find tutorial on Glocalization.
