mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-30 21:34:07 +00:00
Merge pull request #903 from xiaoyifang/fix/dsl-language
fix:dsl language parse issue
This commit is contained in:
commit
de329a19cc
|
@ -245,7 +245,7 @@ quint32 LangCoder::findIdForLanguage( gd::wstring const & lang )
|
||||||
const auto langFolded = Utf8::encode( lang );
|
const auto langFolded = Utf8::encode( lang );
|
||||||
|
|
||||||
for ( auto const & lc : LANG_CODE_MAP ) {
|
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() );
|
return code2toInt( lc.code.toStdString().c_str() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue