diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-05-11 20:11:52 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-05-11 20:11:52 +0400 |
commit | c8da0d01d401e2d947c320a94bf5878febdd93f1 (patch) | |
tree | 440304f3838c1721dce8d549f1ced8ec2567997a /source/blender/blenfont/intern/blf_lang.c | |
parent | 713a517f407b60656d7ae1d28266d8ada44fd994 (diff) |
style cleanup: whitespace
Diffstat (limited to 'source/blender/blenfont/intern/blf_lang.c')
-rw-r--r-- | source/blender/blenfont/intern/blf_lang.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/blenfont/intern/blf_lang.c b/source/blender/blenfont/intern/blf_lang.c index 96d3a231ba5..88d34b5e36f 100644 --- a/source/blender/blenfont/intern/blf_lang.c +++ b/source/blender/blenfont/intern/blf_lang.c @@ -42,7 +42,7 @@ #include <locale.h> -#if defined (_WIN32) +#if defined(_WIN32) #include <windows.h> #endif @@ -83,7 +83,7 @@ static const char *locales[] = { "catalan", "ca_AD", "czech", "cs_CZ", "ptb", "pt", -#if defined (_WIN32) && !defined(FREE_WINDOWS) +#if defined(_WIN32) && !defined(FREE_WINDOWS) "Chinese (Simplified)_China.1252", "zh_CN", "Chinese (Traditional)_China.1252", "zh_TW", #else @@ -170,19 +170,19 @@ void BLF_lang_set(const char *str) int ok = 1; const char *long_locale = locales[2 * U.language]; - if ((U.transopts&USER_DOTRANSLATE) == 0) + if ((U.transopts & USER_DOTRANSLATE) == 0) return; if (str) short_locale = str; else - short_locale = locales[ 2 * U.language + 1]; + short_locale = locales[2 * U.language + 1]; -#if defined (_WIN32) && !defined(FREE_WINDOWS) +#if defined(_WIN32) && !defined(FREE_WINDOWS) if (short_locale) { char *envStr; - if (U.language == 0)/* use system setting */ + if (U.language == 0) /* use system setting */ envStr = BLI_sprintfN("LANG=%s", getenv("LANG")); else envStr = BLI_sprintfN("LANG=%s", short_locale); @@ -201,8 +201,8 @@ void BLF_lang_set(const char *str) } #else { - static char default_lang[64] ="\0"; - static char default_language[64] ="\0"; + static char default_lang[64] = "\0"; + static char default_language[64] = "\0"; if (default_lang[0] == 0) get_language_variable("LANG", default_lang, sizeof(default_lang)); |