Mozilla uses internal language codes like "x-western". For example, nsICharsetConverterManager2::GetCharsetLangGroup maps "ISO-8859-1" to "x-western". In order to prevent those internal name to be going out from mozilla (e.g. saved as HTML), we need a way to distinguish those internal names from standard names (by ISO 639). Here is link to the HTML spec. The spec does not prohibit using "x-" language. http://www.w3.org/TR/html4/struct/dirlang.html#langcodes
Created attachment 61377 [details] [diff] [review] Added method to check internal lang name (by looking "x-").
You need to log in before you can comment on or make changes to this bug.