Comments (2)
Examples of Accept-Language Header Values
- A single language, English: Accept-Language: en
- English preferred, but French is acceptable: Accept-Language: en, fr
- English preferred, French as a second choice, and any other language as a less preferred option: Accept-Language: en;q=1, fr;q=0.9, *;q=0.8
- English as used in the United States specifically, with British English as a second choice: Accept-Language: en-US, en-GB
- Preference for Spanish from any region, but with a higher preference for Spanish specifically from Spain: Accept-Language: es-ES;q=1, es;q=0.9
I haven't found any real evidence on how the browser specifies when to use
- Neutral culture: A culture that has a specified language, but not a region (for example "en", "es").
- Specific culture: A culture that has a specified language and region (for example, "en-US", "en-GB", "es-CL").
But my findings seems to suggest when the browser provides a Specific culture, it also provides the neutral as a fallback.
from nopcommerce.
In the admin area when you edit a Language, inside the view NopCommerce have this piece of code
var cultures = System.Globalization.CultureInfo.GetCultures(System.Globalization.CultureTypes.SpecificCultures)
maybe it should be
var cultures = System.Globalization.CultureInfo.GetCultures(System.Globalization.CultureTypes.NeutralCultures)
i have never encountered the need to have two languages for example English (en-GB) and English (en-US).
I don't say there isn't cases when this feature is needed, but it seemes like edge cases to me.
from nopcommerce.
Related Issues (20)
- Language inconsistent HOT 1
- Product Attribute value not found while it has value HOT 3
- Rename a source code comment
- Summary block is not displayed on the order list page in the admin area HOT 1
- prod.js HOT 1
- Discount requirement HOT 5
- Add the "sitemap" folder to Docker HOT 1
- Improve Database Backup Feature HOT 1
- Error when importing new customers HOT 1
- Enable Transit time on UPS plugin
- Upgrade Npgsql for CVE-2024-32655 security patch HOT 1
- Drop "HasTierPrices" product column
- Drop "HasDiscountsApplied" product column
- Schedule tasks. Use async timer
- Omnisend. Send the product discount for a single product in the order events HOT 1
- Error printing a pdf on linux HOT 2
- OveriddenPrice handled as AdditionalCharge when DisplayFromPrices=true
- Upgrading issue. Refactor "Newsletter" migration to work with large number of records HOT 3
- Don't validate an existing shopping cart item attribute if it doesn't have selectable values HOT 1
- No need to implement ILocalizedEntity on the ProductAttributeValuePicture class HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nopcommerce.