OSDN Git Service

LinGui: missed removing a part of target file size code
[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.fr/>.
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/t (3 character) code */
16     char * iso639_2b;       /* ISO-639-2/b code (if different from above) */
17
18 } iso639_lang_t;
19
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 /* find language associated with ISO-639-1 language code */
24 iso639_lang_t * lang_for_code( int code );
25
26 /* find language associated with ISO-639-2 language code */
27 iso639_lang_t * lang_for_code2( const char *code2 );
28
29 /* ISO-639-1 code for language */
30 int lang_to_code(const iso639_lang_t *lang);
31
32 iso639_lang_t * lang_for_english( const char * english );
33 #ifdef __cplusplus
34 }
35 #endif
36 #endif