mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
fix fallback preferences being used instead of English
Check needs to be done regardless of if we found a regional variant or not.
This commit is contained in:
parent
2f02867840
commit
5e676db4a0
1 changed files with 8 additions and 8 deletions
|
@ -260,15 +260,15 @@ impl I18n {
|
|||
} else {
|
||||
error!(log, "Failed to create bundle for {:?}", lang.language())
|
||||
}
|
||||
}
|
||||
|
||||
// if English was listed, any further preferences are skipped,
|
||||
// as the template has 100% coverage, and we need to ensure
|
||||
// it is tried prior to any other langs. But we do keep a file
|
||||
// if one was returned, to allow locale English variants to take
|
||||
// priority over the template.
|
||||
if lang.language() == "en" {
|
||||
break;
|
||||
}
|
||||
// if English was listed, any further preferences are skipped,
|
||||
// as the template has 100% coverage, and we need to ensure
|
||||
// it is tried prior to any other langs. But we do keep a file
|
||||
// if one was returned, to allow locale English variants to take
|
||||
// priority over the template.
|
||||
if lang.language() == "en" {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue