adding a default option to the auto language selection (#65)

* adding a default option to the auto language selection

iirc NightScript suggested that a while ago or maybe it was giratina62 i don't remember exactly. 
also this is deleting untranslated languages cause they are useless now that there's a default option.

* Commenting untranslated languages
This commit is contained in:
LinuxCat 2021-02-15 19:17:52 +01:00 committed by GitHub
commit e52bd33905
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,15 +61,17 @@ void Config::sysLang() {
case 5:
this->language("es");
break;
/*
case 6:
this->language("en"); // Simplified chinese, not translated.
this->language("sc"); //simplified chinese
break;
case 7:
this->language("en"); // Korean, not translated.
this->language("kr") //korean
break;
*/
case 8:
this->language("nl");
break;
@ -79,11 +81,17 @@ void Config::sysLang() {
break;
case 10:
this->language("ru");
this->language("ru");
break;
/*
case 11:
this->language("en"); // traditional chinese, not translated.
this->language("tc") //traditional chinese
break;
*/
default:
this->language("en"); //for Simplified chinese (6), korean (7) and traditional chinese (11), which are not translated. also in case something goes wrong
break;
}
}
@ -180,4 +188,4 @@ std::string Config::getString(const std::string &key) {
return this->json.at(key).get_ref<const std::string &>();
}
void Config::setString(const std::string &key, const std::string &v) { this->json[key] = v; };
void Config::setString(const std::string &key, const std::string &v) { this->json[key] = v; };