We're updating the issue view to help you get more done. 

Return ULocale[] for accept-language string

Description

com.ibm.icu.util.ULocale provides a couple of static methods which take RFC3282
"Accept-Language" header string below -

public static ULocale acceptLanguage(String acceptLanguageList, boolean[]
fallback)
public static ULocale acceptLanguage(String acceptLanguageList, ULocale[]
availableLocales, boolean[] fallback)

These method returns a ULocale from available locale list (default or given)
based on the accept-language header string. I propose to add versions which
returns ULocale[] which includes all available locales from the
acceptLanguageList in priority order. Of course, you can do by parsing
accept-language header string by yourself, but the parser is already in ULocale
(for implementing above methods), so I would like to see they are exposed.

Environment

Status

Assignee

John Emmons

Reporter

TracBot

Labels

Time Needed

Days

tracCreated

Apr 12, 2006, 6:02 PM

tracOwner

emmons

tracProject

all

tracReporter

yoshito_umaoka@63ab4e4d4e2312f9

tracStatus

accepted

tracWeeks

0.5

Components

Priority

medium