biedert/language-redirect
Composer 安装命令:
composer require biedert/language-redirect
包简介
Language Redirect
README 文档
README
A cookie-free solution for language redirects based on the HTTP_ACCEPT_LANGUAGE header for TYPO3 CMS.
How does it work?
When you call a URL without the language parameter L, the extension will map the HTTP_ACCEPT_LANGUAGE header to the installed system languages and redirect to it. Should also work with all available url encryption extensions (e.g. realurl).
Installation
Simply install the extension via composer
composer req biedert/language-redirect
or download it via th TYPO3 Extension Repository: https://extensions.typo3.org/extension/language_redirect/
Configuration
To map the language codes to the system languages, simply list them in the browserLanguageMatch setup.
In case the HTTP_ACCEPT_LANGUAGE header doesn't match any system language, the extension will redirect to a fallback language uid defined in the extension config (default is 0).
Notice
To make the extension work, make sure you don't have a defaultGetVars setting for the language parameter L:
config.defaultGetVars.L >
统计信息
- 总下载量: 349
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2019-02-18