francoisfaubert/strata-polyglot
最新稳定版本:0.16.419
Composer 安装命令:
composer require francoisfaubert/strata-polyglot
包简介
A localization plugin for Wordpress on Strata.
README 文档
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; ?>
统计信息
- 总下载量: 4.07k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2015-08-27