Opened 6 years ago

Closed 6 years ago

#8827 closed enhancement (fixed)

Use Accept-Language for badge localization

Reported by: dcf Owned by: dcf
Priority: Low Milestone:
Component: Archived/Flashproxy Version:
Severity: Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

The badge has a lang parameter that lets you choose a single language code. This information should also be taken from the Accept-Language header.

http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4

The lang parameter should override Accept-Language.

Child Tickets

Attachments (1)

0001-Use-navigator.language-for-badge-localization.patch (759 bytes) - added by arlolra 6 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 6 years ago by dcf

Type: defectenhancement

comment:2 Changed 6 years ago by arlolra

Status: newneeds_review

HTTP headers aren't available in JS. You could do an ajax request to document.location but that seems hackish. The attached patch proposes using navigator.language

comment:3 Changed 6 years ago by dcf

Resolution: fixed
Status: needs_reviewclosed

Thanks, merged.

Note: See TracTickets for help on using tickets.