summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2009-03-12 08:32:59 +0000
committerphintuka <phintuka>2009-03-12 08:32:59 +0000
commit4931b4de58a0a8f1c016a5ff5cc99e9772c506e4 (patch)
treee0badcde59d20ddf8bb611bd4e6aff75d406b0ba
parentef34208abf25151b1bd0c8f2edd8bccfbb696e53 (diff)
downloadxineliboutput-4931b4de58a0a8f1c016a5ff5cc99e9772c506e4.tar.gz
xineliboutput-4931b4de58a0a8f1c016a5ff5cc99e9772c506e4.tar.bz2
Added depreciated languagecode for hebrew (iw)
(Thanks to Lauri Tischler)
-rw-r--r--tools/iso639.h7
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])