GUI2: taddon_description: Fix handling of langcode-only locale names
This commit is contained in:
parent
91cdd411ef
commit
faf64021c0
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ namespace {
|
||||||
std::string langcode_to_string(const std::string& lcode)
|
std::string langcode_to_string(const std::string& lcode)
|
||||||
{
|
{
|
||||||
foreach(const language_def& ld, get_languages()) {
|
foreach(const language_def& ld, get_languages()) {
|
||||||
if(ld.localename == lcode) {
|
if(ld.localename == lcode || ld.localename.substr(0, 2) == lcode) {
|
||||||
return ld.language;
|
return ld.language;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue