francoisfaubert / strata-polyglot
This package is abandoned and no longer maintained.
No replacement package was suggested.
There is no license information available for the latest version (0.16.419) of this package.
A localization plugin for Wordpress on Strata.
Package info
github.com/francoisfaubert/strata-polyglot
Type:wordpress-plugin
pkg:composer/francoisfaubert/strata-polyglot
0.16.419
2016-04-18 13:33 UTC
Requires
- php: >=5.4
This package is not auto-updated.
Last update: 2020-01-24 15:37:06 UTC
README
Configuration
Declare your application locales under ~/config/strata.php. You can specify the url key as well as the locale code. It is important that the locale code follows ISO standards. It must have either two characters (en) or be the complete version containing the country information (en_US).
<?php $strata = array( "routes" => array(), "custom-post-types" => array(), "i18n" => array( "textdomain" => "my_website", "default_locale_fallback" => true, "locales" => array( "en_CA" => array("nativeLabel" => "English", "default" => true), "fr_CA" => array("nativeLabel" => "Français", "url" => "francais"), "pi" => array("nativeLabel" => "Pirate"), ) ) ); return $strata; ?>