Commit e6e1db16 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

input: do not use native language spelling in language lists

Those lists are supposed to contain language codes, not language names.
parent 94bd33f1
......@@ -935,7 +935,6 @@ static char *DemuxGetLanguageCode( demux_t *p_demux, const char *psz_var )
if( *psz_lang == '\0' )
continue;
if( !strcasecmp( pl->psz_eng_name, psz_lang ) ||
!strcasecmp( pl->psz_native_name, psz_lang ) ||
!strcasecmp( pl->psz_iso639_1, psz_lang ) ||
!strcasecmp( pl->psz_iso639_2T, psz_lang ) ||
!strcasecmp( pl->psz_iso639_2B, psz_lang ) )
......
......@@ -2735,7 +2735,6 @@ static char *LanguageGetCode( const char *psz_lang )
for( pl = p_languages; pl->psz_eng_name != NULL; pl++ )
{
if( !strcasecmp( pl->psz_eng_name, psz_lang ) ||
!strcasecmp( pl->psz_native_name, psz_lang ) ||
!strcasecmp( pl->psz_iso639_1, psz_lang ) ||
!strcasecmp( pl->psz_iso639_2T, psz_lang ) ||
!strcasecmp( pl->psz_iso639_2B, psz_lang ) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment