diff options
Diffstat (limited to 'libhb')
-rw-r--r-- | libhb/lang.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libhb/lang.h b/libhb/lang.h index a1cab4d32..8b6283b4d 100644 --- a/libhb/lang.h +++ b/libhb/lang.h @@ -224,4 +224,19 @@ static iso639_lang_t * lang_for_code( int code ) return (iso639_lang_t*) languages; } +static iso639_lang_t * lang_for_english( const char * english ) +{ + iso639_lang_t * lang; + + for( lang = (iso639_lang_t*) languages; lang->eng_name; lang++ ) + { + if( !strcmp( lang->eng_name, english ) ) + { + return lang; + } + } + + return (iso639_lang_t*) languages; +} + #endif |