Closed Bug 26240 Opened 25 years ago Closed 25 years ago

Need a service to map charset name to language

Categories

(Core :: Internationalization, defect, P3)

defect

Tracking

()

RESOLVED FIXED

People

(Reporter: nhottanscp, Assigned: cata)

References

Details

We need a service to map a charset name to a language. This is needed by libmime to generate LANG attribute (bug 26182). For example, "ISO-2022-JP" to be mapped to "ja".
Blocks: 26182
Ok. This will be in this afternoon. The new API will be: NS_IMETHOD nsICharsetConverterManager::GetCharsetLangGroup(nsString * aCharset, nsIAtom ** aLangGroup); The data will be stored in extensible string bundles, default file: /mozilla/intl/uconv/src/charsetData.properties Data format: shift_jis.langGroup = ja Initial data will be the table from http://lxr.mozilla.org/seamonkey/source/gfx/src/nsDeviceContext.cpp#636 Suggestions? Ideas? Q: Are we happy with the term "LangGroup" or maybe I should use "Language" or "LanguageGroup"?
Status: NEW → ASSIGNED
Target Milestone: M14
Erik should be cc on this.
"LangGroup" sounds fine to me. Thanks!
Done.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
QA Contact: teruko → nhotta
You need to log in before you can comment on or make changes to this bug.