diff options
| author | Mehmet Samet Duman <yongdohyun@projecttick.org> | 2026-04-04 16:31:32 +0300 |
|---|---|---|
| committer | Mehmet Samet Duman <yongdohyun@projecttick.org> | 2026-04-04 16:47:16 +0300 |
| commit | 146c889dde5ef0908d66ab2c1e1aa6b6ceef6deb (patch) | |
| tree | 773cb664c164bd46f7588286913cc4a4957e3ec6 /mnv/src/option.c | |
| parent | 580d07d58fdf879a895878a456124a58040c2d3b (diff) | |
| download | Project-Tick-146c889dde5ef0908d66ab2c1e1aa6b6ceef6deb.tar.gz Project-Tick-146c889dde5ef0908d66ab2c1e1aa6b6ceef6deb.zip | |
NOISSUE changed icons to mnv icons for mnv and removed localization support
MNV - MNV's not Vim 10.0.2 released
Signed-off-by: Mehmet Samet Duman <yongdohyun@projecttick.org>
Diffstat (limited to 'mnv/src/option.c')
| -rw-r--r-- | mnv/src/option.c | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/mnv/src/option.c b/mnv/src/option.c index 0d59a9e706..3fc67510fd 100644 --- a/mnv/src/option.c +++ b/mnv/src/option.c @@ -499,35 +499,7 @@ set_init_expand_env(void) static void set_init_lang_env(void) { -#if defined(MSWIN) && defined(FEAT_GETTEXT) - // If $LANG isn't set, try to get a good value for it. This makes the - // right language be used automatically. Don't do this for English. - if (mch_getenv((char_u *)"LANG") == NULL) - { - char buf[20]; - long_u n; - - // Could use LOCALE_SISO639LANGNAME, but it's not in Win95. - // LOCALE_SABBREVLANGNAME gives us three letters, like "enu", we use - // only the first two. - n = GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SABBREVLANGNAME, - (LPTSTR)buf, 20); - if (n >= 2 && STRNICMP(buf, "en", 2) != 0) - { - // There are a few exceptions (probably more) - if (STRNICMP(buf, "cht", 3) == 0 || STRNICMP(buf, "zht", 3) == 0) - STRCPY(buf, "zh_TW"); - else if (STRNICMP(buf, "chs", 3) == 0 - || STRNICMP(buf, "zhc", 3) == 0) - STRCPY(buf, "zh_CN"); - else if (STRNICMP(buf, "jp", 2) == 0) - STRCPY(buf, "ja"); - else - buf[2] = NUL; // truncate to two-letter code - mnv_setenv((char_u *)"LANG", (char_u *)buf); - } - } -#elif defined(MACOS_CONVERT) +#if defined(MACOS_CONVERT) // Moved to os_mac_conv.c to avoid dependency problems. mac_lang_init(); #endif |
