diff options
author | John Stebbins <[email protected]> | 2016-01-27 10:46:01 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2016-01-27 10:46:01 -0700 |
commit | 091e559752a8c452fb81be2356143d909030ae74 (patch) | |
tree | ed3adf39f84ebbd5cd9cba7e5654aa17a482ac5f /libhb/lang.h | |
parent | 4b408bced10509e378ee91aa526e126b264cfccf (diff) |
LinGui: use language table provided by libhb
LinGui had a duplicate of this table, so it did not automatically get
the updates to native language names that was recently added.
Diffstat (limited to 'libhb/lang.h')
-rw-r--r-- | libhb/lang.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libhb/lang.h b/libhb/lang.h index 3982f408f..7d794910c 100644 --- a/libhb/lang.h +++ b/libhb/lang.h @@ -26,6 +26,12 @@ extern "C" { /* find language, match any of names in lang struct */ const iso639_lang_t * lang_lookup( const char * str ); +/* find language table index, match any of names in lang struct */ +const int lang_lookup_index( const char * str ); + +/* return language for an index into the language table */ +iso639_lang_t * lang_for_index( int index ); + /* find language associated with ISO-639-1 language code */ iso639_lang_t * lang_for_code( int code ); |