Lines 118-126
Link Here
|
118 |
typedef struct { |
118 |
typedef struct { |
119 |
const char *code; |
119 |
const char *code; |
120 |
const char *name; |
120 |
const char *name; |
121 |
} locale_t; |
121 |
} tvtime_locale_t; |
122 |
|
122 |
|
123 |
static locale_t locale_table[] = { |
123 |
static tvtime_locale_t locale_table[] = { |
124 |
{"AA", "Afar"}, {"AB", "Abkhazian"}, {"AF", "Afrikaans"}, |
124 |
{"AA", "Afar"}, {"AB", "Abkhazian"}, {"AF", "Afrikaans"}, |
125 |
{"AM", "Amharic"}, {"AR", "Arabic"}, {"AS", "Assamese"}, |
125 |
{"AM", "Amharic"}, {"AR", "Arabic"}, {"AS", "Assamese"}, |
126 |
{"AY", "Aymara"}, {"AZ", "Azerbaijani"}, {"BA", "Bashkir"}, |
126 |
{"AY", "Aymara"}, {"AZ", "Azerbaijani"}, {"BA", "Bashkir"}, |
Lines 168-174
Link Here
|
168 |
{"XH", "Xhosa"}, {"YO", "Yoruba"}, {"ZH", "Chinese"}, |
168 |
{"XH", "Xhosa"}, {"YO", "Yoruba"}, {"ZH", "Chinese"}, |
169 |
{"ZU", "Zulu"} }; |
169 |
{"ZU", "Zulu"} }; |
170 |
|
170 |
|
171 |
const int num_locales = sizeof( locale_table ) / sizeof( locale_t ); |
171 |
const int num_locales = sizeof( locale_table ) / sizeof( tvtime_locale_t ); |
172 |
|
172 |
|
173 |
/** |
173 |
/** |
174 |
* Timezone parsing code based loosely on the algorithm in |
174 |
* Timezone parsing code based loosely on the algorithm in |