文件名称:yii2-localeurls:URL的自动本地语言管理
文件大小:31KB
文件格式:ZIP
更新时间:2024-03-21 17:47:07
i18n yii2 language-detection PHP
Yii2语言环境URL 通过Yii 2的URL自动进行语言环境/语言管理。 重要信息:如果从版本1.0。*升级,则必须修改配置。 请检查下面的“”部分。 特征 通过此扩展,您可以使用包含如下语言代码的URL: /en/some/page /de/some/page http://www.example.com/en/some/page http://www.example.com/de/some/page 您还可以根据需要配置友好名称: http://www.example.com/english/some/page http://www.example.com/deutsch/some/page 每当您创建URL时,都会自动添加语言代码,并在解析URL时回读该语言代码。 为了获得最佳的用户体验,如果URL中未使用任何语言,则会从浏览器设置中自动检测该语言。 但是,用户仍然可以通过
【文件预览】:
yii2-localeurls-master
----.gitignore(35B)
----README.md(16KB)
----tests()
--------SlugRedirectWithBaseUrlTest.php(143B)
--------SlugRedirectWithScriptNameTest.php(150B)
--------UrlCreationWithScriptNameTest.php(148B)
--------SlugRedirectWithScriptNameAndBaseUrlTest.php(194B)
--------RedirectTest.php(32KB)
--------TestUrlRule.php(2KB)
--------EventTest.php(4KB)
--------UrlManagerWithScriptNameAndBaseUrlTest.php(190B)
--------RedirectWithBaseUrlAndScriptNameTest.php(182B)
--------SlugRedirectTest.php(9KB)
--------UrlCreationTest.php(33KB)
--------UrlManagerWithBaseUrlTest.php(139B)
--------UrlManagerWithScriptNameTest.php(146B)
--------RedirectWithBaseUrlTest.php(135B)
--------RedirectWithScriptNameTest.php(142B)
--------UrlCreationWithBaseUrlAndScriptNameTest.php(192B)
--------TestCase.php(4KB)
--------bootstrap.php(618B)
--------UrlManagerTest.php(10KB)
--------UrlCreationWithBaseUrlTest.php(141B)
----composer.json(654B)
----phpunit.xml.dist(557B)
----UrlManager.php(24KB)
----.travis.yml(251B)
----LanguageChangedEvent.php(338B)