Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 6571 - vim with nls menus and messages
Summary: vim with nls menus and messages
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Jared H. Hudson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-16 01:32 UTC by Cong
Modified: 2003-03-04 06:13 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
updated vim.eclass (vim.eclass,3.08 KB, text/plain)
2003-03-03 06:01 UTC, Jared H. Hudson (RETIRED)
Details
updated vim.eclass (vim.eclass,3.08 KB, application/octet-stream)
2003-03-03 06:02 UTC, Jared H. Hudson (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Cong 2002-08-16 01:32:09 UTC
As discribed at http://www.vim.org/download.php#yourself ,
ftp://ftp.vim.org/pub/vim/extra/vim-6.1-lang.tar.gz needed to
enable translated messages and menu of vim.

I tested it in Japanese environment.

$ diff /usr/portage/app-editors/vim/vim-6.1-r10.ebuild
/usr/local/portage/japan/vim-6.1-r10.ebuild 
36a37,38
>       # This contains translated messages and menu files
>       LANG="vim-${vim_version}-lang.tar.gz" 
39c41,42
<                        http://www.ibiblio.org/gentoo/distfiles/${VIMPATCH}"
---
>                        http://www.ibiblio.org/gentoo/distfiles/${VIMPATCH}
>                        nls? ( ftp://ftp.vim.org/pub/vim/extra/${LANG})"
89a93
>       unpack ${LANG}
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2002-08-16 02:59:23 UTC
we _need_ a LANG setting in make.conf I should think
Comment 2 Cong 2002-08-16 05:37:14 UTC
Have to add "use nls &&" before "unpack ${LANG}".

Hi Seemant, I think that nls plays the role well enough this case. How you want
to use LANG here ?
Comment 3 Seemant Kulleen (RETIRED) gentoo-dev 2003-02-26 03:51:25 UTC
erp, you're correct
Comment 4 Roman Majer 2003-02-28 02:56:15 UTC
by the definition you can setup 
LANG as lang[_COUNTRY[.codepage]] 
 
but for this example only lang_COUNTRY is needed, so  
 
fe.: LANG=cs_CZ.ISO-8859-2 will not work... 
 
The policy for locales for ebuilds, where needed, have to be defined.... 
 
In this case some script for including locale catalogs in case of nls could help... 
 
Comment 5 Jared H. Hudson (RETIRED) gentoo-dev 2003-03-03 06:01:50 UTC
Created attachment 8890 [details]
updated vim.eclass

Please put this file (vim.eclass) in /usr/portage/eclass and emerge vim-core.
Let me know if this works properly.
Comment 6 Jared H. Hudson (RETIRED) gentoo-dev 2003-03-03 06:02:09 UTC
Created attachment 8891 [details]
updated vim.eclass

Please put this file (vim.eclass) in /usr/portage/eclass and emerge vim-core.
Let me know if this works properly.
Comment 7 Cong 2003-03-03 22:54:08 UTC
It works perfect, at least I has the Japanese menu correctly displayed. 
Comment 8 Jared H. Hudson (RETIRED) gentoo-dev 2003-03-04 06:13:35 UTC
Added support in the vim eclass (vim.eclass)
re-emerge vim-core to make use of it.