devel/rubygem-http_accept_language 2.1.1 DragonFly
Rails plugin to extract Accept-Language HTTP header into array
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- MIT
- Categories
- devel, rubygems
- Package size
- 8.1 KiB, 22.6 KiB installed
Description
HttpAcceptLanguage is a gem, which helps you detect the users preferred language, as sent by the "Accept-Language" HTTP header.
The algorithm is based on RFC 2616, with one exception: when a user requests "en-US" and "en" is an available language, "en" is deemed compatible with "en-US". The RFC specifies that the requested language must either exactly match the available language or must exactly match a prefix of the available language. This means that when the user requests "en" and "en-US" is available, "en-US" would be compatible, but not the other way around. This is usually not what you're looking for.
In the other systems
| System | Port | Version |
|---|---|---|
| DragonFly | devel/rubygem-http_accept_language | 2.1.1 |
| FreeBSD | devel/rubygem-http_accept_language | 2.1.1 |
Install
Binary package:
pkg install rubygem-http_accept_language
From DPorts:
cd /usr/dports/devel/rubygem-http_accept_language && make install clean
Dependencies
Run dependencies 2
No port depends on this one.