Closed
Bug 52925
Opened 25 years ago
Closed 20 years ago
Cannot set '*' as Language
Categories
(Core :: Internationalization, defect, P5)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: mozilla, Assigned: smontagu)
Details
(Keywords: intl)
RFC 2616 (HTTP/1.1) allows the wildchar * for 'Accept-Language'. I'm unable to
add * to the language preferences.
Updated•25 years ago
|
QA Contact: sairuh → teruko
Comment 1•25 years ago
|
||
mozilla@bjoernsworld.de - where exactly are you attempting to set this? The
Preferences UI?
Gerv
Comment 2•25 years ago
|
||
Closing since their has been no response from author. If anyone can figure this
out we can reopen it.
Status: UNCONFIRMED → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
| Reporter | ||
Comment 4•24 years ago
|
||
Well, I've assigned it to the component called 'preferences' so I thought it
must be quite obvious where I'm attemping to configure this, yes, the
preferences UI, there is no other function that exhibits such a functionality.
It's still impossible to add '*' as a language.
Status: VERIFIED → UNCONFIRMED
Resolution: INVALID → ---
Comment 5•24 years ago
|
||
Isn't language * implied? What would adding it to the list actually mean? I
have a feeling this is invalid.
| Reporter | ||
Comment 6•24 years ago
|
||
RFC 2616:
[...]
14.4 Accept-Language
The Accept-Language request-header field is similar to Accept, but
restricts the set of natural languages that are preferred as a
response to the request. Language tags are defined in section 3.10.
Accept-Language = "Accept-Language" ":"
1#( language-range [ ";" "q" "=" qvalue ] )
language-range = ( ( 1*8ALPHA *( "-" 1*8ALPHA ) ) | "*" )
Each language-range MAY be given an associated quality value which
represents an estimate of the user's preference for the languages
specified by that range. The quality value defaults to "q=1". For
example,
Accept-Language: da, en-gb;q=0.8, en;q=0.7
would mean: "I prefer Danish, but will accept British English and
other types of English." A language-range matches a language-tag if
it exactly equals the tag, or if it exactly equals a prefix of the
tag such that the first tag character following the prefix is "-".
The special range "*", if present in the Accept-Language field,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
matches every tag not matched by any other range present in the
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Accept-Language field.
^^^^^^^^^^^^^^^^^^^^^
[...]
And no, it isn't implied. If the user agents sends
Accept-Language: de
a document with
Content-Language: en
is defined as not acceptable. I for example use
Accept-Language: de;q=1.0, en;q=0.7, *;q=0.1
So documents in all languages are acceptable, but I prefer english or better
german.
Comment 8•24 years ago
|
||
->i18n.
Assignee: matt → yokoyama
Component: Preferences → Internationalization
QA Contact: teruko → andreasb
Comment 10•24 years ago
|
||
HTTP1.1 does not specify how user agent's ui should be. We could chose to add UI
to allow '*' or NOT.
Reassign to jbeteak and mark this bug as "P5"
Assignee: ftang → jbetak
Priority: P3 → P5
Comment 11•24 years ago
|
||
accepting for "future"
Status: NEW → ASSIGNED
Target Milestone: --- → Future
Comment 12•24 years ago
|
||
jbetak's contract is up. Bulk move bugs to ftang
Assignee: jbetak → ftang
Status: ASSIGNED → NEW
Updated•24 years ago
|
Status: NEW → ASSIGNED
Comment 13•23 years ago
|
||
"Mozilla/5.0 (Windows; U; Win95; en-US; rv:1.2a) Gecko/20020910"
I do not think that this is a UI only issue:
By default, the "*" is not sent by Mozilla (in HTTP/1.1 with other languages
defined, at least).
For sure, RFC2616 does not define UI issues.
But the question remains:
Should Mozilla be able to send "*" as the last accepted language ?
The answer seems to me to be yes;
Then the user should have a mean to configure this behaviour.
NB: Could be 'user.js"(!?), or a check box on Languages, or...
PS: I don't know if the lack of "*" is a big deal or not.
Comment 14•21 years ago
|
||
-> to default owner (rather than ftang's WONTFIX)
Assignee: ftang → smontagu
Status: ASSIGNED → NEW
Target Milestone: Future → ---
| Assignee | ||
Comment 15•20 years ago
|
||
WONTFIX. You can always add "*" to intl.accept_languages in about:config, but I wouldn't recommend it: if no languages match you are probably better off with a default version than with whichever version is last in the list, which is what will be served if "*" is present.
Status: NEW → RESOLVED
Closed: 25 years ago → 20 years ago
Resolution: --- → WONTFIX
Comment 16•20 years ago
|
||
The "default version" is typically a 406 error page. But well, if you insist that the UI should be less flexible and less extensible than in Opera, Amaya, Internet Explorer, and other browsers, so be it. Good it took you just 7 years
to make that decision.
You need to log in
before you can comment on or make changes to this bug.
Description
•