OSDN Git Service
(root)
/
handbrake-jp
/
handbrake-jp-git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
WinGui:
[handbrake-jp/handbrake-jp-git.git]
/
libhb
/
lang.h
diff --git
a/libhb/lang.h
b/libhb/lang.h
index
ffaa76b
..
cdf39e0
100644
(file)
--- a/
libhb/lang.h
+++ b/
libhb/lang.h
@@
-1,7
+1,7
@@
/* $Id: lang.h,v 1.1 2004/08/02 07:19:05 titer Exp $
This file is part of the HandBrake source code.
/* $Id: lang.h,v 1.1 2004/08/02 07:19:05 titer Exp $
This file is part of the HandBrake source code.
- Homepage: <http://handbrake.
m0k.org
/>.
+ Homepage: <http://handbrake.
fr
/>.
It may be used under the terms of the GNU General Public License. */
#ifndef HB_LANG_H
It may be used under the terms of the GNU General Public License. */
#ifndef HB_LANG_H
@@
-12,15
+12,23
@@
typedef struct iso639_lang_t
char * eng_name; /* Description in English */
char * native_name; /* Description in native language */
char * iso639_1; /* ISO-639-1 (2 characters) code */
char * eng_name; /* Description in English */
char * native_name; /* Description in native language */
char * iso639_1; /* ISO-639-1 (2 characters) code */
- char * iso639_2; /* ISO-639-2 (3 character) code */
+ char * iso639_2; /* ISO-639-2/t (3 character) code */
+ char * iso639_2b; /* ISO-639-2/b code (if different from above) */
} iso639_lang_t;
#ifdef __cplusplus
extern "C" {
#endif
} iso639_lang_t;
#ifdef __cplusplus
extern "C" {
#endif
+/* find language associated with ISO-639-1 language code */
iso639_lang_t * lang_for_code( int code );
iso639_lang_t * lang_for_code( int code );
+/* find language associated with ISO-639-2 language code */
+iso639_lang_t * lang_for_code2( const char *code2 );
+
+/* ISO-639-1 code for language */
+int lang_to_code(const iso639_lang_t *lang);
+
iso639_lang_t * lang_for_english( const char * english );
#ifdef __cplusplus
}
iso639_lang_t * lang_for_english( const char * english );
#ifdef __cplusplus
}