Merge pull request #903 from xiaoyifang/fix/dsl-language

fix:dsl language parse issue
This commit is contained in:
xiaoyifang 2023-06-24 21:25:39 +08:00 committed by GitHub
commit de329a19cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -245,7 +245,7 @@ quint32 LangCoder::findIdForLanguage( gd::wstring const & lang )
const auto langFolded = Utf8::encode( lang );
for ( auto const & lc : LANG_CODE_MAP ) {
if ( langFolded == lc.lang ) {
if ( strcasecmp( langFolded.c_str(), lc.lang.c_str() ) == 0 ) {
return code2toInt( lc.code.toStdString().c_str() );
}
}