[asterisk-bugs] [Asterisk 0014333]: [patch] add option to configure locale for date/time string construction

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Aug 12 09:08:00 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=14333 
====================================================================== 
Reported By:                klaus3000
Assigned To:                lmadsen
====================================================================== 
Project:                    Asterisk
Issue ID:                   14333
Category:                   Applications/app_voicemail/NewFeature
Reproducibility:            have not tried
Severity:                   feature
Priority:                   normal
Status:                     assigned
Target Version:             1.6.x Version Tracker
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 169203 
Request Review:              
====================================================================== 
Date Submitted:             2009-01-26 07:35 CST
Last Modified:              2009-08-12 09:08 CDT
====================================================================== 
Summary:                    [patch] add option to configure locale for date/time
string construction
Description: 
Hi!

When voicemail sends emails it constructs the date/time when the
voicemessage was received. This patch allows to configure the locale for
generation of the string.

locale=de_AT.UTF-8 results in

"Montag, 26 Jänner 2009" instead of "Monday, 26 January 2009".

This could also be achieved setting the default OS locale - but this would
also change the locale of all other date/time strings in Asterisk
(logmesage, CDRs...) which can be bad.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
has duplicate       0015237 [patch] Added emaildatelocale option fo...
====================================================================== 

---------------------------------------------------------------------- 
 (0108944) klaus3000 (reporter) - 2009-08-12 09:08
 https://issues.asterisk.org/view.php?id=14333#c108944 
---------------------------------------------------------------------- 
tilghman, I modyfied app_voicemail to make use of the new functions and it
works (see uploaded patch).

But I had problems building Asterisk with support for newlocale -
autodetection did not work. I had to define manually "#define
HAVE_NEWLOCALE 1" in autoconfigure.h to enable the feature. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-08-12 09:08 klaus3000      Note Added: 0108944                          
======================================================================




More information about the asterisk-bugs mailing list