Ran source code through "indent -nbfda -npcs -npsl -bli0".
This commit is contained in:
parent
51355bce43
commit
7716a05281
38 changed files with 10816 additions and 10710 deletions
149
src/i18n.h
149
src/i18n.h
|
|
@ -18,78 +18,80 @@
|
|||
|
||||
/* Possible languages: */
|
||||
|
||||
enum {
|
||||
LANG_AF, /* Afrikaans */
|
||||
LANG_AR, /* Arabic */
|
||||
LANG_BE, /* Belarusian */
|
||||
LANG_BG, /* Bulgarian */
|
||||
LANG_BO, /* Tibetan */
|
||||
LANG_BR, /* Breton */
|
||||
LANG_CA, /* Catalan */
|
||||
LANG_CS, /* Czech */
|
||||
LANG_CY, /* Welsh */
|
||||
LANG_DA, /* Danish */
|
||||
LANG_DE, /* German */
|
||||
LANG_EL, /* Greek */
|
||||
LANG_EN, /* English (American) (DEFAULT) */
|
||||
LANG_EN_GB, /* English (British) */
|
||||
LANG_ES, /* Spanish */
|
||||
LANG_ES_MX, /* Spanish (Mexican) */
|
||||
LANG_ET, /* Estonian */
|
||||
LANG_EU, /* Basque */
|
||||
LANG_FI, /* Finnish */
|
||||
LANG_FO, /* Faroese */
|
||||
LANG_FR, /* French */
|
||||
LANG_GA, /* Irish Gaelic */
|
||||
LANG_GD, /* Scottish Gaelic */
|
||||
LANG_GL, /* Galician */
|
||||
LANG_GR, /* Gronings */
|
||||
LANG_GU, /* Gujarati */
|
||||
LANG_HE, /* Hebrew */
|
||||
LANG_HI, /* Hindi */
|
||||
LANG_HR, /* Croatian */
|
||||
LANG_HU, /* Hungarian */
|
||||
LANG_I_KLINGON_ROMANIZED, /* Klingon (Romanized) */
|
||||
LANG_ID, /* Indonesian */
|
||||
LANG_IS, /* Icelandic */
|
||||
LANG_IT, /* Italian */
|
||||
LANG_JA, /* Japanese */
|
||||
LANG_KA, /* Georgian */
|
||||
LANG_KO, /* Korean */
|
||||
LANG_KU, /* Kurdish */
|
||||
LANG_LT, /* Lithuanian */
|
||||
LANG_MS, /* Malay */
|
||||
LANG_NB, /* Norwegian Bokmal */
|
||||
LANG_NL, /* Dutch */
|
||||
LANG_NN, /* Norwegian Nynorsk */
|
||||
LANG_PL, /* Polish */
|
||||
LANG_PT_BR, /* Portuguese (Brazilian) */
|
||||
LANG_PT_PT, /* Portuguese (Portugal) */
|
||||
LANG_RO, /* Romanian */
|
||||
LANG_RU, /* Russian */
|
||||
LANG_RW, /* Kinyarwanda */
|
||||
LANG_SK, /* Slovak */
|
||||
LANG_SL, /* Slovenian */
|
||||
LANG_SQ, /* Albanian */
|
||||
LANG_SR, /* Serbian */
|
||||
LANG_SV, /* Swedish */
|
||||
LANG_SW, /* Swahili */
|
||||
LANG_TA, /* Tamil */
|
||||
LANG_TH, /* Thai */
|
||||
LANG_TL, /* Tagalog */
|
||||
LANG_TR, /* Turkish */
|
||||
LANG_UK, /* Ukrainian */
|
||||
LANG_VI, /* Vietnamese */
|
||||
LANG_WA, /* Walloon */
|
||||
LANG_ZH_CN, /* Chinese (Simplified) */
|
||||
LANG_ZH_TW, /* Chinese (Traditional) */
|
||||
enum
|
||||
{
|
||||
LANG_AF, /* Afrikaans */
|
||||
LANG_AR, /* Arabic */
|
||||
LANG_BE, /* Belarusian */
|
||||
LANG_BG, /* Bulgarian */
|
||||
LANG_BO, /* Tibetan */
|
||||
LANG_BR, /* Breton */
|
||||
LANG_CA, /* Catalan */
|
||||
LANG_CS, /* Czech */
|
||||
LANG_CY, /* Welsh */
|
||||
LANG_DA, /* Danish */
|
||||
LANG_DE, /* German */
|
||||
LANG_EL, /* Greek */
|
||||
LANG_EN, /* English (American) (DEFAULT) */
|
||||
LANG_EN_GB, /* English (British) */
|
||||
LANG_ES, /* Spanish */
|
||||
LANG_ES_MX, /* Spanish (Mexican) */
|
||||
LANG_ET, /* Estonian */
|
||||
LANG_EU, /* Basque */
|
||||
LANG_FI, /* Finnish */
|
||||
LANG_FO, /* Faroese */
|
||||
LANG_FR, /* French */
|
||||
LANG_GA, /* Irish Gaelic */
|
||||
LANG_GD, /* Scottish Gaelic */
|
||||
LANG_GL, /* Galician */
|
||||
LANG_GR, /* Gronings */
|
||||
LANG_GU, /* Gujarati */
|
||||
LANG_HE, /* Hebrew */
|
||||
LANG_HI, /* Hindi */
|
||||
LANG_HR, /* Croatian */
|
||||
LANG_HU, /* Hungarian */
|
||||
LANG_I_KLINGON_ROMANIZED, /* Klingon (Romanized) */
|
||||
LANG_ID, /* Indonesian */
|
||||
LANG_IS, /* Icelandic */
|
||||
LANG_IT, /* Italian */
|
||||
LANG_JA, /* Japanese */
|
||||
LANG_KA, /* Georgian */
|
||||
LANG_KO, /* Korean */
|
||||
LANG_KU, /* Kurdish */
|
||||
LANG_LT, /* Lithuanian */
|
||||
LANG_MS, /* Malay */
|
||||
LANG_NB, /* Norwegian Bokmal */
|
||||
LANG_NL, /* Dutch */
|
||||
LANG_NN, /* Norwegian Nynorsk */
|
||||
LANG_PL, /* Polish */
|
||||
LANG_PT_BR, /* Portuguese (Brazilian) */
|
||||
LANG_PT_PT, /* Portuguese (Portugal) */
|
||||
LANG_RO, /* Romanian */
|
||||
LANG_RU, /* Russian */
|
||||
LANG_RW, /* Kinyarwanda */
|
||||
LANG_SK, /* Slovak */
|
||||
LANG_SL, /* Slovenian */
|
||||
LANG_SQ, /* Albanian */
|
||||
LANG_SR, /* Serbian */
|
||||
LANG_SV, /* Swedish */
|
||||
LANG_SW, /* Swahili */
|
||||
LANG_TA, /* Tamil */
|
||||
LANG_TH, /* Thai */
|
||||
LANG_TL, /* Tagalog */
|
||||
LANG_TR, /* Turkish */
|
||||
LANG_UK, /* Ukrainian */
|
||||
LANG_VI, /* Vietnamese */
|
||||
LANG_WA, /* Walloon */
|
||||
LANG_ZH_CN, /* Chinese (Simplified) */
|
||||
LANG_ZH_TW, /* Chinese (Traditional) */
|
||||
NUM_LANGS
|
||||
};
|
||||
|
||||
|
||||
/* Types: */
|
||||
|
||||
typedef struct language_to_locale_struct {
|
||||
typedef struct language_to_locale_struct
|
||||
{
|
||||
const char *language;
|
||||
const char *locale;
|
||||
} language_to_locale_struct;
|
||||
|
|
@ -97,13 +99,13 @@ typedef struct language_to_locale_struct {
|
|||
|
||||
/* Globals: */
|
||||
|
||||
extern const char * lang_prefixes[NUM_LANGS];
|
||||
extern const char *lang_prefixes[NUM_LANGS];
|
||||
extern int lang_use_own_font[];
|
||||
extern int lang_use_right_to_left[];
|
||||
extern char * langstr;
|
||||
extern char *langstr;
|
||||
extern int need_own_font;
|
||||
extern int need_right_to_left;
|
||||
extern const char * lang_prefix;
|
||||
extern const char *lang_prefix;
|
||||
extern const language_to_locale_struct language_to_locale_array[];
|
||||
|
||||
|
||||
|
|
@ -112,11 +114,10 @@ extern const language_to_locale_struct language_to_locale_array[];
|
|||
|
||||
void set_langstr(const char *s);
|
||||
void set_current_language(void);
|
||||
void show_lang_usage(FILE * f, const char * const prg);
|
||||
void show_locale_usage(FILE * f, const char * const prg);
|
||||
void setup_language(const char * const prg);
|
||||
void do_locale_option(const char * const arg);
|
||||
void show_lang_usage(FILE * f, const char *const prg);
|
||||
void show_locale_usage(FILE * f, const char *const prg);
|
||||
void setup_language(const char *const prg);
|
||||
void do_locale_option(const char *const arg);
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue