On 19/07/10 16:55, Mattia Pascal wrote:
When gvim starts executing my vimrc file
lang en
language mes en
set langmenu=en_US.UTF-8
[...]
an error dialog pops out (I'm on an italian machine):
Errore/i eseguendo C:\Program Files\73Vim\_vimrc: // Error executing.....
linea
1:
// line 1 :
E197: Non posso impostare lingua a "en" // E197: I
can't set the language to "en"
Actually the environment language is set to english and everythings is OK.
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
You have to find a locale name which your system will accept. The
following used to work for me when on a double-boot WinXP+RedHat system:
if has('unix')
language messages C
else
language messages en
endif
If your Windows machine doesn't accept "en" anymore, and if, like my XP
machine, it doesn't accept C either, try "English_United States.10646"
(without the quotes) which, IIUC, is the Windows equivalent of
en_US.UTF-8 as used on Unix. If that doesn't work either, try variants
of it (maybe with the space removed, or backslash-escaped, or maybe with
another country... If you don't find out how to replace the space in
"United States", "Great Britain" or "United Kingdom", try then
"English_Canada.10646" (without the quotes), maybe that will work. And
if 10646 (the Windows codepage number for Unicode) doesn't work for you,
try 1252 instead.
In any case you have to set the messages language before sourcing the
menus, which mean that none of the following can come before the ":lang
mess <something>" command:
source $VIMRUNTIME/vimrc_example.vim
runtime vimrc_example.vim
source $VIMRUNTIME/menu.vim
runtime menu.vim
filetype on
filetype plugin on
filetype indent on
filetype plugin indent on
syntax on
Best regards,
Tony.
--
November, n.:
The eleventh twelfth of a weariness.
-- Ambrose Bierce, "The Devil's Dictionary"
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php