mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Replace locale no-NO by nb-NO. Bug 533814, r=pike
This commit is contained in:
parent
4448d58d19
commit
4ea7b7df29
@ -116,6 +116,12 @@ nsPosixLocale::GetXPLocale(const char* posixLocale, nsAString& locale)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// Special case: substitute "nb" (Norwegian Bokmal) for macrolanguage
|
||||
// code "no" (Norwegian)
|
||||
if (nsDependentCString(lang_code).LowerCaseEqualsLiteral("no")) {
|
||||
lang_code[1] = 'b';
|
||||
}
|
||||
|
||||
if (*country_code) {
|
||||
PR_snprintf(posix_locale,sizeof(posix_locale),"%s-%s",lang_code,country_code);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user