From: Paul R. <pa...@ro...> - 2002-04-30 13:37:52
|
This came up on the support list this morning. Any thoughts, positive or negative, on adding an extended config operation to support locales, at least for dates? They should be present in any standard 5.004 or later Perl install. I realize locales are troublesome, but in this limited context they could be quite useful. We could simply have a (normally '' or undef) $locale variable. If defined and nonempty, we setlocale as appropriate. If setlocale() fails, we could warn, fatal, log, ignore, whatever. -paul -----Original Message----- From: Paul Roub [mailto:pa...@ro...] Sent: Tuesday, April 30, 2002 9:34 AM To: ha...@ou...; nms...@li... Subject: RE: [Nms-cgi-support] Non-US date formats (was "Nobody") If the proper locale support is installed on your system (see the locale or setlocale man pages), the following might work for you: Change the line that reads: use POSIX qw(strftime); to use POSIX qw(strftime locale_h); use locale; Then change: my $date = strftime($date_fmt, localtime); to setlocale(LC_TIME, 'no_NO'); my $date = strftime($date_fmt, localtime); On my system, this changes our default date output to: tirsdag, april 30, 2002 at 08:44:43 -paul -----Original Message----- From: nms...@li... [mailto:nms...@li...]On Behalf Of ha...@ou... Sent: Tuesday, April 30, 2002 8:20 AM To: nms...@li... Subject: SV: [Nms-cgi-support] "Nobody" Hi Nick Sorry to be bothering you with this but do you know how to change the dates (January, April...) To my language (norwegan)? There don`t seem to be anything in the program about that. Yours Harry Lund Outline Webutvikling Vesterhaugveien 1 9513 Alta Telefon: 784 43051 Fax: 784 37889 www.outline.no -----Opprinnelig melding----- Fra: Nick Cleaton [mailto:ni...@cl...] Sendt: 30. april 2002 12:57 Til: Harry Lund Kopi: nms...@li... Emne: Re: [Nms-cgi-support] "Nobody" On Tue, Apr 30, 2002 at 03:00:18AM -0700, Harry Lund wrote: > > description: Hi > I am trying to set up your "FormMail" program. > On default in the email I recivet it has "Nobody" in the field "from". > And if I change the word "nobody" in the script it adds the server name with it. > How can I remove the "Nobody" field? If you add an 'email' input to the form, that will be used as the >From address. -- Nick _______________________________________________ IMPORTANT NOTE: Please use mail software's "Reply-All" or "Reply Group" feature when replying to this mail. Just using "Reply" _won't_ send the mail to the mailing list. |