1 /* $Id: lang.h,v 1.1 2004/08/02 07:19:05 titer Exp $
3 This file is part of the HandBrake source code.
4 Homepage: <http://handbrake.fr/>.
5 It may be used under the terms of the GNU General Public License. */
10 typedef struct iso639_lang_t
12 char * eng_name; /* Description in English */
13 char * native_name; /* Description in native language */
14 char * iso639_1; /* ISO-639-1 (2 characters) code */
15 char * iso639_2; /* ISO-639-2/t (3 character) code */
16 char * iso639_2b; /* ISO-639-2/b code (if different from above) */
23 /* find language associated with ISO-639-1 language code */
24 iso639_lang_t * lang_for_code( int code );
26 /* find language associated with ISO-639-2 language code */
27 iso639_lang_t * lang_for_code2( const char *code2 );
29 /* ISO-639-1 code for language */
30 int lang_to_code(const iso639_lang_t *lang);
32 iso639_lang_t * lang_for_english( const char * english );