diff options
Diffstat (limited to 'tools/iso639.h')
-rw-r--r-- | tools/iso639.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/iso639.h b/tools/iso639.h index 7f8d5e96..254b19e4 100644 --- a/tools/iso639.h +++ b/tools/iso639.h @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: iso639.h,v 1.2 2008-09-21 12:37:31 phintuka Exp $ + * $Id: iso639.h,v 1.3 2009-03-12 08:32:59 phintuka Exp $ * */ @@ -60,6 +60,7 @@ static const struct { {"guj", "gu"}, {"hau", "ha"}, {"heb", "he"}, + {"heb", "iw"}, {"hin", "hi"}, {"hun", "hu"}, {"ice", "is"}, @@ -157,7 +158,7 @@ static const struct { static const char *iso639_2_to_iso639_1(const char *lang) { if (lang && lang[0]) { - if(lang[1] && !lang[2]) { + if (lang[1] && !lang[2]) { for (unsigned int i = 0 ; i < sizeof(ISO639_map) / sizeof(ISO639_map[0]); i++) if (((uint16_t*)ISO639_map[i].iso639_1)[0] == ((uint16_t*)lang)[0]) return ISO639_map[i].iso639_2; @@ -171,7 +172,7 @@ static const char *iso639_2_to_iso639_1(const char *lang) static const char *iso639_1_to_iso639_2(const char *lang) { if (lang && lang[0]) { - if(lang[1] && lang[2] && !lang[3]) { + if (lang[1] && lang[2] && !lang[3]) { for (unsigned int i = 0 ; i < sizeof(ISO639_map) / sizeof(ISO639_map[0]); i++) if (((uint16_t*)ISO639_map[i].iso639_2)[0] == ((uint16_t*)lang)[0] && ((uint8_t *)ISO639_map[i].iso639_2)[2] == ((uint8_t *)lang)[2]) |