Skip to content

Commit

Permalink
[LangCodeExpander] Fix German and Portuguese ISO 639-1 language code …
Browse files Browse the repository at this point in the history
…and add "Abkhaz".
  • Loading branch information
ace20022 committed Apr 24, 2013
1 parent 95f612e commit 2e91e5a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions xbmc/utils/LangCodeExpander.cpp
Expand Up @@ -32,7 +32,7 @@ typedef struct LCENTRY
const char *name;
} LCENTRY;

extern const struct LCENTRY g_iso639_1[143];
extern const struct LCENTRY g_iso639_1[144];
extern const struct LCENTRY g_iso639_2[537];

struct CharCodeConvertionWithHack
Expand Down Expand Up @@ -312,10 +312,11 @@ bool CLangCodeExpander::LookupInDb(CStdString& desc, const CStdString& code)
return false;
}

extern const LCENTRY g_iso639_1[143] =
extern const LCENTRY g_iso639_1[144] =
{
{ MAKECODE('\0','\0','c','c'), "Closed Caption" },
{ MAKECODE('\0','\0','a','a'), "Afar" },
{ MAKECODE('\0','\0','a','b'), "Abkhaz" },
{ MAKECODE('\0','\0','a','b'), "Abkhazian" },
{ MAKECODE('\0','\0','a','f'), "Afrikaans" },
{ MAKECODE('\0','\0','a','m'), "Amharic" },
Expand All @@ -336,7 +337,7 @@ extern const LCENTRY g_iso639_1[143] =
{ MAKECODE('\0','\0','c','s'), "Czech" },
{ MAKECODE('\0','\0','c','y'), "Welsh" },
{ MAKECODE('\0','\0','d','a'), "Dansk" },
{ MAKECODE('\0','\0','d','e'), "Deutsch" },
{ MAKECODE('\0','\0','d','e'), "German" },
{ MAKECODE('\0','\0','d','z'), "Bhutani" },
{ MAKECODE('\0','\0','e','l'), "Greek" },
{ MAKECODE('\0','\0','e','n'), "English" },
Expand Down Expand Up @@ -407,7 +408,7 @@ extern const LCENTRY g_iso639_1[143] =
{ MAKECODE('\0','\0','p','a'), "Punjabi" },
{ MAKECODE('\0','\0','p','l'), "Polish" },
{ MAKECODE('\0','\0','p','s'), "Pashto, Pushto" },
{ MAKECODE('\0','\0','p','t'), "Portugues" },
{ MAKECODE('\0','\0','p','t'), "Portuguese" },
{ MAKECODE('\0','\0','q','u'), "Quechua" },
{ MAKECODE('\0','\0','r','m'), "Rhaeto-Romance" },
{ MAKECODE('\0','\0','r','n'), "Kirundi" },
Expand Down

0 comments on commit 2e91e5a

Please sign in to comment.