On Mon, 2002-01-21 at 15:31, Bram Moolenaar wrote:
> 
> Henry Spencer wrote:
> 
> > On Mon, 21 Jan 2002, Bram Moolenaar wrote:
> > >   setenv LANG de_DE.iso-8859-1@euro
> > >   setenv LANG DE_de.ISO-8859-1@euro
> > >   setenv LANG de_DE.Iso-8859-1@EURO
> > > Do you think an average user can guess which one of these he has to
> > > type?  No GUI available!
> > 
> > If the user has to *type* one of those, the system is broken.
> > 
> > You can write a menu system, which will list the legitimate choices and
> > ask him which one he wants, in twenty lines of shell script.  It will run
> > on any ASCII terminal.  There is no need to have X and Tcl/Tk to write
> > interfaces that are more novice-friendly than setenv.
> 
> Nice idea.  However, that this menu system shell script still has to be
> made is enough proof that, in practice, people will use setenv.  I often
> use "env LANG=<locale> gvim <arguments>" to test message translations.
> 
Try "locale -a". It'll give you a list of  valid locales, and aliases.
It reads its contents from /etc/locale.aliases
Over on debian-devel, I've been proposing changing the locale-gen cmd.
in Debian (and similar in other distributions...) to automagically edit
locale.aliases to include only aliases to locales that are present on
the system (e.g. in /usr/lib/locale). Then "locale -a"
would give you


de_DE.UTF-8@euro
german
fr_FR.UTF-8@euro
french

..
env LANG=french gvim <args>
would work ...

In principle, I agree though, case sensitive; work should be aimed at
making a GUI simple to use, and the CLI consistent and simple.


> -- 
> hundred-and-one symptoms of being an internet addict:
> 33. You name your children Eudora, Mozilla and Dotcom. s 
> 
>  ///  Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.moolenaar.net  \\\
> (((   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   )))
>  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
> --
> Linux-UTF8:   i18n of Linux on all levels
> Archive:      http://mail.nl.linux.org/linux-utf8/
> 
> 

--
Alastair McKinstry <[EMAIL PROTECTED]>

-- 


--
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/linux-utf8/

Reply via email to