Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/blenfont/intern/blf_lang.c')
-rw-r--r--source/blender/blenfont/intern/blf_lang.c16
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 8f745180b8b..0a102884969 100644
--- a/source/blender/blenfont/intern/blf_lang.c
+++ b/source/blender/blenfont/intern/blf_lang.c
@@ -36,7 +36,7 @@
#include "BLF_api.h"
-#ifdef INTERNATIONAL
+#ifdef WITH_INTERNATIONAL
#include <locale.h>
@@ -81,8 +81,8 @@ static const char *locales[] = {
"catalan", "ca_AD",
"czech", "cs_CZ",
"ptb", "pt_BR",
- "chs", "zh_CN",
- "cht", "zh_TW",
+ "Chinese (Simplified)_China.1252", "zh_CN",
+ "Chinese (Traditional)_China.1252", "zh_TW",
"russian", "ru_RU",
"croatian", "hr_HR",
"serbian", "sr_RS",
@@ -115,7 +115,7 @@ void BLF_lang_set(const char *str)
char *locreturn;
const char *short_locale;
int ok= 1;
-#if defined (_WIN32)
+#if defined (_WIN32) && !defined(FREE_WINDOWS)
char *long_locale = locales[ 2 * U.language];
#endif
@@ -127,7 +127,7 @@ void BLF_lang_set(const char *str)
else
short_locale = locales[ 2 * U.language + 1];
-#if defined (_WIN32)
+#if defined (_WIN32) && !defined(FREE_WINDOWS)
if(short_locale) {
char *envStr;
@@ -158,7 +158,7 @@ void BLF_lang_set(const char *str)
char *s;
/* store defaul locale */
- strncpy(default_locale, env_language, sizeof(default_locale));
+ BLI_strncpy(default_locale, env_language, sizeof(default_locale));
/* use first language as default */
s= strchr(default_locale, ':');
@@ -209,7 +209,7 @@ void BLF_lang_encoding(const char *str)
/* bind_textdomain_codeset(DOMAIN_NAME, encoding_name); */
}
-#else /* ! INTERNATIONAL */
+#else /* ! WITH_INTERNATIONAL */
void BLF_lang_init(void)
{
@@ -228,4 +228,4 @@ void BLF_lang_set(const char *str)
return;
}
-#endif /* INTERNATIONAL */
+#endif /* WITH_INTERNATIONAL */