Fix language pack information repair.

This commit is contained in:
levlam 2023-01-24 18:34:49 +03:00
parent 8730fd6f34
commit ae3a96e52d

View File

@ -291,10 +291,10 @@ string LanguagePackManager::get_main_language_code() {
}
if (info == nullptr) {
LOG(WARNING) << "Failed to find information about chosen language " << language_code_
<< ", ensure that valid language pack ID is used";
LOG(INFO) << "Failed to find information about chosen language " << language_code_
<< ", ensure that valid language pack ID is used";
if (!is_custom_language_code(language_code_)) {
search_language_info(language_code_, Auto());
get_languages(false, Auto());
}
} else {
if (!info->base_language_code_.empty()) {
@ -340,7 +340,7 @@ vector<string> LanguagePackManager::get_used_language_codes() {
LOG(INFO) << "Failed to find information about chosen language " << language_code_
<< ", ensure that valid language pack ID is used";
if (!is_custom_language_code(language_code_)) {
search_language_info(language_code_, Auto());
get_languages(false, Auto());
}
} else {
if (!info->base_language_code_.empty()) {