Opened 7 years ago

Closed 7 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:


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.

The lang parameter should override Accept-Language.

Child Tickets

Attachments (1)

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

Download all attachments as: .zip

Change History (4)

comment:1 Changed 7 years ago by dcf

Type: defectenhancement

comment:2 Changed 7 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 7 years ago by dcf

Resolution: fixed
Status: needs_reviewclosed

Thanks, merged.

Note: See TracTickets for help on using tickets.