Friday, August 27, 2010

Re: "lang en" problem when migrating from 7.2 to 7.3

On 25/08/10 11:24, Vincent L. wrote:
> Hi,
>
> I moved from 7.2 to 7.3. I now get the following error when VIM
> starts :
> E197 : Impossible de choisir la langue "en"
> which translate to : Cannot set language to "en"
>
> If I start vim 7.2, it just works fine.
>
> Info :
> * "lang en" is the first line in my vimrc
> * I use windows XP pro SP2
> * VIM version : VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Aug 15
> 2010 15:10:45), MS-Windows 32-bit GUI version
> * I found the messge/thread on vim_dev mailling list "Vim 7.3a setting
> language error", but came to
> the conclusion that it is not relevent to my problem as 7.2 works fine
> with "lang en"
>
> I tried to investigate. Using echo v:lang.":".v:ctype.":".v:lc_time,
> here is what I get.
>
> With first line "lang en" in vimrc :
> VIM 7.2 => en:C:English_United States.1252
> VIM 7.3 => Error E197 when starting, then FR:C:French_France.1252
>
> With first line "language messages en" in vimrc :
> VIM 7.2 => : en:C:French_France.1252
> VIM 7.3 => : en:C:French_France.1252
>
> So it seems something changed with lc_time...
>
> Am I doing anything wrong or should I file a bug ? Any help ?
>
> Regards,
>
> Vincent
>

Aha! So it works with :language messages...

You could use

:language messages en
:language time English_United\ States.1252

or if you want dd/mm/yyyy dates rather than mm/dd/yyyy,

:language messages en
:language time English_United\ Kingdom.1252

If it doesn't work with United\ Kingdom, use Great\ Britain instaid, and
if it doesn't work with the slash, try without it.


Best regards,
Tony.
--
f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng.

--
You received this message from the "vim_use" 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

No comments: