[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [changing date's output]



> right, i have locale (gnu libc) 2.1.3 on potato and nothing like
> locale.gen. the sl_SI (and other the like) is only in /usr/share/locale/
> but /usr/bin/locale and localedef contain 'abday'. these are long
> executable files -- do i need to edit them?
> the sl_si/lc_time has something like @december and other names in the end
> and even though changing them modifies the output, it still isn't correct
> eg. not the whole name is printed and similar.
> any ideas?


Perhaps you need to add a flag to the date command?

[02:33:10 tmp]$ date --help |grep %B
  %B   locale's full month name, variable length (January..December)
[02:33:25 tmp]$ 


> 
> 
> 
> On Tue, 21 Aug 2001, Ionel Mugurel [iso-8859-2] Ciobîcã wrote:
> 
> > ----- Forwarded message from andrej hocevar <ah@siol.net> -----
> >
> > > X-Envelope-Sender: ah@siol.net
> > > From: andrej hocevar <ah@siol.net>
> > > X-X-Sender:  <root@dionizij>
> > > To: <debian-user@lists.debian.org>, <debian-i18n@lists.debian.org>
> > > Subject: changing date's output
> > >
> > > hello
> > > i'd like to change the names of the months into slovenian ones, that is
> > > the old-style names (like vinotok for october). Of course, there are the
> > > locale files sl_SI, among them the LC_TIME, which states only those
> > > 'international' names. now i'd simply like to change that but i don't know
> > > how to do it, since i don't know the format of that very file, so only
> > > adding new names results in bad output.
> > > can anyone help me here?
> > > thanks,
> > > andrej hocevar
> > >
> > >
> > >
> > > --
> > > To UNSUBSCRIBE, email to debian-i18n-request@lists.debian.org
> > > with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> > >
> >
> > ----- End forwarded message -----
> >
> > I also was pissed off when I start to use locales. The names of
> > the months were with capital letters. I manage to change that
> > in /usr/share/i18n/locales/ro_RO (for Romanian). Search for
> > LC_TIME. abday contain the abreviated names of the days,
> > and abmon contain the abreviated names for the months.
> > day contain the names of the days of the week and mon
> > contains the names for the months. You may notice that
> > you have to use the Unicode codes for each letter.
> > A is U0041, etc.
> >
> > After that you have to uncomment the sl_SI in the /etc/locale.gen
> > and run /usr/sbin/locale-gen (as root).
> >
> > You may want to keep a copy of the /usr/share/i18n/locales/sl_SI
> > somewhere, otherwise if you do an upgrate of the locales
> > you will overide the file (it happend to me).
> >
> > All this is valid for woody, I don't know for potato.
> > I run locale (GNU libc) 2.2.3. You did not mention
> > what do you have.
> >
> > For a better understanding of the format of the file
> > you may want to search the net for ISO 14652 (don't have
> > a reference handy).
> >
> > You may want to drop an e-mail to bug-glibc@gnu.org
> > or to drepper@cygnus.com (Ulrich Drepper) for a change
> > in locales files.
> >
> >
> > I hope this help.
> >
> > Ionel Ciobica
> >
> > --
> >                      Ionel  Mugurel   Ciobîcã
> >  Schuit   Institute  of   Catalysis   Phone: 00 31 (0)40 2473781
> >  Eindhoven University of Technology   Fax:   00 31 (0)40 2455054
> >  Laboratory  of  Catalysis,   _SKA_   e-mail: I.M.Ciobica@TUe.nl
> >  Theory Group, STW 4.27, POBox 513 5600MB Eindhoven, Netherlands
> >                                         _____
> >    .''`.                (o-     This is Linux Country.      -o)
> >   : :'  :               //\     On a quiet night, you       /\\
> >   `. `'`                V_/_    can hear Windows reboot.   _\_V
> >     `-  www.Debian.org
> >
> > "Experience is what you get when you didn't get what you wanted."
> >
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-i18n-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 

-- 

	Shaul Karl <shaulka@bezeqint.net>




Reply to: