OSDN Git Service

Put the correct subtitle language in the Queue for the Mac GUI.
[handbrake-jp/handbrake-jp-git.git] / libhb / lang.h
1 /* $Id: lang.h,v 1.1 2004/08/02 07:19:05 titer Exp $
2
3    This file is part of the HandBrake source code.
4    Homepage: <http://handbrake.m0k.org/>.
5    It may be used under the terms of the GNU General Public License. */
6
7 #ifndef HB_LANG_H
8 #define HB_LANG_H
9
10 typedef struct iso639_lang_t
11 {
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 (3 character) code */
16
17 } iso639_lang_t;
18
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 /* find language associated with ISO-639-1 language code */
23 iso639_lang_t * lang_for_code( int code );
24
25 /* find language associated with ISO-639-2 language code */
26 iso639_lang_t * lang_for_code2( const char *code2 );
27
28 /* ISO-639-1 code for language */
29 int lang_to_code(const iso639_lang_t *lang);
30
31 iso639_lang_t * lang_for_english( const char * english );
32 #ifdef __cplusplus
33 }
34 #endif
35 #endif