4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Win32: ":lang german" doesn't use German messages.
12 Solution: Add a table to translate the Win32 language names to two-letter
17 *** ../vim-6.2.152/src/ex_cmds2.c Sun Nov 9 20:35:08 2003
18 --- src/ex_cmds2.c Mon Nov 10 10:25:20 2003
23 vim_setenv((char_u *)"LANG", name);
27 + char_u *mname = name;
29 + static char *(mtable[]) = {
33 + "english_united kingdom", "en_gb",
45 + "chinese_china", "zh_cn",
46 + "chinese_taiwan", "zh_tw",
49 + /* On MS-Windows locale names are strings like
50 + * "German_Germany.1252", but gettext expects "de". Try
51 + * to translate one into another here for a few supported
53 + for (i = 0; mtable[i] != NULL; i += 2)
54 + if (STRNICMP(mtable[i], name, STRLEN(mtable[i])) == 0)
56 + mname = mtable[i + 1];
59 + vim_setenv((char_u *)"LC_MESSAGES", mname);
61 vim_setenv((char_u *)"LC_MESSAGES", name);
65 /* Set $LC_CTYPE, because it overrules $LANG, and
66 * gtk_set_locale() calls setlocale() again. gnome_init()
67 *** ../vim-6.2.152/src/version.c Wed Nov 12 20:47:29 2003
68 --- src/version.c Wed Nov 12 20:49:12 2003
72 { /* Add new patch number below this line */
78 hundred-and-one symptoms of being an internet addict:
79 8. You spend half of the plane trip with your laptop on your lap...and your
80 child in the overhead compartment.
82 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
83 /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\
84 \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
85 \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html ///